richardr1126/spider-context-instruct huggingface dataset:
### Instruction:

Convert text to sql: How many aircrafts are there? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select count ( * ) from aircraft

### Instruction:

Convert text to sql: What is the number of aircraft? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select count ( * ) from aircraft

### Instruction:

Convert text to sql: List the description of all aircrafts. | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select description from aircraft

### Instruction:

Convert text to sql: What are the descriptions for the aircrafts? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select description from aircraft
### Instruction:

Convert text to sql: What is the average number of international passengers of all airports? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select avg ( international_passengers ) from airport

### Instruction:

Convert text to sql: What is the average number of international passengers for an airport? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select avg ( international_passengers ) from airport

### Instruction:

Convert text to sql: What are the number of international and domestic passengers of the airport named London "Heathrow"? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select international_passengers , domestic_passengers from airport where airport_name = 'London Heathrow'
### Instruction:

Convert text to sql: How many international and domestic passengers are there in the airport London Heathrow? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select international_passengers , domestic_passengers from airport where airport_name = 'London Heathrow'

### Instruction:

Convert text to sql: What are the total number of Domestic Passengers of airports that contain the word "London". | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select sum ( domestic_passengers ) from airport where airport_name like '%London%'

### Instruction:

Convert text to sql: What are the total number of domestic passengers at all London airports? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select sum ( domestic_passengers ) from airport where airport_name like '%London%'
### Instruction:

Convert text to sql: What are the maximum and minimum number of transit passengers of all aiports. | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select max ( transit_passengers ) , min ( transit_passengers ) from airport

### Instruction:

Convert text to sql: What is the maximum and mininum number of transit passengers for all airports? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select max ( transit_passengers ) , min ( transit_passengers ) from airport

### Instruction:

Convert text to sql: What are the name of pilots aged 25 or older? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select name from pilot where age >= 25
### Instruction:

Convert text to sql: what is the name of every pilot who is at least 25 years old? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select name from pilot where age >= 25

### Instruction:

Convert text to sql: List all pilot names in ascending alphabetical order. | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select name from pilot order by name asc

### Instruction:

Convert text to sql: What are the names of the pilots in alphabetical order? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select name from pilot order by name asc
### Instruction:

Convert text to sql: List names of all pilot aged 30 or younger in descending alphabetical order. | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select name from pilot where age <= 30 order by name desc

### Instruction:

Convert text to sql: What are the names of all pilots 30 years old or young in descending alphabetical order? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select name from pilot where age <= 30 order by name desc

### Instruction:

Convert text to sql: Please show the names of aircrafts associated with airport with name "London Gatwick". | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select aircraft.aircraft from aircraft join airport_aircraft on aircraft.aircraft_id = airport_aircraft.aircraft_id join airport on airport_aircraft.airport_id = airport.airport_id where airport.airport_name = 'London Gatwick'
### Instruction:

Convert text to sql: What are the names of all the aircrafts associated with London Gatwick airport? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select aircraft.aircraft from aircraft join airport_aircraft on aircraft.aircraft_id = airport_aircraft.aircraft_id join airport on airport_aircraft.airport_id = airport.airport_id where airport.airport_name = 'London Gatwick'

### Instruction:

Convert text to sql: Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000. | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select aircraft.aircraft , aircraft.description from aircraft join airport_aircraft on aircraft.aircraft_id = airport_aircraft.aircraft_id join airport on airport_aircraft.airport_id = airport.airport_id where airport.total_passengers > 10000000
### Instruction:

Convert text to sql: What are the names and descriptions of aircrafts associated with an airport that has more total passengers than 10000000? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select aircraft.aircraft , aircraft.description from aircraft join airport_aircraft on aircraft.aircraft_id = airport_aircraft.aircraft_id join airport on airport_aircraft.airport_id = airport.airport_id where airport.total_passengers > 10000000

### Instruction:

Convert text to sql: What is the average total number of passengers of airports that are associated with aircraft "Robinson R-22"? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select avg ( airport.total_passengers ) from aircraft join airport_aircraft on aircraft.aircraft_id = airport_aircraft.aircraft_id join airport on airport_aircraft.airport_id = airport.airport_id where aircraft.aircraft = 'Robinson R-22'
### Instruction:

Convert text to sql: What is the average total number of passengers for all airports that the aircraft "Robinson R-22" visits? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select avg ( airport.total_passengers ) from aircraft join airport_aircraft on aircraft.aircraft_id = airport_aircraft.aircraft_id join airport on airport_aircraft.airport_id = airport.airport_id where aircraft.aircraft = 'Robinson R-22'

### Instruction:

Convert text to sql: Please list the location and the winning aircraft name. | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select match.location , aircraft.aircraft from aircraft join match on aircraft.aircraft_id = match.winning_aircraft

### Instruction:

Convert text to sql: What is the location and name of the winning aircraft? | pilot : pilot_id , name , age | aircraft : aircraft_id , aircraft , description , max_gross_weight , total_disk_area , max_disk_loading | match : round , location , country , date , fastest_qualifying , winning_pilot , winning_aircraft | airport : airport_id , airport_name , total_passengers , %_change_2007 , international_passengers , domestic_passengers , transit_passengers , aircraft_movements , freight_metric_tonnes | airport_aircraft : id , airport_id , aircraft_id | match.winning_pilot = pilot.pilot_id | match.winning_aircraft = aircraft.aircraft_id | airport_aircraft.aircraft_id = aircraft.aircraft_id | airport_aircraft.airport_id = airport.airport_id | 

### Response:

select match.location , aircraft.aircraft from aircraft join match on aircraft.aircraft_id = match.winning_aircraft