input stringlengths 191 7.13k | output stringlengths 19 578 |
|---|---|
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT DISTINCT District_name FROM district ORDER BY city_area DESC; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT DISTINCT District_name FROM district ORDER BY city_area DESC; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*) > 3; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*) > 3; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT District_name , City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT District_name , City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT sum(city_population) FROM district ORDER BY city_area DESC LIMIT 3; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT sum(city_population) FROM district ORDER BY city_area DESC LIMIT 3; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT TYPE , count(*) FROM store GROUP BY TYPE; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT TYPE , count(*) FROM store GROUP BY TYPE; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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"; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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"; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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); |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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); |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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"; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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"; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT avg(pages_per_minute_color) FROM product; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT avg(pages_per_minute_color) FROM product; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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"; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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"; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT product FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT product FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT product FROM product WHERE max_page_size = "A4" OR pages_per_minute_color < 5; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT product FROM product WHERE max_page_size = "A4" OR pages_per_minute_color < 5; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT product FROM product WHERE product LIKE "%Scanner%"; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT product FROM product WHERE product LIKE "%Scanner%"; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1; |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT product FROM product WHERE product != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1); |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT product FROM product WHERE product != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1); |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district); |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district); |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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... |
Tables: product, store, district, store_product, store_district
Columns: product.product_id, product.product, product.dimensions, product.dpi, product.pages_per_minute_color, product.max_page_size, product.interface, store.Store_ID, store.Store_Name, store.Type, store.Area_size, store.Number_of_product_category, store.... | 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... |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What is the total enrollment number of all colleges? [/INST] | SELECT sum(enr) FROM College; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many students are enrolled in college? [/INST] | SELECT sum(enr) FROM College; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What is the average enrollment number? [/INST] | SELECT avg(enr) FROM College; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many students, on average, does each college have enrolled? [/INST] | SELECT avg(enr) FROM College; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many colleges in total? [/INST] | SELECT count(*) FROM College; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many different colleges are there? [/INST] | SELECT count(*) FROM College; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many players have more than 1000 hours of training? [/INST] | SELECT count(*) FROM Player WHERE HS > 1000; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many different players trained for more than 1000 hours? [/INST] | SELECT count(*) FROM Player WHERE HS > 1000; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many colleges has more than 15000 students? [/INST] | SELECT count(*) FROM College WHERE enr > 15000; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What is the number of colleges with a student population greater than 15000? [/INST] | SELECT count(*) FROM College WHERE enr > 15000; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What is the average training hours of all players? [/INST] | SELECT avg(HS) FROM Player; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many hours do the players train on average? [/INST] | SELECT avg(HS) FROM Player; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: Find the name and training hours of players whose hours are below 1500. [/INST] | SELECT pName , HS FROM Player WHERE HS < 1500; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the names and number of hours spent training for each player who trains for less than 1500 hours? [/INST] | SELECT pName , HS FROM Player WHERE HS < 1500; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many different colleges do attend the tryout test? [/INST] | SELECT count(DISTINCT cName) FROM tryout; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many different colleges were represented at tryouts? [/INST] | SELECT count(DISTINCT cName) FROM tryout; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the unique types of player positions in the tryout? [/INST] | SELECT count(DISTINCT pPos) FROM tryout; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the different types of player positions? [/INST] | SELECT count(DISTINCT pPos) FROM tryout; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many students got accepted after the tryout? [/INST] | SELECT count(*) FROM tryout WHERE decision = 'yes'; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many students received a yes from tryouts? [/INST] | SELECT count(*) FROM tryout WHERE decision = 'yes'; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many students whose are playing the role of goalie? [/INST] | SELECT count(*) FROM tryout WHERE pPos = 'goalie'; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What is the number of students playing as a goalie? [/INST] | SELECT count(*) FROM tryout WHERE pPos = 'goalie'; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: Find the max, average and min training hours of all players. [/INST] | SELECT avg(HS) , max(HS) , min(HS) FROM Player; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What is the average, maximum, and minimum for the number of hours spent training? [/INST] | SELECT avg(HS) , max(HS) , min(HS) FROM Player; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What is average enrollment of colleges in the state FL? [/INST] | SELECT avg(enr) FROM College WHERE state = 'FL'; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What is average number of students enrolled in Florida colleges? [/INST] | SELECT avg(enr) FROM College WHERE state = 'FL'; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the names of players whose training hours is between 500 and 1500? [/INST] | SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the names of players who train between 500 and 1500 hours? [/INST] | SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: Find the players whose names contain letter 'a'. [/INST] | SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%'; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: Who are the players that have names containing the letter a? [/INST] | SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%'; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: Find the name, enrollment of the colleges whose size is bigger than 10000 and location is in state LA. [/INST] | SELECT cName , enr FROM College WHERE enr > 10000 AND state = "LA"; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the names and enrollment numbers for colleges that have more than 10000 enrolled and are located in Louisiana? ... | SELECT cName , enr FROM College WHERE enr > 10000 AND state = "LA"; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: List all information about college sorted by enrollment number in the ascending order. [/INST] | SELECT * FROM College ORDER BY enr; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What information do you have on colleges sorted by increasing enrollment numbers? [/INST] | SELECT * FROM College ORDER BY enr; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: List the name of the colleges whose enrollment is greater 18000 sorted by the college's name. [/INST] | SELECT cName FROM College WHERE enr > 18000 ORDER BY cName; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What is the name of every college in alphabetical order that has more than 18000 students enrolled? [/INST] | SELECT cName FROM College WHERE enr > 18000 ORDER BY cName; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: Find the name of players whose card is yes in the descending order of training hours. [/INST] | SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the name of the players who received a card in descending order of the hours of training? [/INST] | SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: Find the name of different colleges involved in the tryout in alphabetical order. [/INST] | SELECT DISTINCT cName FROM tryout ORDER BY cName; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the different names of the colleges involved in the tryout in alphabetical order? [/INST] | SELECT DISTINCT cName FROM tryout ORDER BY cName; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: Which position is most popular among players in the tryout? [/INST] | SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What was the most popular position at tryouts? [/INST] | SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: Find the number of students who participate in the tryout for each college ordered by descending count. [/INST] | SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*) DESC; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: How many students participated in tryouts for each college by descennding count? [/INST] | SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*) DESC; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What is minimum hours of the students playing in different position? [/INST] | SELECT min(T2.HS) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: For each position, what is the minimum time students spent practicing? [/INST] | SELECT min(T2.HS) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the names of schools with the top 3 largest size? [/INST] | SELECT cName FROM college ORDER BY enr DESC LIMIT 3; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the names of the schools with the top 3 largest class sizes? [/INST] | SELECT cName FROM college ORDER BY enr DESC LIMIT 3; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What is the name of school that has the smallest enrollment in each state? [/INST] | SELECT cName , state , min(enr) FROM college GROUP BY state; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What is the name of the school with smallest enrollment size per state? [/INST] | SELECT cName , state , min(enr) FROM college GROUP BY state; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: Find the states where have some college students in tryout. [/INST] | SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the different states that have students trying out? [/INST] | SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: Find the states where have some college students in tryout and their decisions are yes. [/INST] | SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the different states that had students successfully try out? [/INST] | SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: Find the name and college of students whose decisions are yes in the tryout. [/INST] | SELECT T1.pName , T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'; |
Tables: College, Player, Tryout
Columns: College.cName, College.state, College.enr, Player.pID, Player.pName, Player.yCard, Player.HS, Tryout.pID, Tryout.cName, Tryout.pPos, Tryout.decision
Question: What are the names of all the players who received a yes during tryouts, and also what are the names of their colleges? ... | SELECT T1.pName , T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.