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

Convert text to sql: Count the number of gymnasts. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

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

Convert text to sql: List the total points of gymnasts in descending order. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ desc | select total_points from gymnast order by total_points desc
### Instruction:

Convert text to sql: What are the total points for all gymnasts, ordered by total points descending? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ desc | select total_points from gymnast order by total_points desc
### Instruction:

Convert text to sql: List the total points of gymnasts in descending order of floor exercise points. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ desc | select total_points from gymnast order by floor_exercise_points desc
### Instruction:

Convert text to sql: What are the total points of gymnasts, ordered by their floor exercise points descending? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ desc | select total_points from gymnast order by floor_exercise_points desc
### Instruction:

Convert text to sql: What is the average horizontal bar points for all gymnasts? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select avg ( _ ) from _ | select avg ( horizontal_bar_points ) from gymnast
### Instruction:

Convert text to sql: Return the average horizontal bar points across all gymnasts. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select avg ( _ ) from _ | select avg ( horizontal_bar_points ) from gymnast
### Instruction:

Convert text to sql: What are the names of people in ascending alphabetical order? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ asc | select name from people order by name asc
### Instruction:

Convert text to sql: Return the names of people, ordered alphabetically. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ asc | select name from people order by name asc
### Instruction:

Convert text to sql: What are the names of gymnasts? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ | select people.name from gymnast join people on gymnast.gymnast_id = people.people_id
### Instruction:

Convert text to sql: Return the names of the gymnasts. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ | select people.name from gymnast join people on gymnast.gymnast_id = people.people_id
### Instruction:

Convert text to sql: What are the names of gymnasts whose hometown is not "Santo Domingo"? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ where _ | select people.name from gymnast join people on gymnast.gymnast_id = people.people_id where people.hometown != 'Santo Domingo'
### Instruction:

Convert text to sql: Return the names of gymnasts who did not grow up in Santo Domingo. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ where _ | select people.name from gymnast join people on gymnast.gymnast_id = people.people_id where people.hometown != 'Santo Domingo'
### Instruction:

Convert text to sql: What is the age of the tallest person? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select age from people order by height desc limit 1
### Instruction:

Convert text to sql: Return the age of the person with the greatest height. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select age from people order by height desc limit 1
### Instruction:

Convert text to sql: List the names of the top 5 oldest people. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select name from people order by age desc limit 5
### Instruction:

Convert text to sql: What are the names of the five oldest people? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ desc limit _ | select name from people order by age desc limit 5
### Instruction:

Convert text to sql: What is the total point count of the youngest gymnast? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ asc limit _ | select gymnast.total_points from gymnast join people on gymnast.gymnast_id = people.people_id order by people.age asc limit 1
### Instruction:

Convert text to sql: Return the total points of the gymnast with the lowest age. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ asc limit _ | select gymnast.total_points from gymnast join people on gymnast.gymnast_id = people.people_id order by people.age asc limit 1
### Instruction:

Convert text to sql: What is the average age of all gymnasts? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select avg ( _ ) from _ | select avg ( people.age ) from gymnast join people on gymnast.gymnast_id = people.people_id
### Instruction:

Convert text to sql: Return the average age across all gymnasts. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select avg ( _ ) from _ | select avg ( people.age ) from gymnast join people on gymnast.gymnast_id = people.people_id
### Instruction:

Convert text to sql: What are the distinct hometowns of gymnasts with total points more than 57.5? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select distinct _ from _ where _ | select distinct people.hometown from gymnast join people on gymnast.gymnast_id = people.people_id where gymnast.total_points > 57.5
### Instruction:

Convert text to sql: Give the different hometowns of gymnasts that have a total point score of above 57.5. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select distinct _ from _ where _ | select distinct people.hometown from gymnast join people on gymnast.gymnast_id = people.people_id where gymnast.total_points > 57.5
### Instruction:

Convert text to sql: What are the hometowns of gymnasts and the corresponding number of gymnasts? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select people.hometown , count ( * ) from gymnast join people on gymnast.gymnast_id = people.people_id group by people.hometown
### Instruction:

Convert text to sql: How many gymnasts are from each hometown? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ , count ( _ ) from _ group by _ | select people.hometown , count ( * ) from gymnast join people on gymnast.gymnast_id = people.people_id group by people.hometown
### Instruction:

Convert text to sql: What is the most common hometown of gymnasts? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select people.hometown from gymnast join people on gymnast.gymnast_id = people.people_id group by people.hometown order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Return the hometown that is most common among gymnasts. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select people.hometown from gymnast join people on gymnast.gymnast_id = people.people_id group by people.hometown order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What are the hometowns that are shared by at least two gymnasts? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select people.hometown from gymnast join people on gymnast.gymnast_id = people.people_id group by people.hometown having count ( * ) >= 2
### Instruction:

