Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many airlines are from USA?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM AIRLINES WHERE Country  =  "USA"</SQL_QUERY>

Question: SELECT count(*) FROM AIRLINES WHERE Country  =  "USA"

Question: How many airlines are from USA?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Return the number of airlines in the USA.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM AIRLINES WHERE Country  =  "USA"</SQL_QUERY>

Question: SELECT count(*) FROM AIRLINES WHERE Country  =  "USA"

Question: Return the number of airlines in the USA.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which city and country is the Alton airport at?</question>
[SQL]:

Output: <SQL_QUERY>SELECT City ,  Country FROM AIRPORTS WHERE AirportName  =  "Alton"</SQL_QUERY>

Question: SELECT City ,  Country FROM AIRPORTS WHERE AirportName  =  "Alton"

Question: Which city and country is the Alton airport at?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give the city and country for the Alton airport.</question>
[SQL]:

Output: <SQL_QUERY>SELECT City ,  Country FROM AIRPORTS WHERE AirportName  =  "Alton"</SQL_QUERY>

Question: SELECT City ,  Country FROM AIRPORTS WHERE AirportName  =  "Alton"

Question: Give the city and country for the Alton airport.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the airport name for airport 'AKO'?</question>
[SQL]:

Output: <SQL_QUERY>SELECT AirportName FROM AIRPORTS WHERE AirportCode  =  "AKO"</SQL_QUERY>

Question: SELECT AirportName FROM AIRPORTS WHERE AirportCode  =  "AKO"

Question: What is the airport name for airport 'AKO'?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Return the name of the airport with code 'AKO'.</question>
[SQL]:

Output: <SQL_QUERY>SELECT AirportName FROM AIRPORTS WHERE AirportCode  =  "AKO"</SQL_QUERY>

Question: SELECT AirportName FROM AIRPORTS WHERE AirportCode  =  "AKO"

Question: Return the name of the airport with code 'AKO'.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are airport names at City 'Aberdeen'?</question>
[SQL]:

Output: <SQL_QUERY>SELECT AirportName FROM AIRPORTS WHERE City = "Aberdeen"</SQL_QUERY>

Question: SELECT AirportName FROM AIRPORTS WHERE City = "Aberdeen"

Question: What are airport names at City 'Aberdeen'?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are the names of airports in Aberdeen?</question>
[SQL]:

Output: <SQL_QUERY>SELECT AirportName FROM AIRPORTS WHERE City = "Aberdeen"</SQL_QUERY>

Question: SELECT AirportName FROM AIRPORTS WHERE City = "Aberdeen"

Question: What are the names of airports in Aberdeen?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many flights depart from 'APG'?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS WHERE SourceAirport  =  "APG"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS WHERE SourceAirport  =  "APG"

Question: How many flights depart from 'APG'?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Count the number of flights departing from 'APG'.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS WHERE SourceAirport  =  "APG"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS WHERE SourceAirport  =  "APG"

Question: Count the number of flights departing from 'APG'.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many flights have destination ATO?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS WHERE DestAirport  =  "ATO"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS WHERE DestAirport  =  "ATO"

Question: How many flights have destination ATO?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Count the number of flights into ATO.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS WHERE DestAirport  =  "ATO"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS WHERE DestAirport  =  "ATO"

Question: Count the number of flights into ATO.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many flights depart from City Aberdeen?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport  =  T2.AirportCode WHERE T2.City  =  "Aberdeen"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport  =  T2.AirportCode WHERE T2.City  =  "Aberdeen"

Question: How many flights depart from City Aberdeen?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Return the number of flights departing from Aberdeen.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport  =  T2.AirportCode WHERE T2.City  =  "Aberdeen"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport  =  T2.AirportCode WHERE T2.City  =  "Aberdeen"

Question: Return the number of flights departing from Aberdeen.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many flights arriving in Aberdeen city?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.City  =  "Aberdeen"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.City  =  "Aberdeen"

Question: How many flights arriving in Aberdeen city?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Return the number of flights arriving in Aberdeen.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.City  =  "Aberdeen"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.City  =  "Aberdeen"

