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

Convert text to sql: Show the name of aircrafts with top three lowest distances. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ asc limit _ | select name from aircraft order by distance asc limit 3
### Instruction:

Convert text to sql: What are the aircrafts with top 3 shortest lengthes? List their names. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ asc limit _ | select name from aircraft order by distance asc limit 3
### Instruction:

Convert text to sql: Show names for all aircrafts with distances more than the average. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ > ( select avg ( _ ) from _ ) | select name from aircraft where distance > ( select avg ( distance ) from aircraft )
### Instruction:

Convert text to sql: What are the names of all aircrafts that can cover more distances than average? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ > ( select avg ( _ ) from _ ) | select name from aircraft where distance > ( select avg ( distance ) from aircraft )
### Instruction:

Convert text to sql: How many employees do we have? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select count ( _ ) from _ | select count ( * ) from employee
### Instruction:

Convert text to sql: What is the number of employees? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select count ( _ ) from _ | select count ( * ) from employee
### Instruction:

Convert text to sql: Show name and salary for all employees sorted by salary. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ asc | select name , salary from employee order by salary asc
### Instruction:

Convert text to sql: What is the name and salary of all employees in order of salary? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ asc | select name , salary from employee order by salary asc
### Instruction:

Convert text to sql: Show ids for all employees with at least 100000 salary. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select eid from employee where salary > 100000
### Instruction:

Convert text to sql: What is the id of every employee who has at least a salary of  100000? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select eid from employee where salary > 100000
### Instruction:

Convert text to sql: How many employees have salary between 100000 and 200000? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select count ( _ ) from _ where _ between _ and _ | select count ( * ) from employee where salary between 100000 and 200000
### Instruction:

Convert text to sql: What is the number of employees that have a salary between 100000 and 200000? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select count ( _ ) from _ where _ between _ and _ | select count ( * ) from employee where salary between 100000 and 200000
### Instruction:

Convert text to sql: What is the name and salary for employee with id 242518965? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select name , salary from employee where eid = 242518965
### Instruction:

Convert text to sql: What is the name and salary of the employee with the id 242518965? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select name , salary from employee where eid = 242518965
### Instruction:

Convert text to sql: What is average and maximum salary of all employees. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select avg ( _ ) , max ( _ ) from _ | select avg ( salary ) , max ( salary ) from employee
### Instruction:

Convert text to sql: What is the average and largest salary of all employees? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select avg ( _ ) , max ( _ ) from _ | select avg ( salary ) , max ( salary ) from employee
### Instruction:

Convert text to sql: Show the id and name of the employee with maximum salary. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ desc limit _ | select eid , name from employee order by salary desc limit 1
### Instruction:

Convert text to sql: What is the id and name of the employee with the highest salary? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ desc limit _ | select eid , name from employee order by salary desc limit 1
### Instruction:

Convert text to sql: Show the name of employees with three lowest salaries. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ asc limit _ | select name from employee order by salary asc limit 3
### Instruction:

Convert text to sql: What is the name of the 3 employees who get paid the least? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ asc limit _ | select name from employee order by salary asc limit 3
### Instruction:

Convert text to sql: Show names for all employees with salary more than the average. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ > ( select avg ( _ ) from _ ) | select name from employee where salary > ( select avg ( salary ) from employee )
### Instruction:

Convert text to sql: What are the names of all employees who have a salary higher than average? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ > ( select avg ( _ ) from _ ) | select name from employee where salary > ( select avg ( salary ) from employee )
### Instruction:

Convert text to sql: Show the id and salary of Mark Young. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select eid , salary from employee where name = 'Mark Young'
### Instruction:

Convert text to sql: What is the id and salary of the employee named Mark Young? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select eid , salary from employee where name = 'Mark Young'
### Instruction:

Convert text to sql: How many flights do we have? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select count ( _ ) from _ | select count ( * ) from flight
### Instruction:

Convert text to sql: What is the number of flights? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select count ( _ ) from _ | select count ( * ) from flight
### Instruction:

