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

Convert text to sql: List the hardware model name for the phons that were produced by "Nokia Corporation" but whose screen mode type is not Text. | chip_model : model_name , launch_year , ram_mib , rom_mib , slots , wifi , bluetooth | screen_mode : graphics_mode , char_cells , pixels , hardware_colours , used_kb , map , type | phone : company_name , hardware_model_name , accreditation_type , accreditation_level , date , chip_model , screen_mode | phone.chip_model = chip_model.model_name | phone.screen_mode = screen_mode.graphics_mode | 

### Response:

select distinct _ from _ where _ | select distinct phone.hardware_model_name from screen_mode join phone on screen_mode.graphics_mode = phone.screen_mode where phone.company_name = 'Nokia Corporation' and screen_mode.type != 'Text'
### Instruction:

Convert text to sql: List the phone hardware model and company name for the phones whose screen usage in kb is between 10 and 15. | chip_model : model_name , launch_year , ram_mib , rom_mib , slots , wifi , bluetooth | screen_mode : graphics_mode , char_cells , pixels , hardware_colours , used_kb , map , type | phone : company_name , hardware_model_name , accreditation_type , accreditation_level , date , chip_model , screen_mode | phone.chip_model = chip_model.model_name | phone.screen_mode = screen_mode.graphics_mode | 

### Response:

select distinct _ from _ where _ between _ and _ | select distinct phone.hardware_model_name , phone.company_name from screen_mode join phone on screen_mode.graphics_mode = phone.screen_mode where screen_mode.used_kb between 10 and 15
### Instruction:

Convert text to sql: Find the number of phones for each accreditation type. | chip_model : model_name , launch_year , ram_mib , rom_mib , slots , wifi , bluetooth | screen_mode : graphics_mode , char_cells , pixels , hardware_colours , used_kb , map , type | phone : company_name , hardware_model_name , accreditation_type , accreditation_level , date , chip_model , screen_mode | phone.chip_model = chip_model.model_name | phone.screen_mode = screen_mode.graphics_mode | 

### Response:

select _ , count ( _ ) from _ group by _ | select accreditation_type , count ( * ) from phone group by accreditation_type
### Instruction:

Convert text to sql: How many phones belongs to each accreditation type? | chip_model : model_name , launch_year , ram_mib , rom_mib , slots , wifi , bluetooth | screen_mode : graphics_mode , char_cells , pixels , hardware_colours , used_kb , map , type | phone : company_name , hardware_model_name , accreditation_type , accreditation_level , date , chip_model , screen_mode | phone.chip_model = chip_model.model_name | phone.screen_mode = screen_mode.graphics_mode | 

### Response:

select _ , count ( _ ) from _ group by _ | select accreditation_type , count ( * ) from phone group by accreditation_type
### Instruction:

Convert text to sql: Find the accreditation level that more than 3 phones use. | chip_model : model_name , launch_year , ram_mib , rom_mib , slots , wifi , bluetooth | screen_mode : graphics_mode , char_cells , pixels , hardware_colours , used_kb , map , type | phone : company_name , hardware_model_name , accreditation_type , accreditation_level , date , chip_model , screen_mode | phone.chip_model = chip_model.model_name | phone.screen_mode = screen_mode.graphics_mode | 

### Response:

select _ from _ group by _ having count ( _ ) > _ | select accreditation_level from phone group by accreditation_level having count ( * ) > 3
### Instruction:

Convert text to sql: Find the details for all chip models. | chip_model : model_name , launch_year , ram_mib , rom_mib , slots , wifi , bluetooth | screen_mode : graphics_mode , char_cells , pixels , hardware_colours , used_kb , map , type | phone : company_name , hardware_model_name , accreditation_type , accreditation_level , date , chip_model , screen_mode | phone.chip_model = chip_model.model_name | phone.screen_mode = screen_mode.graphics_mode | 

### Response:

select _ from _ | select * from chip_model
### Instruction:

Convert text to sql: How many models do not have the wifi function? | chip_model : model_name , launch_year , ram_mib , rom_mib , slots , wifi , bluetooth | screen_mode : graphics_mode , char_cells , pixels , hardware_colours , used_kb , map , type | phone : company_name , hardware_model_name , accreditation_type , accreditation_level , date , chip_model , screen_mode | phone.chip_model = chip_model.model_name | phone.screen_mode = screen_mode.graphics_mode | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from chip_model where wifi = 'No'
### Instruction:

