แสดงเที่ยวบินจากเซนต์ปีเตอร์สเบิร์ก จาก PETERSBURG ถึง TORONTO ที่มาถึงตอนเช้าไม่จำเป็นต้องใช้โต๊ะทั้งหมด
show me the flights from ST. PETERSBURG to TORONTO that arrive early in the morningIt is not neccessary to use all the tables.
 month:  month_number [ int]  month_name [ text] 
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.arrival_time <= 800 AND flight.arrival_time >= 0) AND CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'TORONTO' AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'ST. PETERSBURG' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code