แสดงรายการเที่ยวบินทั้งหมดจากบอสตันไปซานฟรานซิสโกที่มีจุดจอดมากกว่า 3 แห่ง ไม่จำเป็นต้องใช้ตารางทั้งหมด
list all flights from BOSTON to SAN FRANCISCO with more than 3 stopsIt is not neccessary to use all the tables.
 flight_leg:  flight_id [ int]  leg_number [ int]  leg_flight [ 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 (CITY_1.city_code = AIRPORT_SERVICE_1.city_code AND CITY_1.city_name = 'SAN FRANCISCO' AND flight.stops > 3 AND flight.to_airport = AIRPORT_SERVICE_1.airport_code) AND CITY_0.city_code = AIRPORT_SERVICE_0.city_code AND CITY_0.city_name = 'BOSTON' AND flight.from_airport = AIRPORT_SERVICE_0.airport_code