เที่ยวบินใดที่มาถึง CHICAGO ในวันอาทิตย์ด้วย COไม่จำเป็นต้องใช้ตารางทั้งหมด
what flights arrive in CHICAGO on sunday on COIt is not neccessary to use all the tables.
 flight_stop:  flight_id [ int]  stop_number [ int]  stop_days [ text]  stop_airport [ text]  arrival_time [ int]  arrival_airline [ text]  arrival_flight_number [ int]  departure_time [ int]  departure_airline [ text]  departure_flight_number [ int]  stop_time [ int] 
SELECT DISTINCT flight.flight_id FROM airport_service, city, date_day, days, flight WHERE (((((flight.arrival_time < 41 OR flight.time_elapsed >= 60) AND flight.departure_time > flight.arrival_time) AND date_day.day_number = 27 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code) OR (date_day.day_number = 27 AND date_day.month_number = 8 AND date_day.year = 1991 AND days.day_name = date_day.day_name AND flight.flight_days = days.days_code AND NOT ((flight.arrival_time < 41 OR flight.time_elapsed >= 60) AND flight.departure_time > flight.arrival_time))) AND city.city_code = airport_service.city_code AND city.city_name = 'CHICAGO' AND flight.to_airport = airport_service.airport_code) AND flight.airline_code = 'CO'