เที่ยวบินจาก LGA ไปยัง JFKI ไม่จำเป็นต้องใช้ตารางทั้งหมด
flights from LGA to JFKIt is not neccessary to use all the tables.
 restriction:  restriction_code [ text]  advance_purchase [ int]  stopovers [ text]  saturday_stay_required [ text]  minimum_stay [ int]  maximum_stay [ int]  application [ text]  no_discounts [ text] 
SELECT DISTINCT flight.flight_id FROM airport AS AIRPORT_0, airport AS AIRPORT_1, flight WHERE AIRPORT_0.airport_code = 'LGA' AND AIRPORT_1.airport_code = 'JFK' AND flight.from_airport = AIRPORT_0.airport_code AND flight.to_airport = AIRPORT_1.airport_code