db_id
stringlengths 4
31
| text
stringlengths 398
4.9k
|
---|---|
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Return the total and minimum enrollments 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 sum ( _ ) , min ( _ ) from _ | select sum ( enrollment ) , min ( enrollment ) from university |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: Find the total student enrollment for different affiliation type 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 sum ( _ ) , _ from _ group by _ | select sum ( enrollment ) , affiliation from university group by affiliation |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### Instruction:
Convert text to sql: What are the total enrollments of universities of 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 _ group by _ | select sum ( enrollment ) , affiliation from university group by affiliation |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 ) |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 ) |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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%' |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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%' |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 ) |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 ) |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
university_basketball | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 ) |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
phone_1 | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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%' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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%' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ where _ | 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ where _ | 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' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ ) from _ where _ | select count ( distinct country.official_native_language ) from country join match_season on country.country_id = match_season.country where match_season.position = 'Defender' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ ) from _ where _ | select count ( distinct country.official_native_language ) from country join match_season on country.country_id = match_season.country where match_season.position = 'Defender' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ | select match_season.season , match_season.player , team.name from match_season join team on match_season.team = team.team_id |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ | select match_season.season , match_season.player , team.name from match_season join team on match_season.team = team.team_id |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ where _ | select match_season.position from match_season join team on match_season.team = team.team_id where team.name = 'Ryley Goldner' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ where _ | select match_season.position from match_season join team on match_season.team = team.team_id where team.name = 'Ryley Goldner' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ ) from _ where _ | select count ( distinct match_season.college ) from match_season join team on match_season.team = team.team_id where team.name = 'Columbus Crew' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ ) from _ where _ | select count ( distinct match_season.college ) from match_season join team on match_season.team = team.team_id where team.name = 'Columbus Crew' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ where _ | select player.player , player.years_played from player join team on player.team = team.team_id where team.name = 'Columbus Crew' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ where _ | select player.player , player.years_played from player join team on player.team = team.team_id where team.name = 'Columbus Crew' |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ , count ( _ ) from _ group by _ | select position , count ( * ) from match_season group by position |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ , count ( _ ) from _ group by _ | select position , count ( * ) from match_season group by position |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ , count ( _ ) from _ group by _ | select country_name , count ( * ) from country join match_season on country.country_id = match_season.country group by country.country_name |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ , count ( _ ) from _ group by _ | select country_name , count ( * ) from country join match_season on country.country_id = match_season.country group by country.country_name |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ order by _ asc | select player from match_season order by college asc |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ order by _ asc | select player from match_season order by college asc |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ group by _ order by count ( _ ) desc limit _ | select position from match_season group by position order by count ( * ) desc limit 1 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ group by _ order by count ( _ ) desc limit _ | select position from match_season group by position order by count ( * ) desc limit 1 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ group by _ order by count ( _ ) desc limit _ | select college from match_season group by college order by count ( * ) desc limit 3 |
match_season | Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
### 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 _ from _ group by _ order by count ( _ ) desc limit _ | select college from match_season group by college order by count ( * ) desc limit 3 |