instruction: how many flights does NW have leaving IAD
response: SELECT DISTINCT COUNT(*) FROM flight WHERE (airline_code = 'NW' AND from_airport IN (SELECT AIRPORTalias0.airport_code FROM airport AS AIRPORTalias0 WHERE AIRPORTalias0.airport_code = 'IAD'))