db_id
stringlengths
4
31
text
stringlengths
370
4.84k
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find all the distinct district names ordered by city area in descending. | 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 distinct district_name from district order by city_area desc
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the different district names in order of descending 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 distinct district_name from district order by city_area desc
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the list of page size which have more than 3 product listed | 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 max_page_size from product group by max_page_size having count ( * ) > 3
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the maximum page size for everything that has more than 3 products listed? | 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 max_page_size from product group by max_page_size having count ( * ) > 3
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the name and population of district with population between 200000 and 2000000 | 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_name , city_population from district where city_population between 200000 and 2000000
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the district names and city populations for all districts that between 200,000 and 2,000,000 residents? | 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_name , city_population from district where city_population between 200000 and 2000000
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the name all districts with city area greater than 10 or population larger than 100000 | 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_name from district where city_area > 10 or city_population > 100000
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of all districts with a city area greater than 10 or have more than 100000 people living there? | 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_name from district where city_area > 10 or city_population > 100000
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which district has the largest population? | 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_name from district order by city_population desc limit 1
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the name of the district with the most residents? | 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_name from district order by city_population desc limit 1
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which district has the least 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 district_name from district order by city_area asc limit 1
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the name of the district with the smallest 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 district_name from district order by city_area asc limit 1
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the total population of the top 3 districts with the largest 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 order by city_area desc limit 3
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the total number of residents for the districts with the 3 largest areas? | 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 order by city_area desc limit 3
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find all types of store and number of them. | 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 type , count ( * ) from store group by type
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each type of store, how many of them are there? | 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 type , count ( * ) from store group by type
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the names of all stores in Khanewal District. | 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 store.store_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 district.district_name = 'Khanewal District'
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of all the stores located in Khanewal District? | 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 store.store_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 district.district_name = 'Khanewal District'
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find all the stores in the district with the most population. | 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 store.store_name from store join store_district on store.store_id = store_district.store_id where district_id = ( select district_id from district order by city_population desc limit 1 )
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of all the stores in the largest district by population? | 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 store.store_name from store join store_district on store.store_id = store_district.store_id where district_id = ( select district_id from district order by city_population desc limit 1 )
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which city is the headquarter of the store named "Blackville" in? | 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.headquartered_city 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.store_name = 'Blackville'
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What city is the headquarter of the store Blackville? | 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.headquartered_city 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.store_name = 'Blackville'
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the number of stores in each city. | 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.headquartered_city , count ( * ) from store join store_district on store.store_id = store_district.store_id join district on store_district.district_id = district.district_id group by district.headquartered_city
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many stores are headquarted in each city? | 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.headquartered_city , count ( * ) from store join store_district on store.store_id = store_district.store_id join district on store_district.district_id = district.district_id group by district.headquartered_city
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the city with the most number of 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.headquartered_city from store join store_district on store.store_id = store_district.store_id join district on store_district.district_id = district.district_id group by district.headquartered_city order by count ( * ) desc limit 1
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the city with the most number of flagship 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.headquartered_city from store join store_district on store.store_id = store_district.store_id join district on store_district.district_id = district.district_id group by district.headquartered_city order by count ( * ) desc limit 1
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the average pages per minute color? | 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 avg ( pages_per_minute_color ) from product
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the average number of pages per minute color? | 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 avg ( pages_per_minute_color ) from product
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What products are available at store named "Miramichi"? | 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 product.product from product join store_product on product.product_id = store_product.product_id join store on store_product.store_id = store.store_id where store.store_name = 'Miramichi'
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What products are sold at the store named Miramichi? | 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 product.product from product join store_product on product.product_id = store_product.product_id join store on store_product.store_id = store.store_id where store.store_name = 'Miramichi'
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find products with max page size as "A4" and pages per minute color smaller than 5. | 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 product from product where max_page_size = 'A4' and pages_per_minute_color < 5
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the products with the maximum page size A4 that also have a pages per minute color smaller than 5? | 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 product from product where max_page_size = 'A4' and pages_per_minute_color < 5
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find products with max page size as "A4" or pages per minute color smaller than 5. | 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 product from product where max_page_size = 'A4' or pages_per_minute_color < 5
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the products with the maximum page size eqal to A4 or a pages per minute color less than 5? | 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 product from product where max_page_size = 'A4' or pages_per_minute_color < 5
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find all the product whose name contains the word "Scanner". | 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 product from product where product like '%Scanner%'
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are all of the products whose name includes the substring "Scanner"? | 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 product from product where product like '%Scanner%'
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the most prominent max page size among all the products. | 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 max_page_size from product group by max_page_size order by count ( * ) desc limit 1
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the most common maximum page size? | 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 max_page_size from product group by max_page_size order by count ( * ) desc limit 1
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the name of the products that are not using the most frequently-used max page size. | 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 product from product where product != ( select max_page_size from product group by max_page_size order by count ( * ) desc limit 1 )
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of all products that are not the most frequently-used maximum page size? | 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 product from product where product != ( select max_page_size from product group by max_page_size order by count ( * ) desc limit 1 )
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the total population of the districts where the area is bigger than 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 )
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the 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 )
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the names of 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'
store_product
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of 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'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the average 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many players 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the average 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the name 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names and 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the different 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the 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'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the average, 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is 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'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is 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'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the 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%'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Who are the players 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%'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the name, 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'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names and 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'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: List all information 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: List the name of the 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the name of 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the name of 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the different 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Which 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the number of 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: How many 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: For each 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What is the 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the different 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
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the 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'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the different 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'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: Find the name 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'
soccer_2
Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request. ### Instruction: Convert text to sql: What are the names of all the 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'