Task: Text to Code
Input (English): SQL: SELECT Count ( * ) FROM airlines AS T1 JOIN airports AS T2 WHERE T2.Country = "United Airlines" AND T1.Airline = "AHD"
Feedback: Add flights table in step 1 , change airports's country with airlines's airline and airline with source airport .
Output (English): SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  "United Airlines" AND T2.SourceAirport  =  "AHD"