Online "Book Flights" facility for an airline

As we begin Part 4, we have:

Rule Statements

RS8. Each flight booking request must specify exactly one departure date.
RS9. Each flight booking request for a return journey must specify exactly one return date.
RS11.  A flight booking request for a one-way journey must not specify a return date.
RS12.  Each flight booking request must specify exactly one origin city.
RS13.  Each flight booking request must specify exactly one destination city.
RS14.  Each flight booking request must specify exactly one number of passengers.
RS15.  Each flight booking request must specify at most one frequent flier membership.
RS16.  Each flight booking confirmation must specify at least one passenger name.
RS17.  Each flight booking confirmation must specify exactly one payment arrangement.
RS19.  The departure date specified by each flight booking request must be no earlier than today.
RS20.  The return date (if any) specified by each flight booking request must be no earlier than the departure date specified by that flight booking request.
RS21.  The origin city specified by each flight booking request must be one of the cities served by the airline.
RS22.  The destination city specified by each flight booking request must be one of the cities served by the airline.
RS23.  The destination city specified by each flight booking request must be different to the origin city specified by that flight booking request.
RS24.  The number of passengers specified by each flight booking request must be no less than one.
RS25. The number of passenger names specified by each flight booking confirmation must be equal to the number of passengers specified by the flight booking request that gives rise to that flight booking confirmation.
 

Note that "number of" is styled as part of the term number of passengers in rule statements RS24 and RS25 but also as a keyword (as number of passenger names) in RS25.  While number of passengers is a defined term for a data item that is used in a flight booking request transaction, passenger name also refers to a data item which appears more than once in a flight booking confirmation transaction, but there is no "number of passenger names" data item as such.  In other words "number of" in number of passenger names is a set function referring to the cardinality of a data item rather than a data item itself.

Fact Types

FT1.  flight booking request specifies departure date
FT2.  flight booking request is for journey
FT3.  return journey is a category of journey
FT4.  flight booking request specifies return date
FT5.  one-way journey is a category of journey
FT6.  flight booking request is for return journey
  (derived from fact types FT2 and FT3)
FT7.  flight booking request is for one-way journey
  (derived from fact types FT2 and FT5)
FT8.  flight booking request specifies origin city
FT9.  flight booking request specifies destination city
FT10.  flight booking request specifies number of passengers
FT11. flight booking request specifies frequent flier membership
FT12.  flight booking confirmation specifies passenger name
FT13.  flight booking confirmation specifies payment arrangement
FT14.  airline serves city
FT15.  flight booking request gives rise to flight booking confirmation

Rule Statement Templates

RT1.  Each <term 1> {<qualifying clause>|}
must
<verb phrase>
<cardinality> <term 2>.
  (from which rule statements RS8, RS9, and RS12 to RS17 inclusive can be generated)
RT2.  {A|An} <term 1> {<qualifying clause>|}
must not
<verb phrase>
{a|an} <term 2>.
  (from which rule statement RS11 can be generated)
RT3.  The <term 1> that <verb phrase> each <term 2>
must be

<predicate>.
  (from which rule statements RS19 to RS24 inclusive can be generated)
RT4.  The <set function> of {the|} <term 1> that <verb phrase> each <term 2>
must be

<predicate>.
  (from which rule statement RS25 can be generated)

Rule Statement Sub-templates

ST1. <cardinality> ::=
  {exactly|at {least|most}|at least <positive integer> and at most} <positive integer>
ST8.  <predicate> ::=
  {<value set predicate>|<match predicate>|<range predicate>|<equality predicate>}
ST3.  <value set predicate> ::=
  one of the <term> {<qualifying clause>|}
  (used in rule statements RS21 and RS22)
ST4.  <match predicate> ::=
  {the same as|different to} the <term> {<qualifying clause>|}
  (used in rule statement RS23)
ST5.  <range predicate> ::=
  {no|} {greater|less|later|earlier} than {<literal>|the <term> {<qualifying clause>|}}
  (used in rule statements RS19, RS20, and RS24)
ST9.  <equality predicate> ::=
  {not|} equal to {<literal>|the <term> {<qualifying clause>|}}
  (used in rule statement RS25)
ST6.  <qualifying clause> ::=
  that <verb phrase> {a|an|each|that|the} <term>
{<qualifying clause>|}
ST7.  <set function> ::=
  {number|total|maximum|minimum|
        average
|mean|median|mode}

Note

The font and colour conventions used in these rule statements, fact types, and templates reflect those in the SBVR, namely:  underlined teal for terms, italic blue for verb phrases, orange for keywords, and double-underlined green for names and other literals.