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

Convert text to sql: Show the names of sponsors of players whose residence is either "Brandon" or "Birtle". | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select sponsor_name from player where residence = 'Brandon' or residence = 'Birtle'

### Instruction:

Convert text to sql: What is the name of the player with the largest number of votes? | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select player_name from player order by votes desc limit 1

### Instruction:

Convert text to sql: Show different occupations along with the number of players in each occupation. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select occupation , count ( * ) from player group by occupation

### Instruction:

Convert text to sql: Please show the most common occupation of players. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select occupation from player group by occupation order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Show the residences that have at least two players. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select residence from player group by residence having count ( * ) >= 2

### Instruction:

Convert text to sql: Show the names of players and names of their coaches. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select player.player_name , coach.coach_name from player_coach join coach on player_coach.coach_id = coach.coach_id join player on player_coach.player_id = player.player_id

### Instruction:

Convert text to sql: Show the names of players coached by the rank 1 coach. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select player.player_name from player_coach join coach on player_coach.coach_id = coach.coach_id join player on player_coach.player_id = player.player_id where coach.rank = 1

### Instruction:

Convert text to sql: Show the names and genders of players with a coach starting after 2011. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select player.player_name , player.gender from player_coach join coach on player_coach.coach_id = coach.coach_id join player on player_coach.player_id = player.player_id where player_coach.starting_year > 2011
### Instruction:

Convert text to sql: Show the names of players and names of their coaches in descending order of the votes of players. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select player.player_name , coach.coach_name from player_coach join coach on player_coach.coach_id = coach.coach_id join player on player_coach.player_id = player.player_id order by player.votes desc

### Instruction:

Convert text to sql: List the names of players that do not have coaches. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select player_name from player where player_id not in ( select player_id from player_coach )

### Instruction:

Convert text to sql: Show the residences that have both a player of gender "M" and a player of gender "F". | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select residence from player where gender = 'M' intersect select residence from player where gender = 'F'

### Instruction:

Convert text to sql: How many coaches does each club has? List the club id, name and the number of coaches. | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select club.club_id , club.club_name , count ( * ) from club join coach on club.club_id = coach.club_id group by club.club_id
### Instruction:

Convert text to sql: How many gold medals has the club with the most coaches won? | player : player_id , sponsor_name , player_name , gender , residence , occupation , votes , rank | club : club_id , club_name , region , start_year | coach : coach_id , coach_name , gender , club_id , rank | player_coach : player_id , coach_id , starting_year | match_result : rank , club_id , gold , big_silver , small_silver , bronze , points | coach.club_id = club.club_id | player_coach.coach_id = coach.coach_id | player_coach.player_id = player.player_id | match_result.club_id = club.club_id | 

### Response:

select match_result.club_id , match_result.gold from match_result join coach on match_result.club_id = coach.club_id group by match_result.club_id order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: How many gymnasts are there? | 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 gymnast

### 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 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 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 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 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 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 ( 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 ( 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 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 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 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 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 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 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 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 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 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 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 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 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 ( 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 ( 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 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 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 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 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 people.hometown from gymnast join people on gymnast.gymnast_id = people.people_id group by people.hometown order by count ( * ) desc limit 1