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

Convert text to sql: How many countries are there in total? | 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 count ( * ) from country

### Instruction:

Convert text to sql: Count the number of countries. | 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 count ( * ) from country

### Instruction:

Convert text to sql: Show the country name and capital of all countries. | 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 , capital from country

### Instruction:

Convert text to sql: What are the names and capitals of 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 , capital from country

### Instruction:

Convert text to sql: Show all official native languages that contain the word "English". | 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 official_native_language from country where official_native_language like '%English%'
### Instruction:

Convert text to sql: What are the official native languages that contain the string "English". | 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 official_native_language from country where official_native_language like '%English%'

### Instruction:

Convert text to sql: Show all distinct positions of matches. | 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 distinct position from match_season

### Instruction:

Convert text to sql: What are the different positions for match season? | 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 distinct position from match_season

### Instruction:

Convert text to sql: Show the players from college UCLA. | 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 where college = 'UCLA'

### Instruction:

Convert text to sql: Who are the players from UCLA? | 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 where college = 'UCLA'
### Instruction:

Convert text to sql: Show the distinct position of players from college UCLA or Duke. | 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 distinct position from match_season where college = 'UCLA' or college = 'Duke'

### Instruction:

Convert text to sql: What are the different positions of players from UCLA or Duke colleges? | 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 distinct position from match_season where college = 'UCLA' or college = 'Duke'

### Instruction:

Convert text to sql: Show the draft pick numbers and draft classes of players whose positions are defenders. | 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 draft_pick_number , draft_class from match_season where position = 'Defender'

### Instruction:

Convert text to sql: What are the draft pick numbers and draft classes for 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 draft_pick_number , draft_class from match_season where position = 'Defender'

### Instruction:

Convert text to sql: How many distinct teams are involved 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 count ( distinct team ) from match_season
### Instruction:

Convert text to sql: Count the number of different teams involved in match season. | 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 count ( distinct team ) from match_season

### Instruction:

Convert text to sql: Show the players and the years played. | 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 , years_played from player

### Instruction:

Convert text to sql: Who are the different players and how many years has each played? | 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 , years_played from player

### Instruction:

Convert text to sql: Show all team names. | 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

### Instruction:

Convert text to sql: What are the names of all teams? | 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
### Instruction:

Convert text to sql: Show the season, the player, and the name of the country that player belongs to. | 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 match_season.season , match_season.player , country.country_name from country join match_season on country.country_id = match_season.country

### Instruction:

Convert text to sql: For each player, what are their name, season, and country that they belong to? | 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 match_season.season , match_season.player , country.country_name from country join match_season on country.country_id = match_season.country

### Instruction:

Convert text to sql: Which players are from Indonesia? | 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 match_season.player from country join match_season on country.country_id = match_season.country where country.country_name = 'Indonesia'

### Instruction:

Convert text to sql: Who are the players from Indonesia? | 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 match_season.player from country join match_season on country.country_id = match_season.country where country.country_name = 'Indonesia'
### Instruction:

Convert text to sql: What are the distinct positions of the players from a country whose capital is Dublin? | 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 distinct match_season.position from country join match_season on country.country_id = match_season.country where country.capital = 'Dublin'

### Instruction:

Convert text to sql: Give the different positions of players who play for the country with the capital Dublin. | 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 distinct match_season.position from country join match_season on country.country_id = match_season.country where country.capital = 'Dublin'

### Instruction:

Convert text to sql: What are the official languages of the countries of players from Maryland or Duke college? | 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.official_native_language from country join match_season on country.country_id = match_season.country where match_season.college = 'Maryland' or match_season.college = 'Duke'

### Instruction:

Convert text to sql: Return the official native languages of countries who have players from Maryland or Duke colleges. | 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.official_native_language from country join match_season on country.country_id = match_season.country where match_season.college = 'Maryland' or match_season.college = 'Duke'
### Instruction:

Convert text to sql: How many distinct official languages are there among countries of players whose positions are defenders. | 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 count ( distinct country.official_native_language ) from country join match_season on country.country_id = match_season.country where match_season.position = 'Defender'

### Instruction:

Convert text to sql: Count the number of different official languages corresponding to countries that players who play Defender 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 count ( distinct country.official_native_language ) from country join match_season on country.country_id = match_season.country where match_season.position = 'Defender'

### Instruction:

Convert text to sql: Show the season, the player, and the name of the team that players belong to. | 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 match_season.season , match_season.player , team.name from match_season join team on match_season.team = team.team_id

### Instruction:

Convert text to sql: Who are the different players, what season do they play in, and what is the name of the team they are on? | 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 match_season.season , match_season.player , team.name from match_season join team on match_season.team = team.team_id
### Instruction:

Convert text to sql: Show the positions of the players from the team with name "Ryley Goldner". | 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 match_season.position from match_season join team on match_season.team = team.team_id where team.name = 'Ryley Goldner'

### Instruction:

Convert text to sql: Return the positions of players on the team Ryley Goldner. | 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 match_season.position from match_season join team on match_season.team = team.team_id where team.name = 'Ryley Goldner'

### Instruction:

Convert text to sql: How many distinct colleges are associated with players from the team with name "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 count ( distinct match_season.college ) from match_season join team on match_season.team = team.team_id where team.name = 'Columbus Crew'

### Instruction:

Convert text to sql: Count the number of different colleges that players who play for Columbus Crew 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 count ( distinct match_season.college ) from match_season join team on match_season.team = team.team_id where team.name = 'Columbus Crew'