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

Convert text to sql: How many schools do not participate in the basketball match? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( _ ) from _ where _ not in ( select _ from _ ) | select count ( * ) from university where school_id not in ( select school_id from basketball_match )
### Instruction:

Convert text to sql: Count the number of universities that do not participate in the baketball match. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( _ ) from _ where _ not in ( select _ from _ ) | select count ( * ) from university where school_id not in ( select school_id from basketball_match )
### Instruction:

Convert text to sql: Find the schools that were either founded after 1850 or public. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ where _ | select school from university where founded > 1850 or affiliation = 'Public'
### Instruction:

Convert text to sql: What are the schools that were either founded before 1850 or are public? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ where _ | select school from university where founded > 1850 or affiliation = 'Public'
### Instruction:

Convert text to sql: Find how many different affiliation types there are. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct affiliation ) from university
### Instruction:

Convert text to sql: Count the number of different affiliation types. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct affiliation ) from university
### Instruction:

Convert text to sql: Find how many school locations have the word 'NY'. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( _ ) from _ where _ like _ | select count ( * ) from university where location like '%NY%'
### Instruction:

Convert text to sql: How many universities have a location that contains NY? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( _ ) from _ where _ like _ | select count ( * ) from university where location like '%NY%'
### Instruction:

Convert text to sql: Find the team names of the universities whose enrollments are smaller than the average enrollment size. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ where _ < ( select avg ( _ ) from _ ) | select basketball_match.team_name from university join basketball_match on university.school_id = basketball_match.school_id where enrollment < ( select avg ( enrollment ) from university )
### Instruction:

Convert text to sql: What are the names of teams from universities that have a below average enrollment? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ where _ < ( select avg ( _ ) from _ ) | select basketball_match.team_name from university join basketball_match on university.school_id = basketball_match.school_id where enrollment < ( select avg ( enrollment ) from university )
### Instruction:

Convert text to sql: Find the number of universities that have over a 20000 enrollment size for each affiliation type. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( _ ) , _ from _ where _ group by _ | select count ( * ) , affiliation from university where enrollment > 20000 group by affiliation
### Instruction:

Convert text to sql: What are the different affiliations, and how many schools with each have an enrollment size of above 20000? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select count ( _ ) , _ from _ where _ group by _ | select count ( * ) , affiliation from university where enrollment > 20000 group by affiliation
### Instruction:

Convert text to sql: Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select sum ( _ ) , _ from _ where _ group by _ | select sum ( enrollment ) , affiliation from university where founded > 1850 group by affiliation
### Instruction:

Convert text to sql: What are the different affiliations, and what is the total enrollment of schools founded after 1850 for each enrollment type? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select sum ( _ ) , _ from _ where _ group by _ | select sum ( enrollment ) , affiliation from university where founded > 1850 group by affiliation
### Instruction:

Convert text to sql: What is the maximum enrollment across all schools? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select max ( _ ) from _ | select max ( enrollment ) from university
### Instruction:

Convert text to sql: Return the maximum enrollment across all schools. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select max ( _ ) from _ | select max ( enrollment ) from university
### Instruction:

Convert text to sql: List all information regarding the basketball match. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

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

Convert text to sql: What is all the information about the basketball match? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

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

Convert text to sql: List names of all teams in the basketball competition, ordered by all home scores in descending order. | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ desc | select team_name from basketball_match order by all_home desc
### Instruction:

Convert text to sql: What are the names of all the teams in the basketball competition, sorted by all home scores in descending order? | basketball_match : team_id , school_id , team_name , acc_regular_season , acc_percent , acc_home , acc_road , all_games , all_games_percent , all_home , all_road , all_neutral | university : school_id , school , location , founded , affiliation , enrollment , nickname , primary_conference | basketball_match.school_id = university.school_id | 

### Response:

select _ from _ order by _ desc | select team_name from basketball_match order by all_home desc
### Instruction:

Convert text to sql: the names of models that launched between 2002 and 2004. | 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 _ between _ and _ | select model_name from chip_model where launch_year between 2002 and 2004
### Instruction:

