เที่ยวบินใดที่ออกเดินทางจาก CHARLOTTE ไป NEWARK ที่ออกช่วงบ่ายหรือออกตอนเย็นไม่จำเป็นต้องใช้ตารางทั้งหมด
what flights depart from CHARLOTTE to NEWARK that leave in the afternoon or leave in the eveningIt is not neccessary to use all the tables.
 time_zone:  time_zone_code [ text]  time_zone_name [ text]  hours_from_gmt [ int] 
SELECT DISTINCT flight.flight_id FROM airport_service AS AIRPORT_SERVICE_0, airport_service AS AIRPORT_SERVICE_1, city AS CITY_0, city AS CITY_1, flight WHERE (((flight.departure_time BETWEEN 1200 AND 1800) OR (flight.departure_time BETWEEN 1800 AND 2200)) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'NEWARK' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'CHARLOTTE' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code