Convert text to sql: Give the hometowns from which two or more gymnasts are from. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select people.hometown from gymnast join people on gymnast.gymnast_id = people.people_id group by people.hometown having count ( * ) >= 2
### Instruction:

Convert text to sql: List the names of gymnasts in ascending order by their heights. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ asc | select people.name from gymnast join people on gymnast.gymnast_id = people.people_id order by people.height asc
### Instruction:

Convert text to sql: What are the names of gymnasts, ordered by their heights ascending? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ asc | select people.name from gymnast join people on gymnast.gymnast_id = people.people_id order by people.height asc
### Instruction:

Convert text to sql: List the distinct hometowns that are not associated with any gymnast. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select distinct _ from _ except select distinct _ from _ | select distinct hometown from people except select distinct people.hometown from gymnast join people on gymnast.gymnast_id = people.people_id
### Instruction:

Convert text to sql: From which hometowns did no gymnasts come from? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select distinct _ from _ except select distinct _ from _ | select distinct hometown from people except select distinct people.hometown from gymnast join people on gymnast.gymnast_id = people.people_id
### Instruction:

Convert text to sql: Show the hometowns shared by people older than 23 and younger than 20. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select hometown from people where age > 23 intersect select hometown from people where age < 20
### Instruction:

Convert text to sql: From which hometowns did both people older than 23 and younger than 20 come from? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select hometown from people where age > 23 intersect select hometown from people where age < 20
### Instruction:

Convert text to sql: How many distinct hometowns did these people have? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct hometown ) from people
### Instruction:

Convert text to sql: Count the number of different hometowns of these people. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct hometown ) from people
### Instruction:

Convert text to sql: Show the ages of gymnasts in descending order of total points. | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ desc | select people.age from gymnast join people on gymnast.gymnast_id = people.people_id order by gymnast.total_points desc
### Instruction:

Convert text to sql: What are the ages of the gymnasts, ordered descending by their total points? | gymnast : gymnast_id , floor_exercise_points , pommel_horse_points , rings_points , vault_points , parallel_bars_points , horizontal_bar_points , total_points | people : people_id , name , age , height , hometown | gymnast.gymnast_id = people.people_id | 

### Response:

select _ from _ order by _ desc | select people.age from gymnast join people on gymnast.gymnast_id = people.people_id order by gymnast.total_points desc
### Instruction:

Convert text to sql: Find the total savings balance of all accounts except the account with name 'Brown'. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select sum ( _ ) from _ where _ | select sum ( savings.balance ) from accounts join savings on accounts.custid = savings.custid where accounts.name != 'Brown'
### Instruction:

Convert text to sql: What is the total balance of savings accounts not belonging to someone with the name Brown? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select sum ( _ ) from _ where _ | select sum ( savings.balance ) from accounts join savings on accounts.custid = savings.custid where accounts.name != 'Brown'
### Instruction:

Convert text to sql: How many accounts are there in total? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

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

Convert text to sql: Count the number of accounts. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

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

Convert text to sql: What is the total checking balance in all accounts? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select sum ( _ ) from _ | select sum ( balance ) from checking
### Instruction:

Convert text to sql: Find the total balance across checking accounts. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select sum ( _ ) from _ | select sum ( balance ) from checking
### Instruction:

Convert text to sql: Find the average checking balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select avg ( _ ) from _ | select avg ( balance ) from checking
### Instruction:

Convert text to sql: What is the average balance in checking accounts? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select avg ( _ ) from _ | select avg ( balance ) from checking
### Instruction:

Convert text to sql: How many accounts have a savings balance above the average savings balance? | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select count ( _ ) from _ where _ > ( select avg ( _ ) from _ ) | select count ( * ) from savings where balance > ( select avg ( balance ) from savings )
### Instruction:

Convert text to sql: Find the number of accounts with a savings balance that is higher than the average savings balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select count ( _ ) from _ where _ > ( select avg ( _ ) from _ ) | select count ( * ) from savings where balance > ( select avg ( balance ) from savings )
### Instruction:

Convert text to sql: Find the name and id of accounts whose checking balance is below the maximum checking balance. | accounts : custid , name | savings : custid , balance | checking : custid , balance | savings.custid = accounts.custid | checking.custid = accounts.custid | 

### Response:

select _ from _ where _ < ( select max ( _ ) from _ ) | select accounts.custid , accounts.name from accounts join checking on accounts.custid = checking.custid where checking.balance < ( select max ( balance ) from checking )