Convert text to sql: Which model has the least amount of RAM? List the model name and the amount of RAM. | 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 limit _ | select model_name , ram_mib from chip_model order by ram_mib asc limit 1
### Instruction:

Convert text to sql: What are the chip model and screen mode of the phone with hardware model name "LG-P760"? | 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 _ | select chip_model , screen_mode from phone where hardware_model_name = 'LG-P760'
### Instruction:

Convert text to sql: How many phone hardware models are produced by the company named "Nokia Corporation"? | 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 phone where company_name = 'Nokia Corporation'
### Instruction:

Convert text to sql: What is maximum and minimum RAM size of phone produced by company named "Nokia Corporation"? | 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 max ( _ ) , min ( _ ) from _ where _ | select max ( chip_model.ram_mib ) , min ( chip_model.ram_mib ) from chip_model join phone on chip_model.model_name = phone.chip_model where phone.company_name = 'Nokia Corporation'
### Instruction:

Convert text to sql: What is the average ROM size of phones produced by the company named "Nokia Corporation"? | 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 _ | select avg ( chip_model.rom_mib ) from chip_model join phone on chip_model.model_name = phone.chip_model where phone.company_name = 'Nokia Corporation'
### Instruction:

Convert text to sql: List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32. | 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 _ | select phone.hardware_model_name , phone.company_name from chip_model join phone on chip_model.model_name = phone.chip_model where chip_model.launch_year = 2002 or chip_model.ram_mib > 32
### Instruction:

Convert text to sql: Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name. | 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 _ like _ | select hardware_model_name , company_name from phone where accreditation_type like 'Full'
### Instruction:

Convert text to sql: Find the Char cells, Pixels and Hardware colours for the screen of the phone whose hardware model name is "LG-P760". | 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 _ | select screen_mode.char_cells , screen_mode.pixels , screen_mode.hardware_colours from screen_mode join phone on screen_mode.graphics_mode = phone.screen_mode where phone.hardware_model_name = 'LG-P760'
### Instruction:

Convert text to sql: List the hardware model name and company name for the phone whose screen mode type is "Graphics." | 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 _ | select phone.hardware_model_name , phone.company_name from screen_mode join phone on screen_mode.graphics_mode = phone.screen_mode where screen_mode.type = 'Graphics'
### Instruction:

Convert text to sql: Find the name of the company that has the least number of phone models. List the company name and the number of phone model produced by that company. | 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 _ order by count ( _ ) asc limit _ | select company_name , count ( * ) from phone group by company_name order by count ( * ) asc limit 1
### Instruction:

Convert text to sql: List the name of the company that produced more than one phone model. | 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 company_name from phone group by company_name having count ( * ) > 1
### Instruction:

Convert text to sql: List the maximum, minimum and average number of used kb in screen mode. | 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 max ( _ ) , min ( _ ) , avg ( _ ) from _ | select max ( used_kb ) , min ( used_kb ) , avg ( used_kb ) from screen_mode
### Instruction:

Convert text to sql: List the name of the phone model launched in year 2002 and with the highest RAM size. | 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 _ order by _ desc limit _ | select phone.hardware_model_name from chip_model join phone on chip_model.model_name = phone.chip_model where chip_model.launch_year = 2002 order by chip_model.ram_mib desc limit 1
### Instruction:

Convert text to sql: What are the wifi and screen mode type of the hardware model named "LG-P760"? | 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 _ | select chip_model.wifi , screen_mode.type from chip_model join phone on chip_model.model_name = phone.chip_model join screen_mode on phone.screen_mode = screen_mode.graphics_mode where phone.hardware_model_name = 'LG-P760'
### Instruction:

Convert text to sql: List the hardware model name for the phones that have screen mode type "Text" or RAM size greater than 32. | 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 _ | select phone.hardware_model_name from chip_model join phone on chip_model.model_name = phone.chip_model join screen_mode on phone.screen_mode = screen_mode.graphics_mode where screen_mode.type = 'Text' or chip_model.ram_mib > 32
### Instruction:

Convert text to sql: List the hardware model name for the phones that were produced by "Nokia Corporation" or whose screen mode type is "Graphics." | 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 screen_mode.type = 'Graphics' or phone.company_name = 'Nokia Corporation'