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

Convert text to sql: What is the total population for all the districts that have an area larger tahn the average city area? | product : product_id , product , dimensions , dpi , pages_per_minute_color , max_page_size , interface | store : store_id , store_name , type , area_size , number_of_product_category , ranking | district : district_id , district_name , headquartered_city , city_population , city_area | store_product : store_id , product_id | store_district : store_id , district_id | store_product.store_id = store.store_id | store_district.district_id = district.district_id | store_district.store_id = store.store_id | 

### Response:

select sum ( city_population ) from district where city_area > ( select avg ( city_area ) from district )

### Instruction:

Convert text to sql: Find the names of districts where have both city mall and village store type stores. | product : product_id , product , dimensions , dpi , pages_per_minute_color , max_page_size , interface | store : store_id , store_name , type , area_size , number_of_product_category , ranking | district : district_id , district_name , headquartered_city , city_population , city_area | store_product : store_id , product_id | store_district : store_id , district_id | store_product.store_id = store.store_id | store_district.district_id = district.district_id | store_district.store_id = store.store_id | 

### Response:

select district.district_name from store join store_district on store.store_id = store_district.store_id join district on store_district.district_id = district.district_id where store.type = 'City Mall' intersect select district.district_name from store join store_district on store.store_id = store_district.store_id join district on store_district.district_id = district.district_id where store.type = 'Village Store'

### Instruction:

Convert text to sql: What are the names of the districts that have both mall and village store style shops? | product : product_id , product , dimensions , dpi , pages_per_minute_color , max_page_size , interface | store : store_id , store_name , type , area_size , number_of_product_category , ranking | district : district_id , district_name , headquartered_city , city_population , city_area | store_product : store_id , product_id | store_district : store_id , district_id | store_product.store_id = store.store_id | store_district.district_id = district.district_id | store_district.store_id = store.store_id | 

### Response:

select district.district_name from store join store_district on store.store_id = store_district.store_id join district on store_district.district_id = district.district_id where store.type = 'City Mall' intersect select district.district_name from store join store_district on store.store_id = store_district.store_id join district on store_district.district_id = district.district_id where store.type = 'Village Store'
### Instruction:

Convert text to sql: What is the total enrollment number of all colleges? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select sum ( enr ) from college

### Instruction:

Convert text to sql: How many students are enrolled in college? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select sum ( enr ) from college

### Instruction:

Convert text to sql: What is the average enrollment number? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select avg ( enr ) from college

### Instruction:

Convert text to sql: How many students, on average, does each college have enrolled? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select avg ( enr ) from college

### Instruction:

Convert text to sql: How many colleges in total? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( * ) from college

### Instruction:

Convert text to sql: How many different colleges are there? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( * ) from college

### Instruction:

Convert text to sql: How many players have more than 1000 hours of training? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( * ) from player where hs > 1000

### Instruction:

Convert text to sql: How many different players trained for more than 1000 hours? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( * ) from player where hs > 1000

### Instruction:

Convert text to sql: How many colleges has more than 15000 students? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( * ) from college where enr > 15000

### Instruction:

Convert text to sql: What is the number of colleges with a student population greater than 15000? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( * ) from college where enr > 15000
### Instruction:

Convert text to sql: What is the average training hours of all players? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select avg ( hs ) from player

### Instruction:

Convert text to sql: How many hours do the players train on average? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select avg ( hs ) from player

### Instruction:

Convert text to sql: Find the name and training hours of players whose hours are below 1500. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select pname , hs from player where hs < 1500

### Instruction:

Convert text to sql: What are the names and number of hours spent training for each player who trains for less than 1500 hours? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select pname , hs from player where hs < 1500

### Instruction:

Convert text to sql: How many different colleges do attend the tryout test? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( distinct cname ) from tryout

### Instruction:

Convert text to sql: How many different colleges were represented at tryouts? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( distinct cname ) from tryout

### Instruction:

Convert text to sql: What are the unique types of player positions in the tryout? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( distinct ppos ) from tryout

### Instruction:

Convert text to sql: What are the different types of player positions? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( distinct ppos ) from tryout

### Instruction:

Convert text to sql: How many students got accepted after the tryout? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( * ) from tryout where decision = 'yes'
### Instruction:

Convert text to sql: How many students received a yes from tryouts? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( * ) from tryout where decision = 'yes'

### Instruction:

Convert text to sql: How many students whose are playing the role of goalie? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( * ) from tryout where ppos = 'goalie'

### Instruction:

Convert text to sql: What is the number of students playing as a goalie? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( * ) from tryout where ppos = 'goalie'

### Instruction:

Convert text to sql: Find the max, average and min training hours of all players. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select avg ( hs ) , max ( hs ) , min ( hs ) from player

### Instruction:

Convert text to sql: What is the average, maximum, and minimum for the number of hours spent training? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select avg ( hs ) , max ( hs ) , min ( hs ) from player

### Instruction:

Convert text to sql: What is average enrollment of colleges in the state FL? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select avg ( enr ) from college where state = 'FL'

### Instruction:

Convert text to sql: What is average number of students enrolled in Florida colleges? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select avg ( enr ) from college where state = 'FL'

### Instruction:

Convert text to sql: What are the names of players whose training hours is between 500 and 1500? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select pname from player where hs between 500 and 1500

