richardr1126/spider-context-instruct huggingface dataset:
### 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 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 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 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 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 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 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 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 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 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 ( 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 ( 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 ( 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 ( 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 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 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 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 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 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 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 ( 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 ( 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 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 origin , count ( * ) from flight group by origin

### Instruction:

Convert text to sql: Show all destinations and the number of flights to each destination. | 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 destination , count ( * ) from flight group by destination
### Instruction:

Convert text to sql: What are the destinations and number of flights to each one? | 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 destination , count ( * ) from flight group by destination

### Instruction:

Convert text to sql: Which origin has most 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 origin from flight group by origin order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: What place has the most flights coming 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 origin from flight group by origin order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: Which destination has least 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 destination from flight group by destination order by count ( * ) asc limit 1

### Instruction:

Convert text to sql: What destination has the fewest 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 destination from flight group by destination order by count ( * ) asc limit 1

### Instruction:

Convert text to sql: What is the aircraft name for the flight with number 99 | 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 aircraft.name from flight join aircraft on flight.aid = aircraft.aid where flight.flno = 99