agg -> [agg_func, "(", col, ")"]
agg -> [agg_func, "(", col_ref, ")"]
agg_func -> ["COUNT"]
agg_func -> ["MAX"]
agg_func -> ["MIN"]
agg_results -> ["(", "SELECT", distinct, agg, "FROM", table_name, where_clause, ")"]
agg_results -> ["SELECT", distinct, agg, "FROM", table_name, where_clause]
biexpr -> ["aircraft", ".", "aircraft_code", binaryop, aircraft_aircraft_code_string]
biexpr -> ["aircraft", ".", "basic_type", binaryop, aircraft_basic_type_string]
biexpr -> ["aircraft", ".", "manufacturer", binaryop, aircraft_manufacturer_string]
biexpr -> ["aircraft", ".", "propulsion", binaryop, aircraft_propulsion_string]
biexpr -> ["airline", ".", "airline_code", binaryop, airline_airline_code_string]
biexpr -> ["airline", ".", "airline_name", binaryop, airline_airline_name_string]
biexpr -> ["airport", ".", "airport_code", binaryop, airport_airport_code_string]
biexpr -> ["airport", ".", "airport_name", binaryop, airport_airport_name_string]
biexpr -> ["city", ".", "city_code", binaryop, city_city_code_string]
biexpr -> ["city", ".", "city_name", binaryop, city_city_name_string]
biexpr -> ["city", ".", "state_code", binaryop, city_state_code_string]
biexpr -> ["class_of_service", ".", "booking_class", binaryop, class_of_service_booking_class_string]
biexpr -> ["class_of_service", ".", "class_description", binaryop, class_of_service_class_description_string]
biexpr -> ["days", ".", "day_name", binaryop, days_day_name_string]
biexpr -> ["days", ".", "days_code", binaryop, days_days_code_string]
biexpr -> ["fare", ".", "fare_basis_code", binaryop, fare_fare_basis_code_string]
biexpr -> ["fare", ".", "one_direction_cost", binaryop, fare_one_direction_cost]
biexpr -> ["fare", ".", "restriction_code", binaryop, fare_restriction_code_string]
biexpr -> ["fare", ".", "round_trip_cost", binaryop, fare_round_trip_cost]
biexpr -> ["fare", ".", "round_trip_required", binaryop, fare_round_trip_required_string]
biexpr -> ["fare_basis", ".", "booking_class", binaryop, fare_basis_booking_class_string]
biexpr -> ["fare_basis", ".", "class_type", binaryop, fare_basis_class_type_string]
biexpr -> ["fare_basis", ".", "economy", binaryop, fare_basis_economy_string]
biexpr -> ["fare_basis", ".", "fare_basis_code", binaryop, fare_basis_fare_basis_code_string]
biexpr -> ["flight", ".", "airline_code", binaryop, flight_airline_code_string]
biexpr -> ["flight", ".", "flight_days", binaryop, flight_flight_days_string]
biexpr -> ["flight", ".", "flight_number", binaryop, flight_number]
biexpr -> ["flight_stop", ".", "stop_airport", binaryop, flight_stop_stop_airport_string]
biexpr -> ["food_service", ".", "compartment", binaryop, food_service_compartment_string]
biexpr -> ["food_service", ".", "meal_description", binaryop, food_service_meal_description_string]
biexpr -> ["ground_service", ".", "transport_type", binaryop, ground_service_transport_type_string]
biexpr -> ["restriction", ".", "restriction_code", binaryop, restriction_restriction_code_string]
biexpr -> ["state", ".", "state_code", binaryop, state_state_code_string]
biexpr -> ["state", ".", "state_name", binaryop, state_state_name_string]
biexpr -> [col_ref, binaryop, value]
biexpr -> [value, binaryop, value]
binaryop -> ["*"]
binaryop -> ["+"]
binaryop -> ["-"]
binaryop -> ["/"]
binaryop -> ["<"]
binaryop -> ["<="]
binaryop -> ["="]
binaryop -> [">"]
binaryop -> [">="]
binaryop -> ["IS"]
boolean -> ["false"]
boolean -> ["true"]
col -> ["advance_purchase"]
col -> ["aircraft_code"]
col -> ["aircraft_code_sequence"]
col -> ["aircraft_description"]
col -> ["airline_code"]
col -> ["airline_flight"]
col -> ["airline_name"]
col -> ["airport_code"]
col -> ["airport_location"]
col -> ["airport_name"]
col -> ["application"]
col -> ["arrival_airline"]
col -> ["arrival_flight_number"]
col -> ["arrival_time"]
col -> ["basic_type"]
col -> ["basis_days"]
col -> ["booking_class"]
col -> ["capacity"]
col -> ["city_code"]
col -> ["city_name"]
col -> ["class_description"]
col -> ["class_type"]
col -> ["compartment"]
col -> ["connections"]
col -> ["country_name"]
col -> ["day_name"]
col -> ["days_code"]
col -> ["departure_airline"]
col -> ["departure_flight_number"]
col -> ["departure_time"]
col -> ["direction"]
col -> ["discounted"]
col -> ["dual_carrier"]
col -> ["economy"]
col -> ["fare_airline"]
col -> ["fare_basis_code"]
col -> ["fare_id"]
col -> ["flight_days"]
col -> ["flight_id"]
col -> ["flight_number"]
col -> ["from_airport"]
col -> ["ground_fare"]
col -> ["leg_flight"]
col -> ["leg_number"]
col -> ["manufacturer"]
col -> ["maximum_stay"]
col -> ["meal_code"]
col -> ["meal_description"]
col -> ["meal_number"]
col -> ["miles_distant"]
col -> ["minimum_connect_time"]
col -> ["minimum_stay"]
col -> ["minutes_distant"]
col -> ["month_name"]
col -> ["month_number"]
col -> ["night"]
col -> ["no_discounts"]
col -> ["one_direction_cost"]
col -> ["premium"]
col -> ["pressurized"]
col -> ["propulsion"]
col -> ["rank"]
col -> ["restriction_code"]
col -> ["round_trip_cost"]
col -> ["round_trip_required"]
col -> ["saturday_stay_required"]
col -> ["season"]
col -> ["state_code"]
col -> ["state_name"]
col -> ["stop_airport"]
col -> ["stop_days"]
col -> ["stop_number"]
col -> ["stop_time"]
col -> ["stopovers"]
col -> ["stops"]
col -> ["time_elapsed"]
col -> ["time_zone_code"]
col -> ["to_airport"]
col -> ["transport_type"]
col -> ["wide_body"]
col_ref -> ["*"]
col_ref -> ["aircraft", ".", "aircraft_code"]
col_ref -> ["aircraft", ".", "aircraft_description"]
col_ref -> ["aircraft", ".", "basic_type"]
col_ref -> ["aircraft", ".", "capacity"]
col_ref -> ["aircraft", ".", "manufacturer"]
col_ref -> ["aircraft", ".", "pressurized"]
col_ref -> ["aircraft", ".", "propulsion"]
col_ref -> ["aircraft", ".", "wide_body"]
col_ref -> ["airline", ".", "airline_code"]
col_ref -> ["airline", ".", "airline_name"]
col_ref -> ["airport", ".", "airport_code"]
col_ref -> ["airport", ".", "airport_location"]
col_ref -> ["airport", ".", "airport_name"]
col_ref -> ["airport", ".", "country_name"]
col_ref -> ["airport", ".", "minimum_connect_time"]
col_ref -> ["airport", ".", "state_code"]
col_ref -> ["airport", ".", "time_zone_code"]
col_ref -> ["airport_service", ".", "airport_code"]
col_ref -> ["airport_service", ".", "city_code"]
col_ref -> ["airport_service", ".", "direction"]
col_ref -> ["airport_service", ".", "miles_distant"]
col_ref -> ["airport_service", ".", "minutes_distant"]
col_ref -> ["city", ".", "city_code"]
col_ref -> ["city", ".", "city_name"]
col_ref -> ["city", ".", "country_name"]
col_ref -> ["city", ".", "state_code"]
col_ref -> ["city", ".", "time_zone_code"]
col_ref -> ["class_of_service", ".", "booking_class"]
col_ref -> ["class_of_service", ".", "class_description"]
col_ref -> ["class_of_service", ".", "rank"]
col_ref -> ["date_day", ".", "day_name"]
col_ref -> ["days", ".", "day_name"]
col_ref -> ["days", ".", "days_code"]
col_ref -> ["equipment_sequence", ".", "aircraft_code"]
col_ref -> ["equipment_sequence", ".", "aircraft_code_sequence"]
col_ref -> ["fare", ".", "fare_airline"]
col_ref -> ["fare", ".", "fare_basis_code"]
col_ref -> ["fare", ".", "fare_id"]
col_ref -> ["fare", ".", "from_airport"]
col_ref -> ["fare", ".", "one_direction_cost"]
col_ref -> ["fare", ".", "restriction_code"]
col_ref -> ["fare", ".", "round_trip_cost"]
col_ref -> ["fare", ".", "round_trip_required"]
col_ref -> ["fare", ".", "to_airport"]
col_ref -> ["fare_basis", ".", "basis_days"]
col_ref -> ["fare_basis", ".", "booking_class"]
col_ref -> ["fare_basis", ".", "class_type"]
col_ref -> ["fare_basis", ".", "discounted"]
col_ref -> ["fare_basis", ".", "economy"]
col_ref -> ["fare_basis", ".", "fare_basis_code"]
col_ref -> ["fare_basis", ".", "night"]
col_ref -> ["fare_basis", ".", "premium"]
col_ref -> ["fare_basis", ".", "season"]
col_ref -> ["flight", ".", "aircraft_code_sequence"]
col_ref -> ["flight", ".", "airline_code"]
col_ref -> ["flight", ".", "airline_flight"]
col_ref -> ["flight", ".", "arrival_time"]
col_ref -> ["flight", ".", "connections"]
col_ref -> ["flight", ".", "departure_time"]
col_ref -> ["flight", ".", "dual_carrier"]
col_ref -> ["flight", ".", "flight_days"]
col_ref -> ["flight", ".", "flight_id"]
col_ref -> ["flight", ".", "flight_number"]
col_ref -> ["flight", ".", "from_airport"]
col_ref -> ["flight", ".", "meal_code"]
col_ref -> ["flight", ".", "stops"]
col_ref -> ["flight", ".", "time_elapsed"]
col_ref -> ["flight", ".", "to_airport"]
col_ref -> ["flight_fare", ".", "fare_id"]
col_ref -> ["flight_fare", ".", "flight_id"]
col_ref -> ["flight_leg", ".", "flight_id"]
col_ref -> ["flight_leg", ".", "leg_flight"]
col_ref -> ["flight_leg", ".", "leg_number"]
col_ref -> ["flight_stop", ".", "arrival_airline"]
col_ref -> ["flight_stop", ".", "arrival_flight_number"]
col_ref -> ["flight_stop", ".", "arrival_time"]
col_ref -> ["flight_stop", ".", "departure_airline"]
col_ref -> ["flight_stop", ".", "departure_flight_number"]
col_ref -> ["flight_stop", ".", "departure_time"]
col_ref -> ["flight_stop", ".", "flight_id"]
col_ref -> ["flight_stop", ".", "stop_airport"]
col_ref -> ["flight_stop", ".", "stop_days"]
col_ref -> ["flight_stop", ".", "stop_number"]
col_ref -> ["flight_stop", ".", "stop_time"]
col_ref -> ["food_service", ".", "compartment"]
col_ref -> ["food_service", ".", "meal_code"]
col_ref -> ["food_service", ".", "meal_description"]
col_ref -> ["food_service", ".", "meal_number"]
col_ref -> ["ground_service", ".", "airport_code"]
col_ref -> ["ground_service", ".", "city_code"]
col_ref -> ["ground_service", ".", "ground_fare"]
col_ref -> ["ground_service", ".", "transport_type"]
col_ref -> ["month", ".", "month_name"]
col_ref -> ["month", ".", "month_number"]
col_ref -> ["restriction", ".", "advance_purchase"]
col_ref -> ["restriction", ".", "application"]
col_ref -> ["restriction", ".", "maximum_stay"]
col_ref -> ["restriction", ".", "minimum_stay"]
col_ref -> ["restriction", ".", "no_discounts"]
col_ref -> ["restriction", ".", "restriction_code"]
col_ref -> ["restriction", ".", "saturday_stay_required"]
col_ref -> ["restriction", ".", "stopovers"]
col_ref -> ["state", ".", "country_name"]
col_ref -> ["state", ".", "state_code"]
col_ref -> ["state", ".", "state_name"]
col_ref -> [agg]
col_refs -> [col_ref, ",", col_refs]
col_refs -> [col_ref]
condition -> [biexpr]
condition -> [in_clause]
condition -> [ternaryexpr]
conditions -> ["(", conditions, ")", conj, conditions]
conditions -> ["(", conditions, ")"]
conditions -> ["NOT", conditions]
conditions -> [condition, conj, "(", conditions, ")"]
conditions -> [condition, conj, conditions]
conditions -> [condition]
conj -> ["AND"]
conj -> ["OR"]
distinct -> [""]
distinct -> ["DISTINCT"]
group_by_clause -> ["GROUP", "BY", col_ref]
in_clause -> [col_ref, "IN", query]
pos_value -> ["ALL", query]
pos_value -> ["ANY", query]
pos_value -> ["NULL"]
pos_value -> [agg_results]
pos_value -> [boolean]
pos_value -> [col_ref]
pos_value -> [number]
query -> ["(", "SELECT", distinct, select_results, "FROM", table_refs, where_clause, ")"]
query -> ["(", "SELECT", distinct, select_results, "FROM", table_refs, where_clause, group_by_clause, ")"]
query -> ["SELECT", distinct, select_results, "FROM", table_refs, where_clause]
select_results -> [agg]
select_results -> [col_refs]
statement -> [query, ";"]
table_name -> ["aircraft"]
table_name -> ["airline"]
table_name -> ["airport"]
table_name -> ["airport_service"]
table_name -> ["city"]
table_name -> ["class_of_service"]
table_name -> ["date_day"]
table_name -> ["days"]
table_name -> ["equipment_sequence"]
table_name -> ["fare"]
table_name -> ["fare_basis"]
table_name -> ["flight"]
table_name -> ["flight_fare"]
table_name -> ["flight_leg"]
table_name -> ["flight_stop"]
table_name -> ["food_service"]
table_name -> ["ground_service"]
table_name -> ["month"]
table_name -> ["restriction"]
table_name -> ["state"]
table_refs -> [table_name, ",", table_refs]
table_refs -> [table_name]
ternaryexpr -> [col_ref, "BETWEEN", time_range_start, "AND", time_range_end]
ternaryexpr -> [col_ref, "NOT", "BETWEEN", time_range_start, "AND", time_range_end]
value -> ["NOT", pos_value]
value -> [pos_value]
where_clause -> ["WHERE", "(", conditions, ")"]
where_clause -> ["WHERE", conditions]