### Instruction:

Convert text to sql: What are the names of players who train between 500 and 1500 hours? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select pname from player where hs between 500 and 1500
### Instruction:

Convert text to sql: Find the players whose names contain letter 'a'. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select distinct pname from player where pname like '%a%'

### Instruction:

Convert text to sql: Who are the players that have names containing the letter a? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select distinct pname from player where pname like '%a%'

### Instruction:

Convert text to sql: Find the name, enrollment of the colleges whose size is bigger than 10000 and location is in state LA. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select cname , enr from college where enr > 10000 and state = 'LA'

### Instruction:

Convert text to sql: What are the names and enrollment numbers for colleges that have more than 10000 enrolled and are located in Louisiana? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select cname , enr from college where enr > 10000 and state = 'LA'

### Instruction:

Convert text to sql: List all information about college sorted by enrollment number in the ascending order. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select * from college order by enr asc

### Instruction:

Convert text to sql: What information do you have on colleges sorted by increasing enrollment numbers? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select * from college order by enr asc

### Instruction:

Convert text to sql: List the name of the colleges whose enrollment is greater 18000 sorted by the college's name. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select cname from college where enr > 18000 order by cname asc

### Instruction:

Convert text to sql: What is the name of every college in alphabetical order that has more than 18000 students enrolled? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select cname from college where enr > 18000 order by cname asc
### Instruction:

Convert text to sql: Find the name of players whose card is yes in the descending order of training hours. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select pname from player where ycard = 'yes' order by hs desc

### Instruction:

Convert text to sql: What are the name of the players who received a card in descending order of the hours of training? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select pname from player where ycard = 'yes' order by hs desc

### Instruction:

Convert text to sql: Find the name of different colleges involved in the tryout in alphabetical order. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select distinct cname from tryout order by cname asc

### Instruction:

Convert text to sql: What are the different names of the colleges involved in the tryout in alphabetical order? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select distinct cname from tryout order by cname asc

### Instruction:

Convert text to sql: Which position is most popular among players in the tryout? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select ppos from tryout group by ppos order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: What was the most popular position at tryouts? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select ppos from tryout group by ppos order by count ( * ) desc limit 1

### Instruction:

Convert text to sql: Find the number of students who participate in the tryout for each college ordered by descending count. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( * ) , cname from tryout group by cname order by count ( * ) desc

### Instruction:

Convert text to sql: How many students participated in tryouts for each college by descennding count? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select count ( * ) , cname from tryout group by cname order by count ( * ) desc
### Instruction:

Convert text to sql: What is minimum hours of the students playing in different position? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select min ( player.hs ) , tryout.ppos from tryout join player on tryout.pid = player.pid group by tryout.ppos

### Instruction:

Convert text to sql: For each position, what is the minimum time students spent practicing? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select min ( player.hs ) , tryout.ppos from tryout join player on tryout.pid = player.pid group by tryout.ppos

### Instruction:

Convert text to sql: What are the names of schools with the top 3 largest size? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select cname from college order by enr desc limit 3

### Instruction:

Convert text to sql: What are the names of the schools with the top 3 largest class sizes? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select cname from college order by enr desc limit 3

### Instruction:

Convert text to sql: What is the name of school that has the smallest enrollment in each state? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select cname , state , min ( enr ) from college group by state

### Instruction:

Convert text to sql: What is the name of the school with smallest enrollment size per state? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select cname , state , min ( enr ) from college group by state

### Instruction:

Convert text to sql: Find the states where have some college students in tryout. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select distinct state from college join tryout on college.cname = tryout.cname

### Instruction:

Convert text to sql: What are the different states that have students trying out? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select distinct state from college join tryout on college.cname = tryout.cname
### Instruction:

Convert text to sql: Find the states where have some college students in tryout and their decisions are yes. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select distinct college.state from college join tryout on college.cname = tryout.cname where tryout.decision = 'yes'

### Instruction:

Convert text to sql: What are the different states that had students successfully try out? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select distinct college.state from college join tryout on college.cname = tryout.cname where tryout.decision = 'yes'

### Instruction:

Convert text to sql: Find the name and college of students whose decisions are yes in the tryout. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select player.pname , tryout.cname from player join tryout on player.pid = tryout.pid where tryout.decision = 'yes'

### Instruction:

Convert text to sql: What are the names of all the players who received a yes during tryouts, and also what are the names of their colleges? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select player.pname , tryout.cname from player join tryout on player.pid = tryout.pid where tryout.decision = 'yes'

### Instruction:

Convert text to sql: Find the name of all students who were in the tryout sorted in alphabetic order. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select player.pname from player join tryout on player.pid = tryout.pid order by player.pname asc

### Instruction:

Convert text to sql: What are the names of all students who tried out in alphabetical order? | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select player.pname from player join tryout on player.pid = tryout.pid order by player.pname asc

### Instruction:

Convert text to sql: Find the name and hours of the students whose tryout decision is yes. | college : cname , state , enr | player : pid , pname , ycard , hs | tryout : pid , cname , ppos , decision | tryout.cname = college.cname | tryout.pid = player.pid | 

### Response:

select player.pname , player.hs from player join tryout on player.pid = tryout.pid where tryout.decision = 'yes'