Question: Return the number of flights arriving in Aberdeen.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport  =  T3.AirportCode WHERE T2.City  =  "Ashley" AND T3.City  =  "Aberdeen"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport  =  T3.AirportCode WHERE T2.City  =  "Ashley" AND T3.City  =  "Aberdeen"

Question: How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many flights fly from Aberdeen to Ashley?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport  =  T3.AirportCode WHERE T2.City  =  "Ashley" AND T3.City  =  "Aberdeen"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRPORTS AS T3 ON T1.SourceAirport  =  T3.AirportCode WHERE T2.City  =  "Ashley" AND T3.City  =  "Aberdeen"

Question: How many flights fly from Aberdeen to Ashley?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many flights does airline 'JetBlue Airways' have?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline  =  T2.uid WHERE T2.Airline = "JetBlue Airways"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline  =  T2.uid WHERE T2.Airline = "JetBlue Airways"

Question: How many flights does airline 'JetBlue Airways' have?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give the number of Jetblue Airways flights.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline  =  T2.uid WHERE T2.Airline = "JetBlue Airways"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T1.Airline  =  T2.uid WHERE T2.Airline = "JetBlue Airways"

Question: Give the number of Jetblue Airways flights.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many 'United Airlines' flights go to Airport 'ASY'?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  "United Airlines" AND T2.DestAirport  =  "ASY"</SQL_QUERY>

Question: SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  "United Airlines" AND T2.DestAirport  =  "ASY"

Question: How many 'United Airlines' flights go to Airport 'ASY'?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Count the number of United Airlines flights arriving in ASY Airport.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  "United Airlines" AND T2.DestAirport  =  "ASY"</SQL_QUERY>

Question: SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  "United Airlines" AND T2.DestAirport  =  "ASY"

Question: Count the number of United Airlines flights arriving in ASY Airport.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many 'United Airlines' flights depart from Airport 'AHD'?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  "United Airlines" AND T2.SourceAirport  =  "AHD"</SQL_QUERY>

Question: SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  "United Airlines" AND T2.SourceAirport  =  "AHD"

Question: How many 'United Airlines' flights depart from Airport 'AHD'?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Return the number of United Airlines flights leaving from AHD Airport.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  "United Airlines" AND T2.SourceAirport  =  "AHD"</SQL_QUERY>

Question: SELECT count(*) FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T2.Airline  =  T1.uid WHERE T1.Airline  =  "United Airlines" AND T2.SourceAirport  =  "AHD"

Question: Return the number of United Airlines flights leaving from AHD Airport.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many United Airlines flights go to City 'Aberdeen'?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid  =  T1.Airline WHERE T2.City  =  "Aberdeen" AND T3.Airline  =  "United Airlines"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid  =  T1.Airline WHERE T2.City  =  "Aberdeen" AND T3.Airline  =  "United Airlines"

Question: How many United Airlines flights go to City 'Aberdeen'?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Count the number of United Airlines flights that arrive in Aberdeen.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid  =  T1.Airline WHERE T2.City  =  "Aberdeen" AND T3.Airline  =  "United Airlines"</SQL_QUERY>

Question: SELECT count(*) FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport  =  T2.AirportCode JOIN AIRLINES AS T3 ON T3.uid  =  T1.Airline WHERE T2.City  =  "Aberdeen" AND T3.Airline  =  "United Airlines"

Question: Count the number of United Airlines flights that arrive in Aberdeen.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which city has most number of arriving flights?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1</SQL_QUERY>

Question: SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1

Question: Which city has most number of arriving flights?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which city has the most frequent destination airport?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1</SQL_QUERY>

Question: SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1

Question: Which city has the most frequent destination airport?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which city has most number of departing flights?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1</SQL_QUERY>

Question: SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1

Question: Which city has most number of departing flights?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which city is the most frequent source airport?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1</SQL_QUERY>

Question: SELECT T1.City FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.SourceAirport GROUP BY T1.City ORDER BY count(*) DESC LIMIT 1

