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

Convert text to sql: What are the types of video games and how many are in each type? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ , count ( _ ) from _ group by _ | select gtype , count ( * ) from video_games group by gtype
### Instruction:

Convert text to sql: Which game type has most number of games? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select gtype from video_games group by gtype order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What type has the most games? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select gtype from video_games group by gtype order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Which game type has least number of games? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ group by _ order by count ( _ ) asc limit _ | select gtype from video_games group by gtype order by count ( * ) asc limit 1
### Instruction:

Convert text to sql: What is the type with the fewest games? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ group by _ order by count ( _ ) asc limit _ | select gtype from video_games group by gtype order by count ( * ) asc limit 1
### Instruction:

Convert text to sql: Show ids for all students who live in CHI. | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ | select stuid from student where city_code = 'CHI'
### Instruction:

Convert text to sql: What are the ids of all students who live in CHI? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ | select stuid from student where city_code = 'CHI'
### Instruction:

Convert text to sql: Show ids for all students who have advisor 1121. | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ | select stuid from student where advisor = 1121
### Instruction:

Convert text to sql: What are the ids of all students who have advisor number 1121? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ | select stuid from student where advisor = 1121
### Instruction:

Convert text to sql: Show first name for all students with major 600. | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ | select fname from student where major = 600
### Instruction:

Convert text to sql: What are the first names for all students who are from the major numbered 600? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ | select fname from student where major = 600
### Instruction:

Convert text to sql: Show the average, minimum, and maximum age for different majors. | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ , avg ( _ ) , min ( _ ) , max ( _ ) from _ group by _ | select major , avg ( age ) , min ( age ) , max ( age ) from student group by major
### Instruction:

Convert text to sql: What are the average, minimum, and max ages for each of the different majors? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ , avg ( _ ) , min ( _ ) , max ( _ ) from _ group by _ | select major , avg ( age ) , min ( age ) , max ( age ) from student group by major
### Instruction:

Convert text to sql: Show all advisors who have at least two students. | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select advisor from student group by advisor having count ( * ) >= 2
### Instruction:

Convert text to sql: What are the advisors | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ group by _ having count ( _ ) >= _ | select advisor from student group by advisor having count ( * ) >= 2
### Instruction:

Convert text to sql: How many sports do we have? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct sportname ) from sportsinfo
### Instruction:

Convert text to sql: How many different types of sports do we offer? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct sportname ) from sportsinfo
### Instruction:

Convert text to sql: How many students play sports? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct stuid ) from sportsinfo
### Instruction:

Convert text to sql: How many different students are involved in sports? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select count ( distinct _ ) from _ | select count ( distinct stuid ) from sportsinfo
### Instruction:

Convert text to sql: List ids for all student who are on scholarship. | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ | select stuid from sportsinfo where onscholarship = 'Y'
### Instruction:

Convert text to sql: What are the ids for all sporty students who are on scholarship? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ | select stuid from sportsinfo where onscholarship = 'Y'
### Instruction:

Convert text to sql: Show last names for all student who are on scholarship. | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ | select student.lname from sportsinfo join student on sportsinfo.stuid = student.stuid where sportsinfo.onscholarship = 'Y'
### Instruction:

Convert text to sql: What are the last names for all scholarship students? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ | select student.lname from sportsinfo join student on sportsinfo.stuid = student.stuid where sportsinfo.onscholarship = 'Y'
### Instruction:

Convert text to sql: How many games are played for all students? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select sum ( _ ) from _ | select sum ( gamesplayed ) from sportsinfo
### Instruction:

Convert text to sql: What is the total number of games played? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select sum ( _ ) from _ | select sum ( gamesplayed ) from sportsinfo
### Instruction:

Convert text to sql: How many games are played for all football games by students on scholarship? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select sum ( _ ) from _ where _ | select sum ( gamesplayed ) from sportsinfo where sportname = 'Football' and onscholarship = 'Y'
### Instruction:

Convert text to sql: What is the total number of all football games played by scholarship students? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select sum ( _ ) from _ where _ | select sum ( gamesplayed ) from sportsinfo where sportname = 'Football' and onscholarship = 'Y'
### Instruction:

Convert text to sql: Show all sport name and the number of students. | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ , count ( _ ) from _ group by _ | select sportname , count ( * ) from sportsinfo group by sportname
### Instruction:

Convert text to sql: How many students play each sport? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ , count ( _ ) from _ group by _ | select sportname , count ( * ) from sportsinfo group by sportname
### Instruction:

Convert text to sql: Show all student IDs with the number of sports and total number of games played | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ , count ( _ ) , sum ( _ ) from _ group by _ | select stuid , count ( * ) , sum ( gamesplayed ) from sportsinfo group by stuid
### Instruction:

Convert text to sql: What are the ids of all students along with how many sports and games did they play? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ , count ( _ ) , sum ( _ ) from _ group by _ | select stuid , count ( * ) , sum ( gamesplayed ) from sportsinfo group by stuid
### Instruction:

Convert text to sql: Show all student IDs with more than total 10 hours per week on all sports played. | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ group by _ having sum ( _ ) > _ | select stuid from sportsinfo group by stuid having sum ( hoursperweek ) > 10
### Instruction:

Convert text to sql: What are the student IDs for everybody who worked for more than 10 hours per week on all sports? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ group by _ having sum ( _ ) > _ | select stuid from sportsinfo group by stuid having sum ( hoursperweek ) > 10
### Instruction:

Convert text to sql: What is the first name and last name of the student who have most number of sports? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select student.fname , student.lname from sportsinfo join student on sportsinfo.stuid = student.stuid group by sportsinfo.stuid order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What is the first and last name of the student who played the most sports? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ group by _ order by count ( _ ) desc limit _ | select student.fname , student.lname from sportsinfo join student on sportsinfo.stuid = student.stuid group by sportsinfo.stuid order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Which sport has most number of students on scholarship? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ group by _ order by count ( _ ) desc limit _ | select sportname from sportsinfo where onscholarship = 'Y' group by sportname order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: What is the sport with the most scholarship students? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ group by _ order by count ( _ ) desc limit _ | select sportname from sportsinfo where onscholarship = 'Y' group by sportname order by count ( * ) desc limit 1
### Instruction:

Convert text to sql: Show student ids who don't have any sports. | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ except select _ from _ | select stuid from student except select stuid from sportsinfo
### Instruction:

Convert text to sql: What are the ids of all students who don't play sports? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ except select _ from _ | select stuid from student except select stuid from sportsinfo
### Instruction:

Convert text to sql: Show student ids who are on scholarship and have major 600. | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select stuid from student where major = 600 intersect select stuid from sportsinfo where onscholarship = 'Y'
### Instruction:

Convert text to sql: What are the student ids for those on scholarship in major number 600? | student : stuid , lname , fname , age , sex , major , advisor , city_code | video_games : gameid , gname , gtype | plays_games : stuid , gameid , hours_played | sportsinfo : stuid , sportname , hoursperweek , gamesplayed , onscholarship | plays_games.stuid = student.stuid | plays_games.gameid = video_games.gameid | sportsinfo.stuid = student.stuid | 

### Response:

select _ from _ where _ intersect select _ from _ where _ | select stuid from student where major = 600 intersect select stuid from sportsinfo where onscholarship = 'Y'