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

Convert text to sql: Show the players and years played for players from team "Columbus Crew". | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select player.player , player.years_played from player join team on player.team = team.team_id where team.name = 'Columbus Crew'

### Instruction:

Convert text to sql: What are the players who played for Columbus Crew, and how many years did each play for? | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select player.player , player.years_played from player join team on player.team = team.team_id where team.name = 'Columbus Crew'

### Instruction:

Convert text to sql: Show the position of players and the corresponding number of players. | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select position , count ( * ) from match_season group by position

### Instruction:

Convert text to sql: How many players played each position? | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select position , count ( * ) from match_season group by position

### Instruction:

Convert text to sql: Show the country names and the corresponding number of players. | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select country_name , count ( * ) from country join match_season on country.country_id = match_season.country group by country.country_name
### Instruction:

Convert text to sql: How many players are from each country? | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select country_name , count ( * ) from country join match_season on country.country_id = match_season.country group by country.country_name

### Instruction:

Convert text to sql: Return all players sorted by college in ascending alphabetical order. | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select player from match_season order by college asc

### Instruction:

Convert text to sql: What are all the players who played in match season, sorted by college in ascending alphabetical order? | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select player from match_season order by college asc

### Instruction:

Convert text to sql: Show the most common position of players in match seasons. | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select position from match_season group by position order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: What is the position that is most common among players in match seasons? | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select position from match_season group by position order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Show the top 3 most common colleges of players in match seasons. | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select college from match_season group by college order by count ( * ) desc limit 3

### Instruction:

Convert text to sql: What are the three colleges from which the most players are from? | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select college from match_season group by college order by count ( * ) desc limit 3

### Instruction:

Convert text to sql: Show the name of colleges that have at least two players. | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select college from match_season group by college having count ( * ) >= 2

### Instruction:

Convert text to sql: What are the names of all colleges that have two or more players? | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select college from match_season group by college having count ( * ) >= 2

### Instruction:

Convert text to sql: Show the name of colleges that have at least two players in descending alphabetical order. | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select college from match_season group by college having count ( * ) >= 2 order by college desc
### Instruction:

Convert text to sql: What are the names of colleges that have two or more players, listed in descending alphabetical order? | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select college from match_season group by college having count ( * ) >= 2 order by college desc

### Instruction:

Convert text to sql: What are the names of teams that do no have match season record? | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select name from team where team_id not in ( select team from match_season )

### Instruction:

Convert text to sql: Return the names of teams that have no match season record. | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select name from team where team_id not in ( select team from match_season )

### Instruction:

Convert text to sql: What are the names of countries that have both players with position forward and players with position defender? | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select country.country_name from country join match_season on country.country_id = match_season.country where match_season.position = 'Forward' intersect select country.country_name from country join match_season on country.country_id = match_season.country where match_season.position = 'Defender'
### Instruction:

Convert text to sql: Return the names of countries that have players that play the Forward position, as well as players who play the Defender position. | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select country.country_name from country join match_season on country.country_id = match_season.country where match_season.position = 'Forward' intersect select country.country_name from country join match_season on country.country_id = match_season.country where match_season.position = 'Defender'

### Instruction:

Convert text to sql: Which college have both players with position midfielder and players with position defender? | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select college from match_season where position = 'Midfielder' intersect select college from match_season where position = 'Defender'

### Instruction:

Convert text to sql: Return the colleges that have players who play the Midfielder position, as well as players who play the Defender position. | country : country_id , country_name , capital , official_native_language | team : team_id , name | match_season : season , player , position , country , team , draft_pick_number , draft_class , college | player : player_id , player , years_played , total_wl , singles_wl , doubles_wl , team | match_season.team = team.team_id | match_season.country = country.country_id | player.team = team.team_id | 

### Response:

select college from match_season where position = 'Midfielder' intersect select college from match_season where position = 'Defender'
### Instruction:

Convert text to sql: How many climbers are there? | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select count ( * ) from climber

### Instruction:

Convert text to sql: Count the number of climbers. | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select count ( * ) from climber

### Instruction:

Convert text to sql: List the names of climbers in descending order of points. | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select name from climber order by points desc

### Instruction:

Convert text to sql: What are the names of the climbers, ordered by points descending? | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select name from climber order by points desc

### Instruction:

Convert text to sql: List the names of climbers whose country is not Switzerland. | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select name from climber where country != 'Switzerland'

### Instruction:

Convert text to sql: What are the names of climbers who are not from the country of Switzerland? | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select name from climber where country != 'Switzerland'

### Instruction:

Convert text to sql: What is the maximum point for climbers whose country is United Kingdom? | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select max ( points ) from climber where country = 'United Kingdom'

### Instruction:

Convert text to sql: Return the maximum number of points for climbers from the United Kingdom. | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select max ( points ) from climber where country = 'United Kingdom'

### Instruction:

Convert text to sql: How many distinct countries are the climbers from? | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select count ( distinct country ) from climber
### Instruction:

Convert text to sql: Count the number of different countries that climbers are from. | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select count ( distinct country ) from climber

### Instruction:

Convert text to sql: What are the names of mountains in ascending alphabetical order? | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select name from mountain order by name asc

### Instruction:

Convert text to sql: Give the names of mountains in alphabetical order. | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select name from mountain order by name asc

### Instruction:

Convert text to sql: What are the countries of mountains with height bigger than 5000? | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select country from mountain where height > 5000

### Instruction:

Convert text to sql: Return the countries of the mountains that have a height larger than 5000. | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select country from mountain where height > 5000

### Instruction:

Convert text to sql: What is the name of the highest mountain? | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select name from mountain order by height desc limit 1

### Instruction:

Convert text to sql: Return the name of the mountain with the greatest height. | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select name from mountain order by height desc limit 1

### Instruction:

Convert text to sql: List the distinct ranges of the mountains with the top 3 prominence. | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select distinct range from mountain order by prominence desc limit 3
### Instruction:

Convert text to sql: What are the different ranges of the 3 mountains with the highest prominence? | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select distinct range from mountain order by prominence desc limit 3

### Instruction:

Convert text to sql: Show names of climbers and the names of mountains they climb. | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select climber.name , mountain.name from climber join mountain on climber.mountain_id = mountain.mountain_id

### Instruction:

Convert text to sql: What are the names of climbers and the corresponding names of mountains that they climb? | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select climber.name , mountain.name from climber join mountain on climber.mountain_id = mountain.mountain_id

### Instruction:

Convert text to sql: Show the names of climbers and the heights of mountains they climb. | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select climber.name , mountain.height from climber join mountain on climber.mountain_id = mountain.mountain_id

### Instruction:

Convert text to sql: What are the names of climbers and the corresponding heights of the mountains that they climb? | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select climber.name , mountain.height from climber join mountain on climber.mountain_id = mountain.mountain_id

### Instruction:

Convert text to sql: Show the height of the mountain climbed by the climber with the maximum points. | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select mountain.height from climber join mountain on climber.mountain_id = mountain.mountain_id order by climber.points desc limit 1

### Instruction:

Convert text to sql: What is the height of the mountain climbined by the climbing who had the most points? | mountain : mountain_id , name , height , prominence , range , country | climber : climber_id , name , country , time , points , mountain_id | climber.mountain_id = mountain.mountain_id | 

### Response:

select mountain.height from climber join mountain on climber.mountain_id = mountain.mountain_id order by climber.points desc limit 1