Question: Which city is the most frequent source airport?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the code of airport that has the highest number of flights?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1</SQL_QUERY>

Question: SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1

Question: What is the code of airport that has the highest number of flights?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the airport code of the airport with the most flights?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1</SQL_QUERY>

Question: SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) DESC LIMIT 1

Question: What is the airport code of the airport with the most flights?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the code of airport that has fewest number of flights?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1</SQL_QUERY>

Question: SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1

Question: What is the code of airport that has fewest number of flights?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give the code of the airport with the least flights.</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1</SQL_QUERY>

Question: SELECT T1.AirportCode FROM AIRPORTS AS T1 JOIN FLIGHTS AS T2 ON T1.AirportCode  =  T2.DestAirport OR T1.AirportCode  =  T2.SourceAirport GROUP BY T1.AirportCode ORDER BY count(*) LIMIT 1

Question: Give the code of the airport with the least flights.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which airline has most number of flights?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1

Question: Which airline has most number of flights?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What airline serves the most flights?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) DESC LIMIT 1

Question: What airline serves the most flights?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the abbreviation and country of the airline that has fewest number of flights?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Abbreviation ,  T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1</SQL_QUERY>

Question: SELECT T1.Abbreviation ,  T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1

Question: Find the abbreviation and country of the airline that has fewest number of flights?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the abbreviation of the airilne has the fewest flights and what country is it in?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Abbreviation ,  T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1</SQL_QUERY>

Question: SELECT T1.Abbreviation ,  T1.Country FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline ORDER BY count(*) LIMIT 1

Question: What is the abbreviation of the airilne has the fewest flights and what country is it in?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are airlines that have some flight departing from airport 'AHD'?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "AHD"</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "AHD"

Question: What are airlines that have some flight departing from airport 'AHD'?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which airlines have a flight with source airport AHD?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "AHD"</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "AHD"

Question: Which airlines have a flight with source airport AHD?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are airlines that have flights arriving at airport 'AHD'?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.DestAirport  =  "AHD"</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.DestAirport  =  "AHD"

Question: What are airlines that have flights arriving at airport 'AHD'?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which airlines have a flight with destination airport AHD?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.DestAirport  =  "AHD"</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.DestAirport  =  "AHD"

Question: Which airlines have a flight with destination airport AHD?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find all airlines that have flights from both airports 'APG' and 'CVO'.</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "CVO"</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "CVO"

Question: Find all airlines that have flights from both airports 'APG' and 'CVO'.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which airlines have departing flights from both APG and CVO airports?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "CVO"</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "APG" INTERSECT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "CVO"

Question: Which airlines have departing flights from both APG and CVO airports?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find all airlines that have flights from airport 'CVO' but not from 'APG'.</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "APG"</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "APG"

Question: Find all airlines that have flights from airport 'CVO' but not from 'APG'.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which airlines have departures from CVO but not from APG airports?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "APG"</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "CVO" EXCEPT SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline WHERE T2.SourceAirport  =  "APG"

Question: Which airlines have departures from CVO but not from APG airports?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find all airlines that have at least 10 flights.</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  >  10</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  >  10

Question: Find all airlines that have at least 10 flights.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which airlines have at least 10 flights?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  >  10</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  >  10

Question: Which airlines have at least 10 flights?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find all airlines that have fewer than 200 flights.</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  <  200</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  <  200

Question: Find all airlines that have fewer than 200 flights.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which airlines have less than 200 flights?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  <  200</SQL_QUERY>

Question: SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid  =  T2.Airline GROUP BY T1.Airline HAVING count(*)  <  200

Question: Which airlines have less than 200 flights?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are flight numbers of Airline "United Airlines"?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid  =  T1.Airline WHERE T2.Airline  =  "United Airlines"</SQL_QUERY>

Question: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid  =  T1.Airline WHERE T2.Airline  =  "United Airlines"

Question: What are flight numbers of Airline "United Airlines"?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which flight numbers correspond to United Airlines flights?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid  =  T1.Airline WHERE T2.Airline  =  "United Airlines"</SQL_QUERY>

