richardr1126/spider-natsql-context-validation huggingface dataset:
### Instruction:

Convert text to NatSQL: How many cars have a larger accelerate than the car with the largest horsepower? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( cars_data.* )  from cars_data  where  @.@ > cars_data.Accelerate  order by cars_data.Horsepower desc limit 1

### Instruction:

Convert text to NatSQL: What is the number of cars with a greater accelerate than the one with the most horsepower? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( cars_data.* )  from cars_data  where  @.@ > cars_data.Accelerate  order by cars_data.Horsepower desc limit 1

### Instruction:

Convert text to NatSQL: How many countries has more than 2 car makers ? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( countries.* )  from countries  where  count ( car_makers.* )  > 2

### Instruction:

Convert text to NatSQL: What is the number of countries with more than 2 car makers ? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( countries.* )  from countries  where  count ( car_makers.* )  > 2
### Instruction:

Convert text to NatSQL: How many cars has over 6 cylinders? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( cars_data.* )  from cars_data  where  cars_data.Cylinders > 6

### Instruction:

Convert text to NatSQL: What is the number of carsw ith over 6 cylinders? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select count ( cars_data.* )  from cars_data  where  cars_data.Cylinders > 6

### Instruction:

Convert text to NatSQL: For the cars with 4 cylinders, which model has the largest horsepower? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.Model from car_names  where  cars_data.Cylinders = 4  order by cars_data.Horsepower desc limit 1

### Instruction:

Convert text to NatSQL: For all of the 4 cylinder cars, which model has the most horsepower? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.Model from car_names  where  cars_data.Cylinders = 4  order by cars_data.Horsepower desc limit 1
### Instruction:

Convert text to NatSQL: Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name. | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.MakeId , car_names.Make from cars_data  where  cars_data.Cylinders <= 3  and  @.@ > min ( cars_data.Horsepower )

### Instruction:

Convert text to NatSQL: Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_names.MakeId , car_names.Make from cars_data  where  cars_data.Cylinders < 4  and  @.@ > min ( cars_data.Horsepower )

### Instruction:

Convert text to NatSQL: What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select max(cars_data.MPG) from cars_data  where  cars_data.Cylinders = 8  or  cars_data.Year < 1980

### Instruction:

Convert text to NatSQL: What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select max(cars_data.MPG) from cars_data  where  cars_data.Cylinders = 8  or  cars_data.Year < 1980
### Instruction:

Convert text to NatSQL: Which models are lighter than 3500 but not built by the 'Ford Motor Company'? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select  distinct model_list.Model from model_list  where  cars_data.Weight < 3500  and  car_makers.FullName != "Ford Motor Company"

### Instruction:

Convert text to NatSQL: What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select  distinct model_list.Model from model_list  where  cars_data.Weight < 3500  and  car_makers.FullName != "Ford Motor Company"

### Instruction:

Convert text to NatSQL: What are the name of the countries where there is not a single car maker? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select countries.CountryName from countries  where  except_  @.@ is car_makers.*

### Instruction:

Convert text to NatSQL: What are the names of the countries with no car makers? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select countries.CountryName from countries  where  except_  @.@ is car_makers.*
### Instruction:

Convert text to NatSQL: Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker . | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_makers.Id , car_makers.Maker from car_makers  where  count ( model_list.* )  >= 2  and  count ( car_names.* )  > 3  group by car_makers.Id

### Instruction:

Convert text to NatSQL: What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select car_makers.Id , car_makers.Maker from car_makers  where  count ( model_list.* )  >= 2  and  count ( car_names.* )  > 3  group by car_makers.Id

### Instruction:

Convert text to NatSQL: What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select countries.CountryId , countries.CountryName from countries  where  count ( car_makers.* )  > 3  or  model_list.Model = "fiat"  group by countries.CountryId
### Instruction:

