ฉันสนใจเที่ยวบินจาก CINCINNATI ไปยัง BURBANK เที่ยวบินควรเป็น AA และออกในช่วงบ่าย ฉันต้องรู้เครื่องบินและหมายเลขเที่ยวบิน ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
i am interested in a flight from CINCINNATI to BURBANK the flight should be AA and leave in the afternoon i need to know the aircraft and flight numberIt is not neccessary to use all the tables.
 time_zone:  time_zone_code [ text]  time_zone_name [ text]  hours_from_gmt [ int] 
SELECT DISTINCT aircraft.aircraft_code, flight.flight_number FROM aircraft, airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, equipment_sequence, flight WHERE ((CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CINCINNATI' AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'BURBANK' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND flight.airline_code = 'AA') AND equipment_sequence.aircraft_code = aircraft.aircraft_code AND flight.aircraft_code_sequence = equipment_sequence.aircraft_code_sequence AND flight.departure_time BETWEEN 1200 AND 1800