Question: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRLINES AS T2 ON T2.uid  =  T1.Airline WHERE T2.Airline  =  "United Airlines"

Question: Which flight numbers correspond to United Airlines flights?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are flight numbers of flights departing from Airport "APG"?</question>
[SQL]:

Output: <SQL_QUERY>SELECT FlightNo FROM FLIGHTS WHERE SourceAirport  =  "APG"</SQL_QUERY>

Question: SELECT FlightNo FROM FLIGHTS WHERE SourceAirport  =  "APG"

Question: What are flight numbers of flights departing from Airport "APG"?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give the flight numbers of flights leaving from APG.</question>
[SQL]:

Output: <SQL_QUERY>SELECT FlightNo FROM FLIGHTS WHERE SourceAirport  =  "APG"</SQL_QUERY>

Question: SELECT FlightNo FROM FLIGHTS WHERE SourceAirport  =  "APG"

Question: Give the flight numbers of flights leaving from APG.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are flight numbers of flights arriving at Airport "APG"?</question>
[SQL]:

Output: <SQL_QUERY>SELECT FlightNo FROM FLIGHTS WHERE DestAirport  =  "APG"</SQL_QUERY>

Question: SELECT FlightNo FROM FLIGHTS WHERE DestAirport  =  "APG"

Question: What are flight numbers of flights arriving at Airport "APG"?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give the flight numbers of flights landing at APG.</question>
[SQL]:

Output: <SQL_QUERY>SELECT FlightNo FROM FLIGHTS WHERE DestAirport  =  "APG"</SQL_QUERY>

Question: SELECT FlightNo FROM FLIGHTS WHERE DestAirport  =  "APG"

Question: Give the flight numbers of flights landing at APG.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are flight numbers of flights departing from City "Aberdeen "?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport   =  T2.AirportCode WHERE T2.City  =  "Aberdeen"</SQL_QUERY>

Question: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport   =  T2.AirportCode WHERE T2.City  =  "Aberdeen"

Question: What are flight numbers of flights departing from City "Aberdeen "?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give the flight numbers of flights leaving from Aberdeen.</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport   =  T2.AirportCode WHERE T2.City  =  "Aberdeen"</SQL_QUERY>

Question: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.SourceAirport   =  T2.AirportCode WHERE T2.City  =  "Aberdeen"

Question: Give the flight numbers of flights leaving from Aberdeen.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>What are flight numbers of flights arriving at City "Aberdeen"?</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport   =  T2.AirportCode WHERE T2.City  =  "Aberdeen"</SQL_QUERY>

Question: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport   =  T2.AirportCode WHERE T2.City  =  "Aberdeen"

Question: What are flight numbers of flights arriving at City "Aberdeen"?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Give the flight numbers of flights arriving in Aberdeen.</question>
[SQL]:

Output: <SQL_QUERY>SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport   =  T2.AirportCode WHERE T2.City  =  "Aberdeen"</SQL_QUERY>

Question: SELECT T1.FlightNo FROM FLIGHTS AS T1 JOIN AIRPORTS AS T2 ON T1.DestAirport   =  T2.AirportCode WHERE T2.City  =  "Aberdeen"

Question: Give the flight numbers of flights arriving in Aberdeen.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the number of flights landing in the city of Aberdeen or Abilene.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.city  =  "Aberdeen" OR T2.city  =  "Abilene"</SQL_QUERY>

Question: SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.city  =  "Aberdeen" OR T2.city  =  "Abilene"

Question: Find the number of flights landing in the city of Aberdeen or Abilene.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many flights land in Aberdeen or Abilene?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.city  =  "Aberdeen" OR T2.city  =  "Abilene"</SQL_QUERY>

Question: SELECT count(*) FROM Flights AS T1 JOIN Airports AS T2 ON T1.DestAirport  =  T2.AirportCode WHERE T2.city  =  "Aberdeen" OR T2.city  =  "Abilene"

