db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
store_product
select distinct district_name from district order by city_area desc
Question: find all the distinct district names ordered by city area in descending. | Tables: 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, Hea...
find all the distinct district names ordered by city area in descending.
store_product
select distinct district_name from district order by city_area desc
Question: what are the different district names in order of descending city area? | Tables: 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, Head...
what are the different district names in order of descending city area?
store_product
select max_page_size from product group by max_page_size having count(*) > 3
Question: find the list of page size which have more than 3 product listed | Tables: 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, Headquarter...
find the list of page size which have more than 3 product listed
store_product
select max_page_size from product group by max_page_size having count(*) > 3
Question: what is the maximum page size for everything that has more than 3 products listed? | Tables: 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...
what is the maximum page size for everything that has more than 3 products listed?
store_product
select district_name , city_population from district where city_population between 200000 and 2000000
Question: find the name and population of district with population between 200000 and 2000000 | Tables: 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, Distric...
find the name and population of district with population between 200000 and 2000000
store_product
select district_name , city_population from district where city_population between 200000 and 2000000
Question: what are the district names and city populations for all districts that between 200,000 and 2,000,000 residents? | Tables: 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. dis...
what are the district names and city populations for all districts that between 200,000 and 2,000,000 residents?
store_product
select district_name from district where city_area > 10 or city_population > 100000
Question: find the name all districts with city area greater than 10 or population larger than 100000 | Tables: 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,...
find the name all districts with city area greater than 10 or population larger than 100000
store_product
select district_name from district where city_area > 10 or city_population > 100000
Question: what are the names of all districts with a city area greater than 10 or have more than 100000 people living there? | Tables: 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. d...
what are the names of all districts with a city area greater than 10 or have more than 100000 people living there?
store_product
select district_name from district order by city_population desc limit 1
Question: which district has the largest population? | Tables: 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_Populati...
which district has the largest population?
store_product
select district_name from district order by city_population desc limit 1
Question: what is the name of the district with the most residents? | Tables: 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...
what is the name of the district with the most residents?
store_product
select district_name from district order by city_area asc limit 1
Question: which district has the least area? | Tables: 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...
which district has the least area?
store_product
select district_name from district order by city_area asc limit 1
Question: what is the name of the district with the smallest area? | Tables: 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,...
what is the name of the district with the smallest area?
store_product
select sum(city_population) from district order by city_area desc limit 3
Question: find the total population of the top 3 districts with the largest area. | Tables: 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, Head...
find the total population of the top 3 districts with the largest area.
store_product
select sum(city_population) from district order by city_area desc limit 3
Question: what is the total number of residents for the districts with the 3 largest areas? | Tables: 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_...
what is the total number of residents for the districts with the 3 largest areas?
store_product
select type , count(*) from store group by type
Question: find all types of store and number of them. | Tables: 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_Populat...
find all types of store and number of them.
store_product
select type , count(*) from store group by type
Question: for each type of store, how many of them are there? | Tables: 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...
for each type of store, how many of them are there?
store_product
select t1.store_name from store as t1 join store_district as t2 on t1.store_id = t2.store_id join district as t3 on t2.district_id = t3.district_id where t3.district_name = 'khanewal district'
Question: find the names of all stores in khanewal district. | Tables: 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_...
find the names of all stores in khanewal district.
store_product
select t1.store_name from store as t1 join store_district as t2 on t1.store_id = t2.store_id join district as t3 on t2.district_id = t3.district_id where t3.district_name = 'khanewal district'
Question: what are the names of all the stores located in khanewal district? | Tables: 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, Headquart...
what are the names of all the stores located in khanewal district?
store_product
select t1.store_name from store as t1 join store_district as t2 on t1.store_id = t2.store_id where district_id = (select district_id from district order by city_population desc limit 1)
Question: find all the stores in the district with the most population. | Tables: 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_...
find all the stores in the district with the most population.
store_product
select t1.store_name from store as t1 join store_district as t2 on t1.store_id = t2.store_id where district_id = (select district_id from district order by city_population desc limit 1)
Question: what are the names of all the stores in the largest district by population? | Tables: 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, ...
what are the names of all the stores in the largest district by population?
store_product
select t3.headquartered_city from store as t1 join store_district as t2 on t1.store_id = t2.store_id join district as t3 on t2.district_id = t3.district_id where t1.store_name = 'blackville'
Question: which city is the headquarter of the store named 'blackville' in? | Tables: 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, Headquarte...
which city is the headquarter of the store named 'blackville' in?
store_product
select t3.headquartered_city from store as t1 join store_district as t2 on t1.store_id = t2.store_id join district as t3 on t2.district_id = t3.district_id where t1.store_name = 'blackville'
Question: what city is the headquarter of the store blackville? | Tables: 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, Ci...
what city is the headquarter of the store blackville?
store_product
select t3.headquartered_city , count(*) from store as t1 join store_district as t2 on t1.store_id = t2.store_id join district as t3 on t2.district_id = t3.district_id group by t3.headquartered_city
Question: find the number of stores in each city. | Tables: 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,...
find the number of stores in each city.
store_product
select t3.headquartered_city , count(*) from store as t1 join store_district as t2 on t1.store_id = t2.store_id join district as t3 on t2.district_id = t3.district_id group by t3.headquartered_city
Question: how many stores are headquarted in each city? | Tables: 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_Popul...
how many stores are headquarted in each city?
store_product
select t3.headquartered_city from store as t1 join store_district as t2 on t1.store_id = t2.store_id join district as t3 on t2.district_id = t3.district_id group by t3.headquartered_city order by count(*) desc limit 1
Question: find the city with the most number of stores. | Tables: 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_Popul...
find the city with the most number of stores.
store_product
select t3.headquartered_city from store as t1 join store_district as t2 on t1.store_id = t2.store_id join district as t3 on t2.district_id = t3.district_id group by t3.headquartered_city order by count(*) desc limit 1
Question: what is the city with the most number of flagship stores? | Tables: 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...
what is the city with the most number of flagship stores?
store_product
select avg(pages_per_minute_color) from product
Question: what is the average pages per minute color? | Tables: 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_Populat...
what is the average pages per minute color?
store_product
select avg(pages_per_minute_color) from product
Question: what is the average number of pages per minute color? | Tables: 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, Ci...
what is the average number of pages per minute color?
store_product
select t1.product from product as t1 join store_product as t2 on t1.product_id = t2.product_id join store as t3 on t2.store_id = t3.store_id where t3.store_name = 'miramichi'
Question: what products are available at store named 'miramichi'? | Tables: 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, ...
what products are available at store named 'miramichi'?
store_product
select t1.product from product as t1 join store_product as t2 on t1.product_id = t2.product_id join store as t3 on t2.store_id = t3.store_id where t3.store_name = 'miramichi'
Question: what products are sold at the store named miramichi? | Tables: 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, Cit...
what products are sold at the store named miramichi?
store_product
select product from product where max_page_size = 'a4' and pages_per_minute_color < 5
Question: find products with max page size as 'a4' and pages per minute color smaller than 5. | Tables: 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, Distric...
find products with max page size as 'a4' and pages per minute color smaller than 5.
store_product
select product from product where max_page_size = 'a4' and pages_per_minute_color < 5
Question: what are the products with the maximum page size a4 that also have a pages per minute color smaller than 5? | Tables: 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...
what are the products with the maximum page size a4 that also have a pages per minute color smaller than 5?
store_product
select product from product where max_page_size = 'a4' or pages_per_minute_color < 5
Question: find products with max page size as 'a4' or pages per minute color smaller than 5. | Tables: 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...
find products with max page size as 'a4' or pages per minute color smaller than 5.
store_product
select product from product where max_page_size = 'a4' or pages_per_minute_color < 5
Question: what are the products with the maximum page size eqal to a4 or a pages per minute color less than 5? | Tables: 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 -> Dis...
what are the products with the maximum page size eqal to a4 or a pages per minute color less than 5?
store_product
select product from product where product like '%scanner%'
Question: find all the product whose name contains the word 'scanner'. | Tables: 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_C...
find all the product whose name contains the word 'scanner'.
store_product
select product from product where product like '%scanner%'
Question: what are all of the products whose name includes the substring 'scanner'? | Tables: 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, He...
what are all of the products whose name includes the substring 'scanner'?
store_product
select max_page_size from product group by max_page_size order by count(*) desc limit 1
Question: find the most prominent max page size among all the products. | Tables: 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_...
find the most prominent max page size among all the products.
store_product
select max_page_size from product group by max_page_size order by count(*) desc limit 1
Question: what is the most common maximum page size? | Tables: 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_Populati...
what is the most common maximum page size?
store_product
select product from product where product != (select max_page_size from product group by max_page_size order by count(*) desc limit 1)
Question: find the name of the products that are not using the most frequently-used max page size. | Tables: 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, Di...
find the name of the products that are not using the most frequently-used max page size.
store_product
select product from product where product != (select max_page_size from product group by max_page_size order by count(*) desc limit 1)
Question: what are the names of all products that are not the most frequently-used maximum page size? | Tables: 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,...
what are the names of all products that are not the most frequently-used maximum page size?
store_product
select sum(city_population) from district where city_area > (select avg(city_area) from district)
Question: find the total population of the districts where the area is bigger than the average city area. | Tables: 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...
find the total population of the districts where the area is bigger than the average city area.
store_product
select sum(city_population) from district where city_area > (select avg(city_area) from district)
Question: what is the total population for all the districts that have an area larger tahn the average city area? | Tables: 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 -> ...
what is the total population for all the districts that have an area larger tahn the average city area?
store_product
select t3.district_name from store as t1 join store_district as t2 on t1.store_id = t2.store_id join district as t3 on t2.district_id = t3.district_id where t1.type = 'city mall' intersect select t3.district_name from store as t1 join store_district as t2 on t1.store_id = t2.store_id join district as t3 on t2.d...
Question: find the names of districts where have both city mall and village store type stores. | Tables: 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, Distri...
find the names of districts where have both city mall and village store type stores.
store_product
select t3.district_name from store as t1 join store_district as t2 on t1.store_id = t2.store_id join district as t3 on t2.district_id = t3.district_id where t1.type = 'city mall' intersect select t3.district_name from store as t1 join store_district as t2 on t1.store_id = t2.store_id join district as t3 on t2.d...
Question: what are the names of the districts that have both mall and village store style shops? | Tables: 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, Dist...
what are the names of the districts that have both mall and village store style shops?
soccer_2
select sum(enr) from college
Question: what is the total enrollment number of all colleges? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what is the total enrollment number of all colleges?
soccer_2
select sum(enr) from college
Question: how many students are enrolled in college? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many students are enrolled in college?
soccer_2
select avg(enr) from college
Question: what is the average enrollment number? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what is the average enrollment number?
soccer_2
select avg(enr) from college
Question: how many students, on average, does each college have enrolled? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many students, on average, does each college have enrolled?
soccer_2
select count(*) from college
Question: how many colleges in total? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many colleges in total?
soccer_2
select count(*) from college
Question: how many different colleges are there? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many different colleges are there?
soccer_2
select count(*) from player where hs > 1000
Question: how many players have more than 1000 hours of training? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many players have more than 1000 hours of training?
soccer_2
select count(*) from player where hs > 1000
Question: how many different players trained for more than 1000 hours? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many different players trained for more than 1000 hours?
soccer_2
select count(*) from college where enr > 15000
Question: how many colleges has more than 15000 students? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many colleges has more than 15000 students?
soccer_2
select count(*) from college where enr > 15000
Question: what is the number of colleges with a student population greater than 15000? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what is the number of colleges with a student population greater than 15000?
soccer_2
select avg(hs) from player
Question: what is the average training hours of all players? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what is the average training hours of all players?
soccer_2
select avg(hs) from player
Question: how many hours do the players train on average? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many hours do the players train on average?
soccer_2
select pname , hs from player where hs < 1500
Question: find the name and training hours of players whose hours are below 1500. | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
find the name and training hours of players whose hours are below 1500.
soccer_2
select pname , hs from player where hs < 1500
Question: what are the names and number of hours spent training for each player who trains for less than 1500 hours? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the names and number of hours spent training for each player who trains for less than 1500 hours?
soccer_2
select count(distinct cname) from tryout
Question: how many different colleges do attend the tryout test? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many different colleges do attend the tryout test?
soccer_2
select count(distinct cname) from tryout
Question: how many different colleges were represented at tryouts? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many different colleges were represented at tryouts?
soccer_2
select count(distinct ppos) from tryout
Question: what are the unique types of player positions in the tryout? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the unique types of player positions in the tryout?
soccer_2
select count(distinct ppos) from tryout
Question: what are the different types of player positions? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the different types of player positions?
soccer_2
select count(*) from tryout where decision = 'yes'
Question: how many students got accepted after the tryout? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many students got accepted after the tryout?
soccer_2
select count(*) from tryout where decision = 'yes'
Question: how many students received a yes from tryouts? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many students received a yes from tryouts?
soccer_2
select count(*) from tryout where ppos = 'goalie'
Question: how many students whose are playing the role of goalie? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many students whose are playing the role of goalie?
soccer_2
select count(*) from tryout where ppos = 'goalie'
Question: what is the number of students playing as a goalie? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what is the number of students playing as a goalie?
soccer_2
select avg(hs) , max(hs) , min(hs) from player
Question: find the max, average and min training hours of all players. | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
find the max, average and min training hours of all players.
soccer_2
select avg(hs) , max(hs) , min(hs) from player
Question: what is the average, maximum, and minimum for the number of hours spent training? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what is the average, maximum, and minimum for the number of hours spent training?
soccer_2
select avg(enr) from college where state = 'fl'
Question: what is average enrollment of colleges in the state fl? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what is average enrollment of colleges in the state fl?
soccer_2
select avg(enr) from college where state = 'fl'
Question: what is average number of students enrolled in florida colleges? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what is average number of students enrolled in florida colleges?
soccer_2
select pname from player where hs between 500 and 1500
Question: what are the names of players whose training hours is between 500 and 1500? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the names of players whose training hours is between 500 and 1500?
soccer_2
select pname from player where hs between 500 and 1500
Question: what are the names of players who train between 500 and 1500 hours? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the names of players who train between 500 and 1500 hours?
soccer_2
select distinct pname from player where pname like '%a%'
Question: find the players whose names contain letter 'a'. | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
find the players whose names contain letter 'a'.
soccer_2
select distinct pname from player where pname like '%a%'
Question: who are the players that have names containing the letter a? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
who are the players that have names containing the letter a?
soccer_2
select cname , enr from college where enr > 10000 and state = 'la'
Question: find the name, enrollment of the colleges whose size is bigger than 10000 and location is in state la. | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
find the name, enrollment of the colleges whose size is bigger than 10000 and location is in state la.
soccer_2
select cname , enr from college where enr > 10000 and state = 'la'
Question: what are the names and enrollment numbers for colleges that have more than 10000 enrolled and are located in louisiana? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the names and enrollment numbers for colleges that have more than 10000 enrolled and are located in louisiana?
soccer_2
select * from college order by enr
Question: list all information about college sorted by enrollment number in the ascending order. | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
list all information about college sorted by enrollment number in the ascending order.
soccer_2
select * from college order by enr
Question: what information do you have on colleges sorted by increasing enrollment numbers? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what information do you have on colleges sorted by increasing enrollment numbers?
soccer_2
select cname from college where enr > 18000 order by cname
Question: list the name of the colleges whose enrollment is greater 18000 sorted by the college's name. | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
list the name of the colleges whose enrollment is greater 18000 sorted by the college's name.
soccer_2
select cname from college where enr > 18000 order by cname
Question: what is the name of every college in alphabetical order that has more than 18000 students enrolled? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what is the name of every college in alphabetical order that has more than 18000 students enrolled?
soccer_2
select pname from player where ycard = 'yes' order by hs desc
Question: find the name of players whose card is yes in the descending order of training hours. | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
find the name of players whose card is yes in the descending order of training hours.
soccer_2
select pname from player where ycard = 'yes' order by hs desc
Question: what are the name of the players who received a card in descending order of the hours of training? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the name of the players who received a card in descending order of the hours of training?
soccer_2
select distinct cname from tryout order by cname
Question: find the name of different colleges involved in the tryout in alphabetical order. | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
find the name of different colleges involved in the tryout in alphabetical order.
soccer_2
select distinct cname from tryout order by cname
Question: what are the different names of the colleges involved in the tryout in alphabetical order? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the different names of the colleges involved in the tryout in alphabetical order?
soccer_2
select ppos from tryout group by ppos order by count(*) desc limit 1
Question: which position is most popular among players in the tryout? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
which position is most popular among players in the tryout?
soccer_2
select ppos from tryout group by ppos order by count(*) desc limit 1
Question: what was the most popular position at tryouts? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what was the most popular position at tryouts?
soccer_2
select count(*) , cname from tryout group by cname order by count(*) desc
Question: find the number of students who participate in the tryout for each college ordered by descending count. | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
find the number of students who participate in the tryout for each college ordered by descending count.
soccer_2
select count(*) , cname from tryout group by cname order by count(*) desc
Question: how many students participated in tryouts for each college by descennding count? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
how many students participated in tryouts for each college by descennding count?
soccer_2
select min(t2.hs) , t1.ppos from tryout as t1 join player as t2 on t1.pid = t2.pid group by t1.ppos
Question: what is minimum hours of the students playing in different position? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what is minimum hours of the students playing in different position?
soccer_2
select min(t2.hs) , t1.ppos from tryout as t1 join player as t2 on t1.pid = t2.pid group by t1.ppos
Question: for each position, what is the minimum time students spent practicing? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
for each position, what is the minimum time students spent practicing?
soccer_2
select cname from college order by enr desc limit 3
Question: what are the names of schools with the top 3 largest size? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the names of schools with the top 3 largest size?
soccer_2
select cname from college order by enr desc limit 3
Question: what are the names of the schools with the top 3 largest class sizes? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the names of the schools with the top 3 largest class sizes?
soccer_2
select cname , state , min(enr) from college group by state
Question: what is the name of school that has the smallest enrollment in each state? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what is the name of school that has the smallest enrollment in each state?
soccer_2
select cname , state , min(enr) from college group by state
Question: what is the name of the school with smallest enrollment size per state? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what is the name of the school with smallest enrollment size per state?
soccer_2
select distinct state from college as t1 join tryout as t2 on t1.cname = t2.cname
Question: find the states where have some college students in tryout. | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
find the states where have some college students in tryout.
soccer_2
select distinct state from college as t1 join tryout as t2 on t1.cname = t2.cname
Question: what are the different states that have students trying out? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the different states that have students trying out?
soccer_2
select distinct t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = 'yes'
Question: find the states where have some college students in tryout and their decisions are yes. | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
find the states where have some college students in tryout and their decisions are yes.
soccer_2
select distinct t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = 'yes'
Question: what are the different states that had students successfully try out? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the different states that had students successfully try out?
soccer_2
select t1.pname , t2.cname from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = 'yes'
Question: find the name and college of students whose decisions are yes in the tryout. | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
find the name and college of students whose decisions are yes in the tryout.
soccer_2
select t1.pname , t2.cname from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = 'yes'
Question: what are the names of all the players who received a yes during tryouts, and also what are the names of their colleges? | Tables: College -> cName, state, enr. Player -> pID, pName, yCard, HS. Tryout -> pID, cName, pPos, decision. | Joins: Tryout.cName = College.cName, Tryout.pID = Player.pID,
what are the names of all the players who received a yes during tryouts, and also what are the names of their colleges?