chat_prompt
stringlengths
438
1.53k
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"country\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: How many times is a score for stolen ends recorded for France?" }, { "role": "assistant", "content": "SELECT COUNT(\"stolen_ends\") FROM \"round_robin\" WHERE \"country\"='France';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"country\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" real\n);\n\nQuestion: How many ends were lost by the country whose points for (PF) was 87?" }, { "role": "assistant", "content": "SELECT MAX(\"ends_lost\") FROM \"round_robin\" WHERE \"pf\"=87;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1_ethnic_russians\" (\n \"children_women_over_15\" real,\n \"oblast_age_of_women\" text,\n \"15_to_17\" real,\n \"18_to_19\" real,\n \"20_to_24\" real,\n \"25_to_29\" real,\n \"30_to_34\" real,\n \"35_to_39\" real,\n \"40_to_44\" real,\n \"45_to_49\" real,\n \"50_to_54\" real,\n \"55_to_59\" real,\n \"60_to_64\" real,\n \"65_to_69\" real,\n \"70\" real\n);\n\nQuestion: What is the 25 to 29 maximum if 30 to 34 is 1357?" }, { "role": "assistant", "content": "SELECT MIN(\"25_to_29\") FROM \"1_ethnic_russians\" WHERE \"30_to_34\"=1357;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"1_ethnic_russians\" (\n \"children_women_over_15\" real,\n \"oblast_age_of_women\" text,\n \"15_to_17\" real,\n \"18_to_19\" real,\n \"20_to_24\" real,\n \"25_to_29\" real,\n \"30_to_34\" real,\n \"35_to_39\" real,\n \"40_to_44\" real,\n \"45_to_49\" real,\n \"50_to_54\" real,\n \"55_to_59\" real,\n \"60_to_64\" real,\n \"65_to_69\" real,\n \"70\" real\n);\n\nQuestion: If 70+ is 2554, what is the 25 to 29 amount?" }, { "role": "assistant", "content": "SELECT \"25_to_29\" FROM \"1_ethnic_russians\" WHERE \"70\"=2554;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"executive_committee\" (\n \"season\" text,\n \"president\" text,\n \"general_sec\" text,\n \"treasurer\" text,\n \"fixtures_sec\" text,\n \"social_sec_bradford\" text,\n \"social_sec_leeds\" text,\n \"media_officer\" text\n);\n\nQuestion: How many seasons was Dave Reid treasurer?" }, { "role": "assistant", "content": "SELECT COUNT(\"season\") FROM \"executive_committee\" WHERE \"treasurer\"='Dave Reid';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"executive_committee\" (\n \"season\" text,\n \"president\" text,\n \"general_sec\" text,\n \"treasurer\" text,\n \"fixtures_sec\" text,\n \"social_sec_bradford\" text,\n \"social_sec_leeds\" text,\n \"media_officer\" text\n);\n\nQuestion: When was Jonny Leadbeater President?" }, { "role": "assistant", "content": "SELECT \"season\" FROM \"executive_committee\" WHERE \"president\"='Jonny Leadbeater';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"locale\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" text\n);\n\nQuestion: Who was the skip with 14 stolen ends?" }, { "role": "assistant", "content": "SELECT \"skip\" FROM \"round_robin\" WHERE \"stolen_ends\"=14;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"locale\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" text\n);\n\nQuestion: What is the fewest number of losses?" }, { "role": "assistant", "content": "SELECT MIN(\"l\") FROM \"round_robin\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"locale\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" text\n);\n\nQuestion: What are the shot percentages for teams that played in switzerland?" }, { "role": "assistant", "content": "SELECT \"shot_pct\" FROM \"round_robin\" WHERE \"locale\"='Switzerland';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_robin\" (\n \"locale\" text,\n \"skip\" text,\n \"w\" real,\n \"l\" real,\n \"pf\" real,\n \"pa\" real,\n \"ends_won\" real,\n \"ends_lost\" real,\n \"blank_ends\" real,\n \"stolen_ends\" real,\n \"shot_pct\" text\n);\n\nQuestion: What is the lowest number of losses for teams that lost 52 ends?" }, { "role": "assistant", "content": "SELECT MIN(\"l\") FROM \"round_robin\" WHERE \"ends_lost\"=52;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2_ukrainians\" (\n \"c_w_15\" real,\n \"oblast_age\" text,\n \"15_to_17\" real,\n \"18_to_19\" text,\n \"20_to_24\" real,\n \"25_to_29\" real,\n \"30_to_34\" real,\n \"35_to_39\" real,\n \"40_to_44\" real,\n \"45_to_49\" real,\n \"50_to_54\" real,\n \"55_to_59\" real,\n \"60_to_64\" real,\n \"65_to_69\" real,\n \"70\" real\n);\n\nQuestion: When 1509 is the c/w 15+ how many results of 15 to 17 are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"15_to_17\") FROM \"2_ukrainians\" WHERE \"c_w_15\"=1509;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2_ukrainians\" (\n \"c_w_15\" real,\n \"oblast_age\" text,\n \"15_to_17\" real,\n \"18_to_19\" text,\n \"20_to_24\" real,\n \"25_to_29\" real,\n \"30_to_34\" real,\n \"35_to_39\" real,\n \"40_to_44\" real,\n \"45_to_49\" real,\n \"50_to_54\" real,\n \"55_to_59\" real,\n \"60_to_64\" real,\n \"65_to_69\" real,\n \"70\" real\n);\n\nQuestion: When 2275 is 70+ how many results of 40 to 44 are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"40_to_44\") FROM \"2_ukrainians\" WHERE \"70\"=2275;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2_ukrainians\" (\n \"c_w_15\" real,\n \"oblast_age\" text,\n \"15_to_17\" real,\n \"18_to_19\" text,\n \"20_to_24\" real,\n \"25_to_29\" real,\n \"30_to_34\" real,\n \"35_to_39\" real,\n \"40_to_44\" real,\n \"45_to_49\" real,\n \"50_to_54\" real,\n \"55_to_59\" real,\n \"60_to_64\" real,\n \"65_to_69\" real,\n \"70\" real\n);\n\nQuestion: When pskov is oblast\\age what is the result of 18 to 19?" }, { "role": "assistant", "content": "SELECT \"18_to_19\" FROM \"2_ukrainians\" WHERE \"oblast_age\"='Pskov';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2_ukrainians\" (\n \"c_w_15\" real,\n \"oblast_age\" text,\n \"15_to_17\" real,\n \"18_to_19\" text,\n \"20_to_24\" real,\n \"25_to_29\" real,\n \"30_to_34\" real,\n \"35_to_39\" real,\n \"40_to_44\" real,\n \"45_to_49\" real,\n \"50_to_54\" real,\n \"55_to_59\" real,\n \"60_to_64\" real,\n \"65_to_69\" real,\n \"70\" real\n);\n\nQuestion: When 2073 is 65 to 69 how many results of 25 to 29 are there?" }, { "role": "assistant", "content": "SELECT COUNT(\"25_to_29\") FROM \"2_ukrainians\" WHERE \"65_to_69\"=2073;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2_ukrainians\" (\n \"c_w_15\" real,\n \"oblast_age\" text,\n \"15_to_17\" real,\n \"18_to_19\" text,\n \"20_to_24\" real,\n \"25_to_29\" real,\n \"30_to_34\" real,\n \"35_to_39\" real,\n \"40_to_44\" real,\n \"45_to_49\" real,\n \"50_to_54\" real,\n \"55_to_59\" real,\n \"60_to_64\" real,\n \"65_to_69\" real,\n \"70\" real\n);\n\nQuestion: When 2054 is the result of 50 to 54 what is the oblast\\age?" }, { "role": "assistant", "content": "SELECT \"oblast_age\" FROM \"2_ukrainians\" WHERE \"50_to_54\"=2054;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"2_ukrainians\" (\n \"c_w_15\" real,\n \"oblast_age\" text,\n \"15_to_17\" real,\n \"18_to_19\" text,\n \"20_to_24\" real,\n \"25_to_29\" real,\n \"30_to_34\" real,\n \"35_to_39\" real,\n \"40_to_44\" real,\n \"45_to_49\" real,\n \"50_to_54\" real,\n \"55_to_59\" real,\n \"60_to_64\" real,\n \"65_to_69\" real,\n \"70\" real\n);\n\nQuestion: When voronezh is the oblast\\age what is the lowest result of 65 to 69?" }, { "role": "assistant", "content": "SELECT MIN(\"65_to_69\") FROM \"2_ukrainians\" WHERE \"oblast_age\"='Voronezh';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"4_tatars\" (\n \"c_w_15\" real,\n \"oblast_age\" text,\n \"15_to_17\" real,\n \"18_to_19\" real,\n \"20_to_24\" real,\n \"25_to_29\" real,\n \"30_to_34\" real,\n \"35_to_39\" real,\n \"40_to_44\" real,\n \"45_to_49\" real,\n \"50_to_54\" real,\n \"55_to_59\" real,\n \"60_to_64\" real,\n \"65_to_69\" real,\n \"70\" real\n);\n\nQuestion: what is the number for 65-69 where 50-54 is 1571?" }, { "role": "assistant", "content": "SELECT \"65_to_69\" FROM \"4_tatars\" WHERE \"50_to_54\"=1571;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"4_tatars\" (\n \"c_w_15\" real,\n \"oblast_age\" text,\n \"15_to_17\" real,\n \"18_to_19\" real,\n \"20_to_24\" real,\n \"25_to_29\" real,\n \"30_to_34\" real,\n \"35_to_39\" real,\n \"40_to_44\" real,\n \"45_to_49\" real,\n \"50_to_54\" real,\n \"55_to_59\" real,\n \"60_to_64\" real,\n \"65_to_69\" real,\n \"70\" real\n);\n\nQuestion: what is the minimum of 60 -64?" }, { "role": "assistant", "content": "SELECT MIN(\"60_to_64\") FROM \"4_tatars\";" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"4_tatars\" (\n \"c_w_15\" real,\n \"oblast_age\" text,\n \"15_to_17\" real,\n \"18_to_19\" real,\n \"20_to_24\" real,\n \"25_to_29\" real,\n \"30_to_34\" real,\n \"35_to_39\" real,\n \"40_to_44\" real,\n \"45_to_49\" real,\n \"50_to_54\" real,\n \"55_to_59\" real,\n \"60_to_64\" real,\n \"65_to_69\" real,\n \"70\" real\n);\n\nQuestion: what is the maximum 18 to 19 and 30-34 is 1203?" }, { "role": "assistant", "content": "SELECT MAX(\"18_to_19\") FROM \"4_tatars\" WHERE \"30_to_34\"=1203;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"4_tatars\" (\n \"c_w_15\" real,\n \"oblast_age\" text,\n \"15_to_17\" real,\n \"18_to_19\" real,\n \"20_to_24\" real,\n \"25_to_29\" real,\n \"30_to_34\" real,\n \"35_to_39\" real,\n \"40_to_44\" real,\n \"45_to_49\" real,\n \"50_to_54\" real,\n \"55_to_59\" real,\n \"60_to_64\" real,\n \"65_to_69\" real,\n \"70\" real\n);\n\nQuestion: what is the maximum 65-69 and 35-39 is 1606?" }, { "role": "assistant", "content": "SELECT MAX(\"65_to_69\") FROM \"4_tatars\" WHERE \"35_to_39\"=1606;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"china_prc\" (\n \"city\" text,\n \"chinese\" text,\n \"pinyin\" text,\n \"province\" text,\n \"urban_population_2010\" real,\n \"administrative_population_2010\" real\n);\n\nQuestion: What province has the Chinese translation \u91cd\u5e86?" }, { "role": "assistant", "content": "SELECT COUNT(\"province\") FROM \"china_prc\" WHERE \"chinese\"='\u91cd\u5e86';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"china_prc\" (\n \"city\" text,\n \"chinese\" text,\n \"pinyin\" text,\n \"province\" text,\n \"urban_population_2010\" real,\n \"administrative_population_2010\" real\n);\n\nQuestion: What is the total administrative population of Shanghai?" }, { "role": "assistant", "content": "SELECT COUNT(\"administrative_population_2010\") FROM \"china_prc\" WHERE \"city\"='Shanghai';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"china_prc\" (\n \"city\" text,\n \"chinese\" text,\n \"pinyin\" text,\n \"province\" text,\n \"urban_population_2010\" real,\n \"administrative_population_2010\" real\n);\n\nQuestion: What is the maximum administrative population of the city with Chinese translation \u6606\u660e?" }, { "role": "assistant", "content": "SELECT MAX(\"administrative_population_2010\") FROM \"china_prc\" WHERE \"chinese\"='\u6606\u660e';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"china_prc\" (\n \"city\" text,\n \"chinese\" text,\n \"pinyin\" text,\n \"province\" text,\n \"urban_population_2010\" real,\n \"administrative_population_2010\" real\n);\n\nQuestion: What is the total urban population of the city with the pinyin translation ch\u00e1ngch\u016bn?" }, { "role": "assistant", "content": "SELECT COUNT(\"urban_population_2010\") FROM \"china_prc\" WHERE \"pinyin\"='Ch\u00e1ngch\u016bn';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What player was on the Grizzlies from 2009-2013?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"a\" WHERE \"years_for_grizzlies\"='2009-2013';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What nationality is the player who went to school at South Florida?" }, { "role": "assistant", "content": "SELECT \"nationality\" FROM \"a\" WHERE \"school_club_team\"='South Florida';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What position is the player who was on the Grizzlies from 1995-1996?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"a\" WHERE \"years_for_grizzlies\"='1995-1996';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"a\" (\n \"player\" text,\n \"no\" text,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: How may players played for the Grizzlies from 2000-2002?" }, { "role": "assistant", "content": "SELECT COUNT(\"no\") FROM \"a\" WHERE \"years_for_grizzlies\"='2000-2002';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16493961_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Name the miles for june 7" }, { "role": "assistant", "content": "SELECT \"miles_km\" FROM \"table1_16493961_1\" WHERE \"date\"='June 7';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16493961_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Name the driver for race time being 2:34:21" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"table1_16493961_1\" WHERE \"race_time\"='2:34:21';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16493961_1\" (\n \"year\" real,\n \"date\" text,\n \"driver\" text,\n \"team\" text,\n \"manufacturer\" text,\n \"laps\" text,\n \"miles_km\" text,\n \"race_time\" text,\n \"average_speed_mph\" text,\n \"report\" text\n);\n\nQuestion: Name the driver for june 23 and team of penske racing" }, { "role": "assistant", "content": "SELECT \"driver\" FROM \"table1_16493961_1\" WHERE \"date\"='June 23' AND \"team\"='Penske Racing';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3_1998_99\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: Who was the director for the episode in season #50?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"season_3_1998_99\" WHERE \"series_num\"=50;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3_1998_99\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: How many directors were there in total for the episode with series #62?" }, { "role": "assistant", "content": "SELECT COUNT(\"directed_by\") FROM \"season_3_1998_99\" WHERE \"series_num\"=62;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"season_3_1998_99\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text\n);\n\nQuestion: What season was the episode titled \"Harlequin\" in?" }, { "role": "assistant", "content": "SELECT MAX(\"season_num\") FROM \"season_3_1998_99\" WHERE \"title\"='\\\"Harlequin\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"j\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What are the nationalities of players who attended duke?" }, { "role": "assistant", "content": "SELECT COUNT(\"nationality\") FROM \"j\" WHERE \"school_club_team\"='Duke';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"j\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many nationalities does athlete Casey Jacobsen have?" }, { "role": "assistant", "content": "SELECT COUNT(\"nationality\") FROM \"j\" WHERE \"player\"='Casey Jacobsen';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"j\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: Who are the players that have attended Stanford?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"j\" WHERE \"school_club_team\"='Stanford';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"j\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many athletes play the position of guard?" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"j\" WHERE \"position\"='Guard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"j\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: During what years did athletes who attended school in Minnesota play for the Grizzlies?" }, { "role": "assistant", "content": "SELECT \"years_for_grizzlies\" FROM \"j\" WHERE \"school_club_team\"='Minnesota';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"b\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: How many players went to depaul?" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"b\" WHERE \"school_club_team\"='DePaul';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"c\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What school did the player who was with the grizzles in 2011 attend?" }, { "role": "assistant", "content": "SELECT \"school_club_team\" FROM \"c\" WHERE \"years_for_grizzlies\"='2011';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"c\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What players attended missouri?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"c\" WHERE \"school_club_team\"='Missouri';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"d\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What position(s) does the player from seton hall play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"d\" WHERE \"school_club_team\"='Seton Hall';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"d\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What number does the player who was with the grizzles in 1999 wear?" }, { "role": "assistant", "content": "SELECT MIN(\"no\") FROM \"d\" WHERE \"years_for_grizzlies\"='1999';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"d\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What players play guard?" }, { "role": "assistant", "content": "SELECT \"player\" FROM \"d\" WHERE \"position\"='Guard';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"d\" (\n \"player\" text,\n \"no\" real,\n \"nationality\" text,\n \"position\" text,\n \"years_for_grizzlies\" text,\n \"school_club_team\" text\n);\n\nQuestion: What position(s) do players from bowling green play?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"d\" WHERE \"school_club_team\"='Bowling Green';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16512618_1\" (\n \"year_affiliation\" text,\n \"wins\" real,\n \"losses\" real,\n \"winning_pct\" text,\n \"gb_division_standing\" text,\n \"manager\" text\n);\n\nQuestion: Name the most losses for leslie mann" }, { "role": "assistant", "content": "SELECT MAX(\"losses\") FROM \"table1_16512618_1\" WHERE \"manager\"='Leslie Mann';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1651764_3\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: who is the vacator whre the district is new jersey 2nd?" }, { "role": "assistant", "content": "SELECT \"vacator\" FROM \"table1_1651764_3\" WHERE \"district\"='New Jersey 2nd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1652224_5\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: what is the date the successor seated because the person died august 17, 1954?" }, { "role": "assistant", "content": "SELECT \"date_successor_seated\" FROM \"table1_1652224_5\" WHERE \"reason_for_change\"='Died August 17, 1954';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1652224_5\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: who was the successor for district ohio 15th?" }, { "role": "assistant", "content": "SELECT \"successor\" FROM \"table1_1652224_5\" WHERE \"district\"='Ohio 15th';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_1652224_5\" (\n \"district\" text,\n \"vacator\" text,\n \"reason_for_change\" text,\n \"successor\" text,\n \"date_successor_seated\" text\n);\n\nQuestion: what is the total number for reason for change is district michigan 3rd?" }, { "role": "assistant", "content": "SELECT COUNT(\"reason_for_change\") FROM \"table1_1652224_5\" WHERE \"district\"='Michigan 3rd';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16527640_3\" (\n \"player\" text,\n \"vfl_games\" real,\n \"vfl_club_s\" text,\n \"rank_held_at_time_of_death\" text,\n \"date_of_death\" text,\n \"location\" text\n);\n\nQuestion: What day did ARchie Roberts die?" }, { "role": "assistant", "content": "SELECT \"date_of_death\" FROM \"table1_16527640_3\" WHERE \"player\"='Archie Roberts';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16527640_3\" (\n \"player\" text,\n \"vfl_games\" real,\n \"vfl_club_s\" text,\n \"rank_held_at_time_of_death\" text,\n \"date_of_death\" text,\n \"location\" text\n);\n\nQuestion: What location had a VFL Game number of 9?" }, { "role": "assistant", "content": "SELECT \"location\" FROM \"table1_16527640_3\" WHERE \"vfl_games\"=9;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16527640_3\" (\n \"player\" text,\n \"vfl_games\" real,\n \"vfl_club_s\" text,\n \"rank_held_at_time_of_death\" text,\n \"date_of_death\" text,\n \"location\" text\n);\n\nQuestion: How many VFL games were located off Goodenough Island Milne Bay?" }, { "role": "assistant", "content": "SELECT \"vfl_games\" FROM \"table1_16527640_3\" WHERE \"location\"='off Goodenough Island Milne Bay';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"parameter\" text,\n \"1st_stage\" text,\n \"2nd_stage\" text,\n \"3rd_stage\" text,\n \"4th_stage\" text\n);\n\nQuestion: Name the 3rd stage for parameter of thrust " }, { "role": "assistant", "content": "SELECT \"3rd_stage\" FROM \"specifications\" WHERE \"parameter\"='Thrust';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"parameter\" text,\n \"1st_stage\" text,\n \"2nd_stage\" text,\n \"3rd_stage\" text,\n \"4th_stage\" text\n);\n\nQuestion: Name the parameter for 2.67 m" }, { "role": "assistant", "content": "SELECT \"parameter\" FROM \"specifications\" WHERE \"1st_stage\"='2.67 m';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"parameter\" text,\n \"1st_stage\" text,\n \"2nd_stage\" text,\n \"3rd_stage\" text,\n \"4th_stage\" text\n);\n\nQuestion: Name the paarameter for 1.0 m 3rd stage" }, { "role": "assistant", "content": "SELECT \"parameter\" FROM \"specifications\" WHERE \"3rd_stage\"='1.0 m';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"specifications\" (\n \"parameter\" text,\n \"1st_stage\" text,\n \"2nd_stage\" text,\n \"3rd_stage\" text,\n \"4th_stage\" text\n);\n\nQuestion: Name the 1st stage for parameter being diameter" }, { "role": "assistant", "content": "SELECT \"1st_stage\" FROM \"specifications\" WHERE \"parameter\"='Diameter';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_1_2005\" (\n \"episode_num\" text,\n \"original_airdate_uk\" text,\n \"episode_title\" text,\n \"doctor_who_episode\" text,\n \"webcast_link\" text\n);\n\nQuestion: How many episodes have the title \"the world of who\"?" }, { "role": "assistant", "content": "SELECT COUNT(\"episode_num\") FROM \"series_1_2005\" WHERE \"episode_title\"='\\\"The World of Who\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_1_2005\" (\n \"episode_num\" text,\n \"original_airdate_uk\" text,\n \"episode_title\" text,\n \"doctor_who_episode\" text,\n \"webcast_link\" text\n);\n\nQuestion: What episode number is the episode \"bringing back the doctor\"?" }, { "role": "assistant", "content": "SELECT \"episode_num\" FROM \"series_1_2005\" WHERE \"episode_title\"='\\\"Bringing Back the Doctor\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"series_1_2005\" (\n \"episode_num\" text,\n \"original_airdate_uk\" text,\n \"episode_title\" text,\n \"doctor_who_episode\" text,\n \"webcast_link\" text\n);\n\nQuestion: What is the episode number for the episode \"a new dimension\"?" }, { "role": "assistant", "content": "SELECT \"episode_num\" FROM \"series_1_2005\" WHERE \"episode_title\"='\\\"A New Dimension\\\"';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"archbishops\" (\n \"archbishop\" text,\n \"born\" text,\n \"ordained_priest\" text,\n \"ordained_bishop\" text,\n \"appointed_archbishop\" text,\n \"vacated_throne\" text,\n \"died\" text\n);\n\nQuestion: Which archbishop was ordained as bishop November 30, 1925?" }, { "role": "assistant", "content": "SELECT \"archbishop\" FROM \"archbishops\" WHERE \"ordained_bishop\"='November 30, 1925';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"archbishops\" (\n \"archbishop\" text,\n \"born\" text,\n \"ordained_priest\" text,\n \"ordained_bishop\" text,\n \"appointed_archbishop\" text,\n \"vacated_throne\" text,\n \"died\" text\n);\n\nQuestion: What is the death date of the archbishop who was ordained as bishop April 26, 1927?" }, { "role": "assistant", "content": "SELECT \"died\" FROM \"archbishops\" WHERE \"ordained_bishop\"='April 26, 1927';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"archbishops\" (\n \"archbishop\" text,\n \"born\" text,\n \"ordained_priest\" text,\n \"ordained_bishop\" text,\n \"appointed_archbishop\" text,\n \"vacated_throne\" text,\n \"died\" text\n);\n\nQuestion: How many appointed archbishops were ordained as priests on December 20, 1959" }, { "role": "assistant", "content": "SELECT COUNT(\"appointed_archbishop\") FROM \"archbishops\" WHERE \"ordained_priest\"='December 20, 1959';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"archbishops\" (\n \"archbishop\" text,\n \"born\" text,\n \"ordained_priest\" text,\n \"ordained_bishop\" text,\n \"appointed_archbishop\" text,\n \"vacated_throne\" text,\n \"died\" text\n);\n\nQuestion: What date was the person ordained as a priest in December 1838 ordained as a bishop?" }, { "role": "assistant", "content": "SELECT \"ordained_bishop\" FROM \"archbishops\" WHERE \"ordained_priest\"='December 1838';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"archbishops\" (\n \"archbishop\" text,\n \"born\" text,\n \"ordained_priest\" text,\n \"ordained_bishop\" text,\n \"appointed_archbishop\" text,\n \"vacated_throne\" text,\n \"died\" text\n);\n\nQuestion: When was the archbishop who vacated the throne on August 18, 1885 ordained as a priest?" }, { "role": "assistant", "content": "SELECT \"ordained_priest\" FROM \"archbishops\" WHERE \"vacated_throne\"='August 18, 1885';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"best_bowling_averages\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"wickets\" real,\n \"average\" text,\n \"best_bowling\" text\n);\n\nQuestion: How many players Bowled 4/125?" }, { "role": "assistant", "content": "SELECT COUNT(\"player\") FROM \"best_bowling_averages\" WHERE \"best_bowling\"='4/125';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"best_bowling_averages\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"wickets\" real,\n \"average\" text,\n \"best_bowling\" text\n);\n\nQuestion: What number of wickets were there when the average was 22.66?" }, { "role": "assistant", "content": "SELECT MAX(\"wickets\") FROM \"best_bowling_averages\" WHERE \"average\"='22.66';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"best_bowling_averages\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"wickets\" real,\n \"average\" text,\n \"best_bowling\" text\n);\n\nQuestion: How many wickets were there when average was 22.66?" }, { "role": "assistant", "content": "SELECT \"wickets\" FROM \"best_bowling_averages\" WHERE \"average\"='22.66';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"best_bowling_averages\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"wickets\" real,\n \"average\" text,\n \"best_bowling\" text\n);\n\nQuestion: What was the best bowling score when the average was 23.33?" }, { "role": "assistant", "content": "SELECT \"best_bowling\" FROM \"best_bowling_averages\" WHERE \"average\"='23.33';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"best_bowling_averages\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"wickets\" real,\n \"average\" text,\n \"best_bowling\" text\n);\n\nQuestion: How many matches had 11 wickets?" }, { "role": "assistant", "content": "SELECT MAX(\"matches\") FROM \"best_bowling_averages\" WHERE \"wickets\"=11;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"best_bowling_averages\" (\n \"player\" text,\n \"team\" text,\n \"matches\" real,\n \"wickets\" real,\n \"average\" text,\n \"best_bowling\" text\n);\n\nQuestion: How many wickets did Alec bedser have?" }, { "role": "assistant", "content": "SELECT MAX(\"wickets\") FROM \"best_bowling_averages\" WHERE \"player\"='Alec Bedser';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Who picked dimitri tsoumpas?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_one\" WHERE \"player\"='Dimitri Tsoumpas';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position did the winnipeg blue bombers draft?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_one\" WHERE \"cfl_team\"='Winnipeg Blue Bombers';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Where did Brendon Labatte get picked?" }, { "role": "assistant", "content": "SELECT MIN(\"pick_num\") FROM \"round_one\" WHERE \"player\"='Brendon LaBatte';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Who picked a player from Weber State?" }, { "role": "assistant", "content": "SELECT \"cfl_team\" FROM \"round_one\" WHERE \"college\"='Weber State';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_one\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: What position was taken out of Louisiana-Lafayette?" }, { "role": "assistant", "content": "SELECT \"position\" FROM \"round_one\" WHERE \"college\"='Louisiana-Lafayette';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the college for calgary stampeders" }, { "role": "assistant", "content": "SELECT \"college\" FROM \"round_four\" WHERE \"cfl_team\"='Calgary Stampeders';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"round_four\" (\n \"pick_num\" real,\n \"cfl_team\" text,\n \"player\" text,\n \"position\" text,\n \"college\" text\n);\n\nQuestion: Name the most pick number for cfl team being edmonton eskimos" }, { "role": "assistant", "content": "SELECT MAX(\"pick_num\") FROM \"round_four\" WHERE \"cfl_team\"='Edmonton Eskimos';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16581695_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" real\n);\n\nQuestion: How many days are associated with production code 210?" }, { "role": "assistant", "content": "SELECT COUNT(\"original_airdate\") FROM \"table1_16581695_3\" WHERE \"production_code\"=210;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16581695_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" real\n);\n\nQuestion: How many titles have a production code of 211?" }, { "role": "assistant", "content": "SELECT COUNT(\"title\") FROM \"table1_16581695_3\" WHERE \"production_code\"=211;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16581695_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" real\n);\n\nQuestion: How many seasons have a production code of 204?" }, { "role": "assistant", "content": "SELECT COUNT(\"no_in_season\") FROM \"table1_16581695_3\" WHERE \"production_code\"=204;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16581695_3\" (\n \"no_in_series\" real,\n \"no_in_season\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" real\n);\n\nQuestion: What title was written by Matt Wayne?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_16581695_3\" WHERE \"written_by\"='Matt Wayne';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16581695_4\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" text\n);\n\nQuestion: What is the series episode number of the episode with production code 303?" }, { "role": "assistant", "content": "SELECT \"no_in_series\" FROM \"table1_16581695_4\" WHERE \"production_code\"='303';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16581695_4\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" text\n);\n\nQuestion: What is the production code for episode 15 in season 3?" }, { "role": "assistant", "content": "SELECT \"production_code\" FROM \"table1_16581695_4\" WHERE \"no_in_season\"='15';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16581695_4\" (\n \"no_in_series\" text,\n \"no_in_season\" text,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_airdate\" text,\n \"production_code\" text\n);\n\nQuestion: Who directed episode 12 in season 3?" }, { "role": "assistant", "content": "SELECT \"directed_by\" FROM \"table1_16581695_4\" WHERE \"no_in_season\"='12';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_protected_forests\" (\n \"central_forest_reserve\" text,\n \"size_in_km\" real,\n \"total_plant_species\" real,\n \"tree_species\" real,\n \"endemic\" real,\n \"threatened_cr_vu_en\" real\n);\n\nQuestion: How many tree species are listed when the total plant species is 258?" }, { "role": "assistant", "content": "SELECT \"tree_species\" FROM \"list_of_protected_forests\" WHERE \"total_plant_species\"=258;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_protected_forests\" (\n \"central_forest_reserve\" text,\n \"size_in_km\" real,\n \"total_plant_species\" real,\n \"tree_species\" real,\n \"endemic\" real,\n \"threatened_cr_vu_en\" real\n);\n\nQuestion: How many tree species are there when the total plant species is 113?" }, { "role": "assistant", "content": "SELECT COUNT(\"tree_species\") FROM \"list_of_protected_forests\" WHERE \"total_plant_species\"=113;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_protected_forests\" (\n \"central_forest_reserve\" text,\n \"size_in_km\" real,\n \"total_plant_species\" real,\n \"tree_species\" real,\n \"endemic\" real,\n \"threatened_cr_vu_en\" real\n);\n\nQuestion: What is the size of Itwara central forest reserve?" }, { "role": "assistant", "content": "SELECT MIN(\"size_in_km\") FROM \"list_of_protected_forests\" WHERE \"central_forest_reserve\"='Itwara';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"list_of_protected_forests\" (\n \"central_forest_reserve\" text,\n \"size_in_km\" real,\n \"total_plant_species\" real,\n \"tree_species\" real,\n \"endemic\" real,\n \"threatened_cr_vu_en\" real\n);\n\nQuestion: How many tree species are in the kitechura reserve?" }, { "role": "assistant", "content": "SELECT \"tree_species\" FROM \"list_of_protected_forests\" WHERE \"central_forest_reserve\"='Kitechura';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16617025_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What episode titles have 17.93 million U.S. viewers?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_16617025_1\" WHERE \"u_s_viewers_millions\"='17.93';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16617025_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: What episode titles have 20.94 million U.S. viewers?" }, { "role": "assistant", "content": "SELECT \"title\" FROM \"table1_16617025_1\" WHERE \"u_s_viewers_millions\"='20.94';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16617025_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: In what seasons did Kate Woods direct Without A Trace?" }, { "role": "assistant", "content": "SELECT \"season_num\" FROM \"table1_16617025_1\" WHERE \"directed_by\"='Kate Woods';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_16617025_1\" (\n \"series_num\" real,\n \"season_num\" real,\n \"title\" text,\n \"directed_by\" text,\n \"written_by\" text,\n \"original_air_date\" text,\n \"u_s_viewers_millions\" text\n);\n\nQuestion: Who wrote Season 8?" }, { "role": "assistant", "content": "SELECT \"written_by\" FROM \"table1_16617025_1\" WHERE \"season_num\"=8;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_166346_1\" (\n \"country\" text,\n \"region\" text,\n \"joined_opec\" real,\n \"population_july_2012\" real,\n \"area_km\" real,\n \"production_bbl_day\" text\n);\n\nQuestion: When did the country that produced 1,213,000 (21st) bbl/day join Opec?" }, { "role": "assistant", "content": "SELECT \"joined_opec\" FROM \"table1_166346_1\" WHERE \"production_bbl_day\"='1,213,000 (21st)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_166346_1\" (\n \"country\" text,\n \"region\" text,\n \"joined_opec\" real,\n \"population_july_2012\" real,\n \"area_km\" real,\n \"production_bbl_day\" text\n);\n\nQuestion: What was the minimum area in square kilometers that produced 3,200,000 (12th) bbl/day?" }, { "role": "assistant", "content": "SELECT MIN(\"area_km\") FROM \"table1_166346_1\" WHERE \"production_bbl_day\"='3,200,000 (12th)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_166346_1\" (\n \"country\" text,\n \"region\" text,\n \"joined_opec\" real,\n \"population_july_2012\" real,\n \"area_km\" real,\n \"production_bbl_day\" text\n);\n\nQuestion: What is the highest poplulation in July 2012 in the country with an area of 2149690 square kilometers?" }, { "role": "assistant", "content": "SELECT MAX(\"population_july_2012\") FROM \"table1_166346_1\" WHERE \"area_km\"=2149690;" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_166346_1\" (\n \"country\" text,\n \"region\" text,\n \"joined_opec\" real,\n \"population_july_2012\" real,\n \"area_km\" real,\n \"production_bbl_day\" text\n);\n\nQuestion: Which regions had a production (bbl/day) of 1,213,000 (21st)?" }, { "role": "assistant", "content": "SELECT \"region\" FROM \"table1_166346_1\" WHERE \"production_bbl_day\"='1,213,000 (21st)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"table1_166346_1\" (\n \"country\" text,\n \"region\" text,\n \"joined_opec\" real,\n \"population_july_2012\" real,\n \"area_km\" real,\n \"production_bbl_day\" text\n);\n\nQuestion: Which country had a production (bbl/day) of 2,494,000 (10th)?" }, { "role": "assistant", "content": "SELECT \"country\" FROM \"table1_166346_1\" WHERE \"production_bbl_day\"='2,494,000 (10th)';" } ]
[ { "role": "system", "content": "You are an expert SQL query generator. Only output valid SQL." }, { "role": "user", "content": "### Database Schema\nCREATE TABLE \"cancer_immunotherapy_monoclonal_antibodi\" (\n \"antibody\" text,\n \"brand_name\" text,\n \"approval_date\" real,\n \"type\" text,\n \"target\" text,\n \"approved_treatment_s\" text\n);\n\nQuestion: What are all the approved treatments for the target CD30?" }, { "role": "assistant", "content": "SELECT \"approved_treatment_s\" FROM \"cancer_immunotherapy_monoclonal_antibodi\" WHERE \"target\"='CD30';" } ]