Question: How many flights land in Aberdeen or Abilene?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the name of airports which do not have any flight in and out.</question>
[SQL]:

Output: <SQL_QUERY>SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)</SQL_QUERY>

Question: SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)

Question: Find the name of airports which do not have any flight in and out.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | flight_2 |  airlines : uid (text) , airline (number) , abbreviation (text) , country (text) | airports : city (text) , airportcode (number) , airportname (text) , country (text) , countryabbrev (text) | flights : airline (text) , flightno (number) , sourceairport (text) , destairport (text);</schema>"
<primary_keys>[Primary Keys]: airlines : uid, airports : airportcode, flights : airline</primary_keys>"
<foreign_keys>[Foreign Keys]: flights : destairport = airports : airportcode | flights : sourceairport = airports : airportcode</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which airports do not have departing or arriving flights?</question>
[SQL]:

Output: <SQL_QUERY>SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)</SQL_QUERY>

Question: SELECT AirportName FROM Airports WHERE AirportCode NOT IN (SELECT SourceAirport FROM Flights UNION SELECT DestAirport FROM Flights)

Question: Which airports do not have departing or arriving flights?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | employee_hire_evaluation |  employee : employee_id (text) , name (number) , age (text) , city (number) | shop : shop_id (text) , name (number) , location (text) , district (number) , number_products (text) , manager_name (number) | hiring : shop_id (text) , employee_id (number) , start_from (text) , is_full_time (number) | evaluation : employee_id (text) , year_awarded (number) , bonus (text);</schema>"
<primary_keys>[Primary Keys]: employee : employee_id, shop : shop_id, hiring : employee_id, evaluation : employee_id</primary_keys>"
<foreign_keys>[Foreign Keys]: hiring : employee_id = employee : employee_id | hiring : shop_id = shop : shop_id | evaluation : employee_id = employee : employee_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many employees are there?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM employee</SQL_QUERY>

Question: SELECT count(*) FROM employee

Question: How many employees are there?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | employee_hire_evaluation |  employee : employee_id (text) , name (number) , age (text) , city (number) | shop : shop_id (text) , name (number) , location (text) , district (number) , number_products (text) , manager_name (number) | hiring : shop_id (text) , employee_id (number) , start_from (text) , is_full_time (number) | evaluation : employee_id (text) , year_awarded (number) , bonus (text);</schema>"
<primary_keys>[Primary Keys]: employee : employee_id, shop : shop_id, hiring : employee_id, evaluation : employee_id</primary_keys>"
<foreign_keys>[Foreign Keys]: hiring : employee_id = employee : employee_id | hiring : shop_id = shop : shop_id | evaluation : employee_id = employee : employee_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Count the number of employees</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) FROM employee</SQL_QUERY>

Question: SELECT count(*) FROM employee

Question: Count the number of employees


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | employee_hire_evaluation |  employee : employee_id (text) , name (number) , age (text) , city (number) | shop : shop_id (text) , name (number) , location (text) , district (number) , number_products (text) , manager_name (number) | hiring : shop_id (text) , employee_id (number) , start_from (text) , is_full_time (number) | evaluation : employee_id (text) , year_awarded (number) , bonus (text);</schema>"
<primary_keys>[Primary Keys]: employee : employee_id, shop : shop_id, hiring : employee_id, evaluation : employee_id</primary_keys>"
<foreign_keys>[Foreign Keys]: hiring : employee_id = employee : employee_id | hiring : shop_id = shop : shop_id | evaluation : employee_id = employee : employee_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Sort employee names by their age in ascending order.</question>
[SQL]:

Output: <SQL_QUERY>SELECT name FROM employee ORDER BY age</SQL_QUERY>

Question: SELECT name FROM employee ORDER BY age