Convert text to sql: Count the number of chip model that do not have wifi. | chip_model : model_name , launch_year , ram_mib , rom_mib , slots , wifi , bluetooth | screen_mode : graphics_mode , char_cells , pixels , hardware_colours , used_kb , map , type | phone : company_name , hardware_model_name , accreditation_type , accreditation_level , date , chip_model , screen_mode | phone.chip_model = chip_model.model_name | phone.screen_mode = screen_mode.graphics_mode | 

### Response:

select count ( _ ) from _ where _ | select count ( * ) from chip_model where wifi = 'No'
### Instruction:

Convert text to sql: List all the model names sorted by their launch year. | chip_model : model_name , launch_year , ram_mib , rom_mib , slots , wifi , bluetooth | screen_mode : graphics_mode , char_cells , pixels , hardware_colours , used_kb , map , type | phone : company_name , hardware_model_name , accreditation_type , accreditation_level , date , chip_model , screen_mode | phone.chip_model = chip_model.model_name | phone.screen_mode = screen_mode.graphics_mode | 

### Response:

select _ from _ order by _ asc | select model_name from chip_model order by launch_year asc
### Instruction:

Convert text to sql: Find the average ram mib size of the chip models that are never used by any phone. | chip_model : model_name , launch_year , ram_mib , rom_mib , slots , wifi , bluetooth | screen_mode : graphics_mode , char_cells , pixels , hardware_colours , used_kb , map , type | phone : company_name , hardware_model_name , accreditation_type , accreditation_level , date , chip_model , screen_mode | phone.chip_model = chip_model.model_name | phone.screen_mode = screen_mode.graphics_mode | 

### Response:

select avg ( _ ) from _ where _ not in ( select _ from _ ) | select avg ( ram_mib ) from chip_model where model_name not in ( select chip_model from phone )
### Instruction:

Convert text to sql: Find the names of the chip models that are not used by any phone with full accreditation type. | chip_model : model_name , launch_year , ram_mib , rom_mib , slots , wifi , bluetooth | screen_mode : graphics_mode , char_cells , pixels , hardware_colours , used_kb , map , type | phone : company_name , hardware_model_name , accreditation_type , accreditation_level , date , chip_model , screen_mode | phone.chip_model = chip_model.model_name | phone.screen_mode = screen_mode.graphics_mode | 

### Response:

select _ from _ except select _ from _ where _ | select model_name from chip_model except select chip_model from phone where accreditation_type = 'Full'
### Instruction:

Convert text to sql: Find the pixels of the screen modes that are used by both phones with full accreditation types and phones with Provisional accreditation types. | chip_model : model_name , launch_year , ram_mib , rom_mib , slots , wifi , bluetooth | screen_mode : graphics_mode , char_cells , pixels , hardware_colours , used_kb , map , type | phone : company_name , hardware_model_name , accreditation_type , accreditation_level , date , chip_model , screen_mode | phone.chip_model = chip_model.model_name | phone.screen_mode = screen_mode.graphics_mode | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select screen_mode.pixels from screen_mode join phone on screen_mode.graphics_mode = phone.screen_mode where phone.accreditation_type = 'Provisional' intersect select screen_mode.pixels from screen_mode join phone on screen_mode.graphics_mode = phone.screen_mode where phone.accreditation_type = 'Full'
### 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 _ | 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 _ | 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 _ from _ | 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 _ from _ | 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 _ from _ where _ like _ | 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 _ from _ where _ like _ | 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 _ from _ | 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 _ from _ | 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 _ from _ where _ | 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 _ from _ where _ | 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 _ from _ where _ | 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 _ from _ where _ | 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 _ from _ where _ | 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 _ from _ where _ | 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 _ ) from _ | 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 _ ) from _ | 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 _ from _ | 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 _ from _ | 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 _ from _ | 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 _ from _ | 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 _ from _ | 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 _ from _ | 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 _ from _ where _ | 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 _ from _ where _ | 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 _ from _ where _ | 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 _ from _ where _ | select distinct match_season.position from country join match_season on country.country_id = match_season.country where country.capital = 'Dublin'