Convert text to sql: Show flight number, origin, destination of all flights in the alphabetical order of the departure cities. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ asc | select flno , origin , destination from flight order by origin asc
### Instruction:

Convert text to sql: What is the flight number, origin, and destination for all flights in alphabetical order by departure cities? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ asc | select flno , origin , destination from flight order by origin asc
### Instruction:

Convert text to sql: Show all flight number from Los Angeles. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select flno from flight where origin = 'Los Angeles'
### Instruction:

Convert text to sql: What are the numbers of all flights coming from Los Angeles? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select flno from flight where origin = 'Los Angeles'
### Instruction:

Convert text to sql: Show origins of all flights with destination Honolulu. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select origin from flight where destination = 'Honolulu'
### Instruction:

Convert text to sql: What are the origins of all flights that are headed to Honolulu? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select origin from flight where destination = 'Honolulu'
### Instruction:

Convert text to sql: Show me the departure date and arrival date for all flights from Los Angeles to Honolulu. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select departure_date , arrival_date from flight where origin = 'Los Angeles' and destination = 'Honolulu'
### Instruction:

Convert text to sql: What are the departure and arrival dates of all flights from LA to Honolulu? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select departure_date , arrival_date from flight where origin = 'Los Angeles' and destination = 'Honolulu'
### Instruction:

Convert text to sql: Show flight number for all flights with more than 2000 distance. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select flno from flight where distance > 2000
### Instruction:

Convert text to sql: What are the numbers of all flights that can cover a distance of more than 2000? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select flno from flight where distance > 2000
### Instruction:

Convert text to sql: What is the average price for flights from Los Angeles to Honolulu. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select avg ( _ ) from _ where _ | select avg ( price ) from flight where origin = 'Los Angeles' and destination = 'Honolulu'
### Instruction:

Convert text to sql: What is the average price for flights from LA to Honolulu? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select avg ( _ ) from _ where _ | select avg ( price ) from flight where origin = 'Los Angeles' and destination = 'Honolulu'
### Instruction:

Convert text to sql: Show origin and destination for flights with price higher than 300. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select origin , destination from flight where price > 300
### Instruction:

Convert text to sql: What is the origin and destination for all flights whose price is higher than 300? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ where _ | select origin , destination from flight where price > 300
### Instruction:

Convert text to sql: Show the flight number and distance of the flight with maximum price. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ desc limit _ | select flno , distance from flight order by price desc limit 1
### Instruction:

Convert text to sql: What is the flight number and its distance for the one with the maximum price? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ desc limit _ | select flno , distance from flight order by price desc limit 1
### Instruction:

Convert text to sql: Show the flight number of flights with three lowest distances. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ asc limit _ | select flno from flight order by distance asc limit 3
### Instruction:

Convert text to sql: What are the numbers of the shortest flights? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ from _ order by _ asc limit _ | select flno from flight order by distance asc limit 3
### Instruction:

Convert text to sql: What is the average distance and average price for flights from Los Angeles. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select avg ( _ ) , avg ( _ ) from _ where _ | select avg ( distance ) , avg ( price ) from flight where origin = 'Los Angeles'
### Instruction:

Convert text to sql: What is the average distance and price for all flights from LA? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select avg ( _ ) , avg ( _ ) from _ where _ | select avg ( distance ) , avg ( price ) from flight where origin = 'Los Angeles'
### Instruction:

Convert text to sql: Show all origins and the number of flights from each origin. | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ , count ( _ ) from _ group by _ | select origin , count ( * ) from flight group by origin
### Instruction:

Convert text to sql: For each origin, how many flights came from there? | flight : flno , origin , destination , distance , departure_date , arrival_date , price , aid | aircraft : aid , name , distance | employee : eid , name , salary | certificate : eid , aid | flight.aid = aircraft.aid | certificate.aid = aircraft.aid | certificate.eid = employee.eid | 

### Response:

select _ , count ( _ ) from _ group by _ | select origin , count ( * ) from flight group by origin