Question: Sort employee names by their age in ascending order.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | employee_hire_evaluation |  employee : employee_id (text) , name (number) , age (text) , city (number) | shop : shop_id (text) , name (number) , location (text) , district (number) , number_products (text) , manager_name (number) | hiring : shop_id (text) , employee_id (number) , start_from (text) , is_full_time (number) | evaluation : employee_id (text) , year_awarded (number) , bonus (text);</schema>"
<primary_keys>[Primary Keys]: employee : employee_id, shop : shop_id, hiring : employee_id, evaluation : employee_id</primary_keys>"
<foreign_keys>[Foreign Keys]: hiring : employee_id = employee : employee_id | hiring : shop_id = shop : shop_id | evaluation : employee_id = employee : employee_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>List the names of employees and sort in ascending order of age.</question>
[SQL]:

Output: <SQL_QUERY>SELECT name FROM employee ORDER BY age</SQL_QUERY>

Question: SELECT name FROM employee ORDER BY age

Question: List the names of employees and sort in ascending order of age.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | employee_hire_evaluation |  employee : employee_id (text) , name (number) , age (text) , city (number) | shop : shop_id (text) , name (number) , location (text) , district (number) , number_products (text) , manager_name (number) | hiring : shop_id (text) , employee_id (number) , start_from (text) , is_full_time (number) | evaluation : employee_id (text) , year_awarded (number) , bonus (text);</schema>"
<primary_keys>[Primary Keys]: employee : employee_id, shop : shop_id, hiring : employee_id, evaluation : employee_id</primary_keys>"
<foreign_keys>[Foreign Keys]: hiring : employee_id = employee : employee_id | hiring : shop_id = shop : shop_id | evaluation : employee_id = employee : employee_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>What is the number of employees from each city?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) ,  city FROM employee GROUP BY city</SQL_QUERY>

Question: SELECT count(*) ,  city FROM employee GROUP BY city

Question: What is the number of employees from each city?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | employee_hire_evaluation |  employee : employee_id (text) , name (number) , age (text) , city (number) | shop : shop_id (text) , name (number) , location (text) , district (number) , number_products (text) , manager_name (number) | hiring : shop_id (text) , employee_id (number) , start_from (text) , is_full_time (number) | evaluation : employee_id (text) , year_awarded (number) , bonus (text);</schema>"
<primary_keys>[Primary Keys]: employee : employee_id, shop : shop_id, hiring : employee_id, evaluation : employee_id</primary_keys>"
<foreign_keys>[Foreign Keys]: hiring : employee_id = employee : employee_id | hiring : shop_id = shop : shop_id | evaluation : employee_id = employee : employee_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Count the number of employees for each city.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) ,  city FROM employee GROUP BY city</SQL_QUERY>

Question: SELECT count(*) ,  city FROM employee GROUP BY city

Question: Count the number of employees for each city.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | employee_hire_evaluation |  employee : employee_id (text) , name (number) , age (text) , city (number) | shop : shop_id (text) , name (number) , location (text) , district (number) , number_products (text) , manager_name (number) | hiring : shop_id (text) , employee_id (number) , start_from (text) , is_full_time (number) | evaluation : employee_id (text) , year_awarded (number) , bonus (text);</schema>"
<primary_keys>[Primary Keys]: employee : employee_id, shop : shop_id, hiring : employee_id, evaluation : employee_id</primary_keys>"
<foreign_keys>[Foreign Keys]: hiring : employee_id = employee : employee_id | hiring : shop_id = shop : shop_id | evaluation : employee_id = employee : employee_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Which cities do more than one employee under age 30 come from?</question>
[SQL]:

Output: <SQL_QUERY>SELECT city FROM employee WHERE age  <  30 GROUP BY city HAVING count(*)  >  1</SQL_QUERY>

Question: SELECT city FROM employee WHERE age  <  30 GROUP BY city HAVING count(*)  >  1

Question: Which cities do more than one employee under age 30 come from?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | employee_hire_evaluation |  employee : employee_id (text) , name (number) , age (text) , city (number) | shop : shop_id (text) , name (number) , location (text) , district (number) , number_products (text) , manager_name (number) | hiring : shop_id (text) , employee_id (number) , start_from (text) , is_full_time (number) | evaluation : employee_id (text) , year_awarded (number) , bonus (text);</schema>"
<primary_keys>[Primary Keys]: employee : employee_id, shop : shop_id, hiring : employee_id, evaluation : employee_id</primary_keys>"
<foreign_keys>[Foreign Keys]: hiring : employee_id = employee : employee_id | hiring : shop_id = shop : shop_id | evaluation : employee_id = employee : employee_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the cities that have more than one employee under age 30.</question>
[SQL]:

Output: <SQL_QUERY>SELECT city FROM employee WHERE age  <  30 GROUP BY city HAVING count(*)  >  1</SQL_QUERY>

Question: SELECT city FROM employee WHERE age  <  30 GROUP BY city HAVING count(*)  >  1

Question: Find the cities that have more than one employee under age 30.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | employee_hire_evaluation |  employee : employee_id (text) , name (number) , age (text) , city (number) | shop : shop_id (text) , name (number) , location (text) , district (number) , number_products (text) , manager_name (number) | hiring : shop_id (text) , employee_id (number) , start_from (text) , is_full_time (number) | evaluation : employee_id (text) , year_awarded (number) , bonus (text);</schema>"
<primary_keys>[Primary Keys]: employee : employee_id, shop : shop_id, hiring : employee_id, evaluation : employee_id</primary_keys>"
<foreign_keys>[Foreign Keys]: hiring : employee_id = employee : employee_id | hiring : shop_id = shop : shop_id | evaluation : employee_id = employee : employee_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the number of shops in each location.</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) ,  LOCATION FROM shop GROUP BY LOCATION</SQL_QUERY>

Question: SELECT count(*) ,  LOCATION FROM shop GROUP BY LOCATION

Question: Find the number of shops in each location.


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | employee_hire_evaluation |  employee : employee_id (text) , name (number) , age (text) , city (number) | shop : shop_id (text) , name (number) , location (text) , district (number) , number_products (text) , manager_name (number) | hiring : shop_id (text) , employee_id (number) , start_from (text) , is_full_time (number) | evaluation : employee_id (text) , year_awarded (number) , bonus (text);</schema>"
<primary_keys>[Primary Keys]: employee : employee_id, shop : shop_id, hiring : employee_id, evaluation : employee_id</primary_keys>"
<foreign_keys>[Foreign Keys]: hiring : employee_id = employee : employee_id | hiring : shop_id = shop : shop_id | evaluation : employee_id = employee : employee_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>How many shops are there in each location?</question>
[SQL]:

Output: <SQL_QUERY>SELECT count(*) ,  LOCATION FROM shop GROUP BY LOCATION</SQL_QUERY>

Question: SELECT count(*) ,  LOCATION FROM shop GROUP BY LOCATION

Question: How many shops are there in each location?


Input:
This is a task converting text into SQL statements. We will first give the dataset schema and column types, primary keys and foreign keys and then ask a question in text. You are asked to generate SQL statement in SQLite.
 <schema>[Schema (values) (types)]: | employee_hire_evaluation |  employee : employee_id (text) , name (number) , age (text) , city (number) | shop : shop_id (text) , name (number) , location (text) , district (number) , number_products (text) , manager_name (number) | hiring : shop_id (text) , employee_id (number) , start_from (text) , is_full_time (number) | evaluation : employee_id (text) , year_awarded (number) , bonus (text);</schema>"
<primary_keys>[Primary Keys]: employee : employee_id, shop : shop_id, hiring : employee_id, evaluation : employee_id</primary_keys>"
<foreign_keys>[Foreign Keys]: hiring : employee_id = employee : employee_id | hiring : shop_id = shop : shop_id | evaluation : employee_id = employee : employee_id</foreign_keys>"
Answer the following question with a SQL Statement:<question>Find the manager name and district of the shop whose number of products is the largest.</question>
[SQL]:

Output: <SQL_QUERY>SELECT manager_name ,  district FROM shop ORDER BY number_products DESC LIMIT 1</SQL_QUERY>

Question: SELECT manager_name ,  district FROM shop ORDER BY number_products DESC LIMIT 1

Question: Find the manager name and district of the shop whose number of products is the largest.