Convert text to NatSQL: What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ? | continents : contid , continent | countries : countryid , countryname , continent | car_makers : id , maker , fullname , country | model_list : modelid , maker , model | car_names : makeid , model , make | cars_data : id , mpg , cylinders , edispl , horsepower , weight , accelerate , year | countries.continent = continents.contid | car_makers.country = countries.countryid | model_list.maker = car_makers.id | car_names.model = model_list.model | cars_data.id = car_names.makeid | 

### Response:

select countries.CountryId , countries.CountryName from car_makers  where  count ( car_makers.* )  > 3  or  model_list.Model = "fiat"  group by countries.CountryId
### Instruction:

Convert text to NatSQL: Which country does Airline "JetBlue Airways" belong to? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Country from airlines  where  airlines.Airline = "JetBlue Airways"

### Instruction:

Convert text to NatSQL: What country is Jetblue Airways affiliated with? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Country from airlines  where  airlines.Airline = "JetBlue Airways"

### Instruction:

Convert text to NatSQL: What is the abbreviation of Airline "JetBlue Airways"? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Abbreviation from airlines  where  airlines.Airline = "JetBlue Airways"

### Instruction:

Convert text to NatSQL: Which abbreviation corresponds to Jetblue Airways? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Abbreviation from airlines  where  airlines.Airline = "JetBlue Airways"

### Instruction:

Convert text to NatSQL: List all airline names and their abbreviations in "USA". | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline , airlines.Abbreviation from airlines  where  airlines.Country = "USA"

### Instruction:

Convert text to NatSQL: What are the airline names and abbreviations for airlines in the USA? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline , airlines.Abbreviation from airlines  where  airlines.Country = "USA"
### Instruction:

Convert text to NatSQL: List the airport code and name in the city of Anthony. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.AirportCode , airports.AirportName from airports  where  airports.City = "Anthony"

### Instruction:

Convert text to NatSQL: Give the airport code and airport name corresonding to the city Anthony. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.AirportCode , airports.AirportName from airports  where  airports.City = "Anthony"

### Instruction:

Convert text to NatSQL: How many airlines do we have? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( airlines.* )  from airlines

### Instruction:

Convert text to NatSQL: What is the total number of airlines? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( airlines.* )  from airlines

### Instruction:

Convert text to NatSQL: How many airports do we have? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( airports.* )  from airports

### Instruction:

Convert text to NatSQL: Return the number of  airports. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( airports.* )  from airports

### Instruction:

Convert text to NatSQL: How many flights do we have? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights
### Instruction:

Convert text to NatSQL: Return the number of flights. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights

### Instruction:

Convert text to NatSQL: Which airline has abbreviation 'UAL'? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from airlines  where  airlines.Abbreviation = "UAL"

### Instruction:

Convert text to NatSQL: Give the airline with abbreviation 'UAL'. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from airlines  where  airlines.Abbreviation = "UAL"

### Instruction:

Convert text to NatSQL: How many airlines are from USA? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( airlines.* )  from airlines  where  airlines.Country = "USA"

### Instruction:

Convert text to NatSQL: Return the number of airlines in the USA. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( airlines.* )  from airlines  where  airlines.Country = "USA"

### Instruction:

Convert text to NatSQL: Which city and country is the Alton airport at? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.City , airports.Country from airports  where  airports.AirportName = "Alton"

### Instruction:

Convert text to NatSQL: Give the city and country for the Alton airport. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.City , airports.Country from airports  where  airports.AirportName = "Alton"
### Instruction:

Convert text to NatSQL: What is the airport name for airport 'AKO'? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.AirportName from airports  where  airports.AirportCode = "AKO"

### Instruction:

Convert text to NatSQL: Return the name of the airport with code 'AKO'. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.AirportName from airports  where  airports.AirportCode = "AKO"

### Instruction:

Convert text to NatSQL: What are airport names at City 'Aberdeen'? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.AirportName from airports  where  airports.City = "Aberdeen"

### Instruction:

Convert text to NatSQL: What are the names of airports in Aberdeen? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.AirportName from airports  where  airports.City = "Aberdeen"

### Instruction:

Convert text to NatSQL: How many flights depart from 'APG'? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  flights.SourceAirport = "APG"

### Instruction:

Convert text to NatSQL: Count the number of flights departing from 'APG'. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  flights.SourceAirport = "APG"
### Instruction:

Convert text to NatSQL: How many flights have destination ATO? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  flights.DestAirport = "ATO"

### Instruction:

Convert text to NatSQL: Count the number of flights into ATO. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  flights.DestAirport = "ATO"

### Instruction:

Convert text to NatSQL: How many flights depart from City Aberdeen? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  airports.City = "Aberdeen"

### Instruction:

Convert text to NatSQL: Return the number of flights departing from Aberdeen. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  airports.City = "Aberdeen"

### Instruction:

Convert text to NatSQL: How many flights arriving in Aberdeen city? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  airports.City = "Aberdeen"

### Instruction:

Convert text to NatSQL: Return the number of flights arriving in Aberdeen. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  airports.City = "Aberdeen"
### Instruction:

Convert text to NatSQL: How many flights depart from City 'Aberdeen' and have destination City 'Ashley'? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  airports.City = "Ashley"  and  airports.City = "Aberdeen"

### Instruction:

Convert text to NatSQL: How many flights fly from Aberdeen to Ashley? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  airports.City = "Ashley"  and  airports.City = "Aberdeen"

### Instruction:

Convert text to NatSQL: How many flights does airline 'JetBlue Airways' have? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  airlines.Airline = "JetBlue Airways"

### Instruction:

Convert text to NatSQL: Give the number of Jetblue Airways flights. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  airlines.Airline = "JetBlue Airways"

### Instruction:

Convert text to NatSQL: How many 'United Airlines' flights go to Airport 'ASY'? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( airlines.* )  from airlines  where  airlines.Airline = "United Airlines"  and  flights.DestAirport = "ASY"

### Instruction:

Convert text to NatSQL: Count the number of United Airlines flights arriving in ASY Airport. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( airlines.* )  from airlines  where  airlines.Airline = "United Airlines"  and  flights.DestAirport = "ASY"
### Instruction:

Convert text to NatSQL: How many 'United Airlines' flights depart from Airport 'AHD'? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( airlines.* )  from airlines  where  airlines.Airline = "United Airlines"  and  flights.SourceAirport = "AHD"

### Instruction:

Convert text to NatSQL: Return the number of United Airlines flights leaving from AHD Airport. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( airlines.* )  from airlines  where  airlines.Airline = "United Airlines"  and  flights.SourceAirport = "AHD"

### Instruction:

Convert text to NatSQL: How many United Airlines flights go to City 'Aberdeen'? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  airports.City = "Aberdeen"  and  airlines.Airline = "United Airlines"

### Instruction:

Convert text to NatSQL: Count the number of United Airlines flights that arrive in Aberdeen. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select count ( flights.* )  from flights  where  airports.City = "Aberdeen"  and  airlines.Airline = "United Airlines"

### Instruction:

Convert text to NatSQL: Which city has most number of arriving flights? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.City from flights  group by airports.City  order by count ( flights.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Which city has the most frequent destination airport? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.City from flights  group by airports.City  order by count ( flights.* )  desc limit 1
### Instruction:

Convert text to NatSQL: Which city has most number of departing flights? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.City from airports  group by airports.City  order by count ( flights.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Which city is the most frequent source airport? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.City from airports  where  @.@ join flights.*  group by airports.City  order by count ( airports.* )  desc limit 1

### Instruction:

Convert text to NatSQL: What is the code of airport that has the highest number of flights? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.AirportCode from airports  group by airports.AirportCode  order by count ( flights.* )  desc limit 1

### Instruction:

Convert text to NatSQL: What is the airport code of the airport with the most flights? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.AirportCode from airports  group by airports.AirportCode  order by count ( flights.* )  desc limit 1

### Instruction:

Convert text to NatSQL: What is the code of airport that has fewest number of flights? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.AirportCode from airports  group by airports.AirportCode  order by count ( flights.* )  asc limit 1

### Instruction:

Convert text to NatSQL: Give the code of the airport with the least flights. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airports.AirportCode from airports  group by airports.AirportCode  order by count ( flights.* )  asc limit 1
### Instruction:

Convert text to NatSQL: Which airline has most number of flights? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from airlines  group by airlines.Airline  order by count ( flights.* )  desc limit 1

### Instruction:

Convert text to NatSQL: What airline serves the most flights? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from airlines  group by airlines.Airline  order by count ( flights.* )  desc limit 1

### Instruction:

Convert text to NatSQL: Find the abbreviation and country of the airline that has fewest number of flights? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Abbreviation , airlines.Country from airlines  group by airlines.Airline  order by count ( flights.* )  asc limit 1

### Instruction:

Convert text to NatSQL: What is the abbreviation of the airilne has the fewest flights and what country is it in? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Abbreviation , airlines.Country from airlines  group by airlines.Airline  order by count ( flights.* )  asc limit 1

### Instruction:

Convert text to NatSQL: What are airlines that have some flight departing from airport 'AHD'? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from airlines  where  flights.SourceAirport = "AHD"

### Instruction:

Convert text to NatSQL: Which airlines have a flight with source airport AHD? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from airlines  where  flights.SourceAirport = "AHD"
### Instruction:

Convert text to NatSQL: What are airlines that have flights arriving at airport 'AHD'? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from airlines  where  flights.DestAirport = "AHD"

### Instruction:

Convert text to NatSQL: Which airlines have a flight with destination airport AHD? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from airlines  where  flights.DestAirport = "AHD"

### Instruction:

Convert text to NatSQL: Find all airlines that have flights from both airports 'APG' and 'CVO'. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from airlines  where  flights.SourceAirport = "APG"  and  flights.SourceAirport = "CVO"

### Instruction:

Convert text to NatSQL: Which airlines have departing flights from both APG and CVO airports? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from airlines  where  flights.SourceAirport = "APG"  and  flights.SourceAirport = "CVO"

### Instruction:

Convert text to NatSQL: Find all airlines that have flights from airport 'CVO' but not from 'APG'. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from airlines  where  flights.SourceAirport = "CVO"  and  flights.SourceAirport != "APG"

### Instruction:

Convert text to NatSQL: Which airlines have departures from CVO but not from APG airports? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from airlines  where  flights.SourceAirport = "CVO"  and  flights.SourceAirport != "APG"
### Instruction:

Convert text to NatSQL: Find all airlines that have at least 10 flights. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from flights  where  count ( flights.* )  > 10  group by airlines.Airline

### Instruction:

Convert text to NatSQL: Which airlines have at least 10 flights? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from flights  where  count ( flights.* )  > 10  group by airlines.Airline

### Instruction:

Convert text to NatSQL: Find all airlines that have fewer than 200 flights. | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from flights  where  count ( flights.* )  < 200  group by airlines.Airline

### Instruction:

Convert text to NatSQL: Which airlines have less than 200 flights? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select airlines.Airline from flights  where  count ( flights.* )  < 200  group by airlines.Airline

### Instruction:

Convert text to NatSQL: What are flight numbers of Airline "United Airlines"? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select flights.FlightNo from airlines  where  airlines.Airline = "United Airlines"

### Instruction:

Convert text to NatSQL: Which flight numbers correspond to United Airlines flights? | airlines : uid , airline , abbreviation , country | airports : city , airportcode , airportname , country , countryabbrev | flights : airline , flightno , sourceairport , destairport | flights.destairport = airports.airportcode | flights.sourceairport = airports.airportcode | 

### Response:

select flights.FlightNo from flights  where  airlines.Airline = "United Airlines"