text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_5_jamaican_100_m_athletes_women" ( "rank" real, "time" real, "athlete" text, "nation" text, "date" text, "location" text ); Question: Rank smaller than 5, and a Time larger than 10.7, and a Date of 10 july 2009 has what location? <|assistant|> SELECT "location" FROM "top_5_jamaican_100_m_athletes_women" WHERE "rank"<5 AND "time">10.7 AND "date"='10 july 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "berkhamsted" ( "name" text, "faith" text, "type" text, "opened" real, "intake" real, "dcsf_number" real, "ofsted_number" real ); Question: Faith of rc, and a Opened larger than 1966 which has the highest DCSF number? <|assistant|> SELECT MAX("dcsf_number") FROM "berkhamsted" WHERE "faith"='rc' AND "opened">1966;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "berkhamsted" ( "name" text, "faith" text, "type" text, "opened" real, "intake" real, "dcsf_number" real, "ofsted_number" real ); Question: Faith of –, and a Name of greenway has what type? <|assistant|> SELECT "type" FROM "berkhamsted" WHERE "faith"='–' AND "name"='greenway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lowest_team_totals_against" ( "rank" text, "runs" text, "opponent" text, "venue" text, "season" text ); Question: Who was the opponent that played at Launceston Cricket Club Ground, launceston during the season of 1853/54? <|assistant|> SELECT "opponent" FROM "lowest_team_totals_against" WHERE "venue"='launceston cricket club ground, launceston' AND "season"='1853/54';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lowest_team_totals_against" ( "rank" text, "runs" text, "opponent" text, "venue" text, "season" text ); Question: What was the rank of the team during season 2006/07? <|assistant|> SELECT "rank" FROM "lowest_team_totals_against" WHERE "season"='2006/07';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lowest_team_totals_against" ( "rank" text, "runs" text, "opponent" text, "venue" text, "season" text ); Question: What was the venue where there were 55 runs? <|assistant|> SELECT "venue" FROM "lowest_team_totals_against" WHERE "runs"='55';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lowest_team_totals_against" ( "rank" text, "runs" text, "opponent" text, "venue" text, "season" text ); Question: What was the venue where there were 62 runs? <|assistant|> SELECT "venue" FROM "lowest_team_totals_against" WHERE "runs"='62';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" text ); Question: Which driver had an accident and laps smaller than 53? <|assistant|> SELECT "driver" FROM "race" WHERE "laps"<53 AND "time_retired"='accident';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text ); Question: What language has a publication range from 1955–1999? <|assistant|> SELECT "language" FROM "scholarly_journals" WHERE "publication_range"='1955–1999';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text ); Question: What is the status for a journal with the ISSN of 0149-1830? <|assistant|> SELECT "status" FROM "scholarly_journals" WHERE "issn"='0149-1830';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text ); Question: What is the language with a France publication range of 1992–2003? <|assistant|> SELECT "language" FROM "scholarly_journals" WHERE "country"='france' AND "publication_range"='1992–2003';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text ); Question: What is the ISSN number of a publication range of 1984-? <|assistant|> SELECT "issn" FROM "scholarly_journals" WHERE "publication_range"='1984-';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "scholarly_journals" ( "issn" text, "language" text, "country" text, "frequency" text, "publication_range" text, "status" text, "document_type" text ); Question: What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385? <|assistant|> SELECT "language" FROM "scholarly_journals" WHERE "frequency"='3 times per year' AND "issn"='1136-7385';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dvd_releases" ( "volume" text, "discs" real, "episodes" real, "region_1_release" text, "region_2_release" text, "region_4_release" text ); Question: What is the region 4 release that has july 20, 2009 as the region 2? <|assistant|> SELECT "region_4_release" FROM "dvd_releases" WHERE "region_2_release"='july 20, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dvd_releases" ( "volume" text, "discs" real, "episodes" real, "region_1_release" text, "region_2_release" text, "region_4_release" text ); Question: What is the region 1 release that has july 20, 2009 as the region 2? <|assistant|> SELECT "region_1_release" FROM "dvd_releases" WHERE "region_2_release"='july 20, 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "dvd_releases" ( "volume" text, "discs" real, "episodes" real, "region_1_release" text, "region_2_release" text, "region_4_release" text ); Question: What is the average episode that has September 11, 2007 as a region 1? <|assistant|> SELECT AVG("episodes") FROM "dvd_releases" WHERE "region_1_release"='september 11, 2007';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed_or_under_construction" ( "wind_farm" text, "scheduled" text, "capacity_mw" real, "turbines" real, "type" text, "location" text ); Question: What is the scheduled value for the farm having a capacity under 32.5MW, type of Nordex n90 2.5MW, and a farm of Glenough Extension? <|assistant|> SELECT "scheduled" FROM "proposed_or_under_construction" WHERE "capacity_mw"<32.5 AND "type"='nordex n90 2.5mw' AND "wind_farm"='glenough extension';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed_or_under_construction" ( "wind_farm" text, "scheduled" text, "capacity_mw" real, "turbines" real, "type" text, "location" text ); Question: What is the type of turbine having fewer than 17 units and located in County Laois? <|assistant|> SELECT "type" FROM "proposed_or_under_construction" WHERE "turbines"<17 AND "location"='county laois';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed_or_under_construction" ( "wind_farm" text, "scheduled" text, "capacity_mw" real, "turbines" real, "type" text, "location" text ); Question: When is the scheduled date for the farm having 17 turbines? <|assistant|> SELECT "scheduled" FROM "proposed_or_under_construction" WHERE "turbines"=17;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "proposed_or_under_construction" ( "wind_farm" text, "scheduled" text, "capacity_mw" real, "turbines" real, "type" text, "location" text ); Question: What is the average capacity for the farm at Gortahile having more than 8 turbines? <|assistant|> SELECT AVG("capacity_mw") FROM "proposed_or_under_construction" WHERE "wind_farm"='gortahile' AND "turbines">8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "933_1062" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text, "family_relations" text ); Question: What is the title of the king who left office in 982 and entered office in 949? <|assistant|> SELECT "title" FROM "933_1062" WHERE "left_office"='982' AND "entered_office"='949';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "933_1062" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text, "family_relations" text ); Question: When did the king who entered office in 1012 leave office? <|assistant|> SELECT "left_office" FROM "933_1062" WHERE "entered_office"='1012';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "933_1062" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text, "family_relations" text ); Question: What are the family relations of the king with the throne name 303? <|assistant|> SELECT "family_relations" FROM "933_1062" WHERE "throne_name"='303';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "933_1062" ( "throne_name" text, "title" text, "born_died" text, "entered_office" text, "left_office" text, "family_relations" text ); Question: What is teh born-died dates of the king with a throne name 315 and left office in 1021? <|assistant|> SELECT "born_died" FROM "933_1062" WHERE "left_office"='1021' AND "throne_name"='315';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Which Opponents have a Partner of irina-camelia begu, and a Surface of hard? <|assistant|> SELECT "opponents" FROM "doubles_10_2_titles_8_runners_up" WHERE "partner"='irina-camelia begu' AND "surface"='hard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Which Surface has a Partner of galina voskoboeva? <|assistant|> SELECT "surface" FROM "doubles_10_2_titles_8_runners_up" WHERE "partner"='galina voskoboeva';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Which Opponents have a Surface of hard, and an Outcome of runner-up, and a Partner of jarmila gajdošová? <|assistant|> SELECT "opponents" FROM "doubles_10_2_titles_8_runners_up" WHERE "surface"='hard' AND "outcome"='runner-up' AND "partner"='jarmila gajdošová';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Which Partner has a Date of 12 july 2009? <|assistant|> SELECT "partner" FROM "doubles_10_2_titles_8_runners_up" WHERE "date"='12 july 2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_10_2_titles_8_runners_up" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Which Surface has a Partner of sorana cîrstea? <|assistant|> SELECT "surface" FROM "doubles_10_2_titles_8_runners_up" WHERE "partner"='sorana cîrstea';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "atlanta_falcons_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Name the least overall with pick number more than 27 <|assistant|> SELECT MIN("overall") FROM "atlanta_falcons_draft_history" WHERE "pick_num">27;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eighthfinals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: what's the first leg with gran canaria as team #2? <|assistant|> SELECT "1st_leg" FROM "eighthfinals" WHERE "team_num2"='gran canaria';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eighthfinals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: with team #1 as lukoil academic what is team #2? <|assistant|> SELECT "team_num2" FROM "eighthfinals" WHERE "team_num1"='lukoil academic';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "eighthfinals" ( "team_num1" text, "agg" text, "team_num2" text, "1st_leg" text, "2nd_leg" text ); Question: with team #2 as akasvayu girona what is team #1? <|assistant|> SELECT "team_num1" FROM "eighthfinals" WHERE "team_num2"='akasvayu girona';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text ); Question: Which virtue is acedia(Latin)? <|assistant|> SELECT "virtue" FROM "seven_heavenly_virtues" WHERE "latin"='acedia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text ); Question: Which Virtue has a (vice) of lust? <|assistant|> SELECT "virtue" FROM "seven_heavenly_virtues" WHERE "vice"='lust';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text ); Question: Which virtue is Invidia(Latin)? <|assistant|> SELECT "virtue" FROM "seven_heavenly_virtues" WHERE "latin"='invidia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text ); Question: What's the gloss with Castitas(Latin)? <|assistant|> SELECT "gloss" FROM "seven_heavenly_virtues" WHERE "latin"='castitas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text ); Question: What is the Diligence Virtues Gloss? <|assistant|> SELECT "gloss" FROM "seven_heavenly_virtues" WHERE "virtue"='diligence';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seven_heavenly_virtues" ( "virtue" text, "latin" text, "gloss" text, "vice" text, "latin" text ); Question: What is the Virtue of Temperance in Latin? <|assistant|> SELECT "latin" FROM "seven_heavenly_virtues" WHERE "virtue"='temperance';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: In what year(s) did South Korea win silver? <|assistant|> SELECT "year" FROM "team" WHERE "silver"='south korea';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: Which nation(s) won silver in Doha? <|assistant|> SELECT "silver" FROM "team" WHERE "location"='doha';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: What was the first year that South Korea won gold and Malaysia won bronze? <|assistant|> SELECT MIN("year") FROM "team" WHERE "gold"='south korea' AND "bronze"='malaysia';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team" ( "year" real, "location" text, "gold" text, "silver" text, "bronze" text ); Question: What country won gold in the year(s) that Chinese Taipei won bronze? <|assistant|> SELECT "gold" FROM "team" WHERE "bronze"='chinese taipei';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "season" text, "tier" real, "league" text, "pos" real, "postseason" text, "dutch_cup" text, "european_competitions" text ); Question: Which European competitions have a Pos of 6? <|assistant|> SELECT "european_competitions" FROM "results" WHERE "pos"=6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "season" text, "tier" real, "league" text, "pos" real, "postseason" text, "dutch_cup" text, "european_competitions" text ); Question: Which Pos has a Dutch Cup of winner, and a Tier larger than 1? <|assistant|> SELECT AVG("pos") FROM "results" WHERE "dutch_cup"='winner' AND "tier">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: What is the average Frequency MHz that is on farwell, texas? <|assistant|> SELECT AVG("frequency_m_hz") FROM "external_links" WHERE "city_of_license"='farwell, texas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: WHich City of license has a FCC info of fcc, and 10,000 horizontal 3,000 vertical ERP W <|assistant|> SELECT "city_of_license" FROM "external_links" WHERE "fcc_info"='fcc' AND "erp_w"='10,000 horizontal 3,000 vertical';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "external_links" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" text, "class" text, "fcc_info" text ); Question: WHich FCC info has 3,000 ERP W? <|assistant|> SELECT "fcc_info" FROM "external_links" WHERE "erp_w"='3,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real ); Question: What's the average game against the New Jersey Devils with 19 points? <|assistant|> SELECT AVG("game") FROM "regular_season" WHERE "points"=19 AND "opponent"='new jersey devils';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "game_site" text, "attendance" real ); Question: Opponent of at boston patriots, and a Week larger than 3 had what average attendance? <|assistant|> SELECT AVG("attendance") FROM "schedule" WHERE "opponent"='at boston patriots' AND "week">3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "geography_of_students" ( "maryland_counties" text, "fall_05" real, "fall_06" real, "fall_07" real, "fall_08" real, "fall_09" real ); Question: Name the average fall 07 for fall 07 more than 219 <|assistant|> SELECT AVG("fall_07") FROM "geography_of_students" WHERE "fall_06">219;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: Name the player for fc dallas pick number less than 3 <|assistant|> SELECT "player" FROM "round_one" WHERE "pick_num"<3 AND "mls_team"='fc dallas';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: Name the most pick number for real salt lake and affiliation of ucla los angeles storm <|assistant|> SELECT MAX("pick_num") FROM "round_one" WHERE "mls_team"='real salt lake' AND "affiliation"='ucla los angeles storm';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_one" ( "pick_num" real, "mls_team" text, "player" text, "position" text, "affiliation" text ); Question: Name the player with pick number of 7 <|assistant|> SELECT "player" FROM "round_one" WHERE "pick_num"=7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Game has a March smaller than 12, and a Score of 10–1? <|assistant|> SELECT MIN("game") FROM "regular_season" WHERE "march"<12 AND "score"='10–1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Score has Points of 88, and a Record of 38–22–12? <|assistant|> SELECT "score" FROM "regular_season" WHERE "points"=88 AND "record"='38–22–12';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Game has an Opponent of detroit red wings, and a March smaller than 12? <|assistant|> SELECT COUNT("game") FROM "regular_season" WHERE "opponent"='detroit red wings' AND "march"<12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "game" real, "march" real, "opponent" text, "score" text, "record" text, "points" real ); Question: Which Points have a Game smaller than 70, and a Score of 4–8? <|assistant|> SELECT MIN("points") FROM "regular_season" WHERE "game"<70 AND "score"='4–8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which segment a's Netflix is S05E22? <|assistant|> SELECT "segment_a" FROM "season_10_2007_2008" WHERE "netflix"='s05e22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which series episode has a segment c that is Electric pole s transformer? <|assistant|> SELECT "series_ep" FROM "season_10_2007_2008" WHERE "segment_c"='electric pole s transformer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: What largest episode number's Netflix is S05E23? <|assistant|> SELECT MAX("episode") FROM "season_10_2007_2008" WHERE "netflix"='s05e23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_10_2007_2008" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text ); Question: Which segment c's segment b is refrigerators? <|assistant|> SELECT "segment_c" FROM "season_10_2007_2008" WHERE "segment_b"='refrigerators';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "career_summary" ( "season" text, "series" text, "team" text, "races" text, "wins" text, "points" text, "position" text ); Question: Which races did they accumulate at least 125 points? <|assistant|> SELECT "races" FROM "career_summary" WHERE "points"='125';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: Which Series has a Score of 3 – 8? <|assistant|> SELECT "series" FROM "playoffs" WHERE "score"='3 – 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: Which Date has a Decision of myre? <|assistant|> SELECT "date" FROM "playoffs" WHERE "decision"='myre';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: How many Attendances on may 24? <|assistant|> SELECT MIN("attendance") FROM "playoffs" WHERE "date"='may 24';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: Which Series are on may 18? <|assistant|> SELECT "series" FROM "playoffs" WHERE "date"='may 18';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: How many Attendances that has a Visitor of philadelphia on may 20? <|assistant|> SELECT AVG("attendance") FROM "playoffs" WHERE "visitor"='philadelphia' AND "date"='may 20';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: who is the Visitor that has a Series of series tied 2–2? <|assistant|> SELECT "visitor" FROM "playoffs" WHERE "series"='series tied 2–2';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: How many Attendances have a Score of 4 – 5? Question 4 <|assistant|> SELECT MAX("attendance") FROM "playoffs" WHERE "score"='4 – 5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "series" text ); Question: WHo has a Home of philadelphia and a Series of flyers lead 1–0? <|assistant|> SELECT "visitor" FROM "playoffs" WHERE "home"='philadelphia' AND "series"='flyers lead 1–0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What is the class of the Charlotte Camel gt 500 race? <|assistant|> SELECT "class" FROM "schedule" WHERE "race"='charlotte camel gt 500';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What is the race 12 hours in length? <|assistant|> SELECT "race" FROM "schedule" WHERE "length"='12 hours';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What is the class of the Coca-cola classic 12 hours of sebring race? <|assistant|> SELECT "class" FROM "schedule" WHERE "race"='coca-cola classic 12 hours of sebring';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours? <|assistant|> SELECT "class" FROM "schedule" WHERE "race"='budweiser grand prix of miami' AND "length"='3 hours';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What is the date of the Paul Revere 250 race in the Daytona International Speedway circuit? <|assistant|> SELECT "date" FROM "schedule" WHERE "circuit"='daytona international speedway' AND "race"='paul revere 250';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text ); Question: What race is 12 hours in length? <|assistant|> SELECT "race" FROM "schedule" WHERE "length"='12 hours';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: What is the highest round for the pick from Finland? <|assistant|> SELECT MAX("round") FROM "nhl_draft" WHERE "nationality"='finland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_draft" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text ); Question: What is the total number of rounds that Joe Barnes was picked? <|assistant|> SELECT COUNT("round") FROM "nhl_draft" WHERE "player"='joe barnes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engelberg" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "2nd_m" real, "points" real, "overall_wc_points_rank" text ); Question: What is the total 2nd of Thomas Morgenstern, who has a 1st less than 132.5? <|assistant|> SELECT COUNT("2nd_m") FROM "engelberg" WHERE "name"='thomas morgenstern' AND "1st_m"<132.5;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iaba_olympic_medals" ( "order" text, "year" real, "olympic_games" text, "medal" text, "weight" text, "boxer" text, "club" text ); Question: What was the order of the Tokyo olympic games? <|assistant|> SELECT "order" FROM "iaba_olympic_medals" WHERE "olympic_games"='tokyo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iaba_olympic_medals" ( "order" text, "year" real, "olympic_games" text, "medal" text, "weight" text, "boxer" text, "club" text ); Question: What was the 15th club in 2012? <|assistant|> SELECT "club" FROM "iaba_olympic_medals" WHERE "year"=2012 AND "order"='15th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "iaba_olympic_medals" ( "order" text, "year" real, "olympic_games" text, "medal" text, "weight" text, "boxer" text, "club" text ); Question: What medal did Michael Conlon, with a weight of fly, win? <|assistant|> SELECT "medal" FROM "iaba_olympic_medals" WHERE "weight"='fly' AND "boxer"='michael conlon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: How many losses have more than 45,036 attendance? <|assistant|> SELECT "loss" FROM "game_log" WHERE "attendance">'45,036';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: on april 29, what was the attendance? <|assistant|> SELECT SUM("attendance") FROM "game_log" WHERE "date"='april 29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: on april 9 what was the attendance? <|assistant|> SELECT AVG("attendance") FROM "game_log" WHERE "date"='april 9';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text ); Question: What date has postponed (rain) rescheduled for august 7 as the score? <|assistant|> SELECT "date" FROM "game_log" WHERE "score"='postponed (rain) rescheduled for august 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country" ( "country" text, "launches" real, "successes" real, "failures" real, "partial_failures" real ); Question: Failures larger than 0, and a Successes of 1 has what lowest partial failures? <|assistant|> SELECT MIN("partial_failures") FROM "by_country" WHERE "failures">0 AND "successes"=1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_country" ( "country" text, "launches" real, "successes" real, "failures" real, "partial_failures" real ); Question: Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures? <|assistant|> SELECT SUM("partial_failures") FROM "by_country" WHERE "successes"<6 AND "launches">1 AND "failures"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: Who was the opposing team during a game in the Pontiac Silverdome? <|assistant|> SELECT "opponent" FROM "game_log" WHERE "location"='pontiac silverdome';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text ); Question: What was the final score for the January 23 game? <|assistant|> SELECT "score" FROM "game_log" WHERE "date"='january 23';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: What is the highest Feb value having an opponent of the Philadelphia Flyers and is after game 63? <|assistant|> SELECT MAX("february") FROM "schedule_and_results" WHERE "opponent"='philadelphia flyers' AND "game">63;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: Who was the opponent in games over 58, after Feb 16, and having a record of 40-20-4? <|assistant|> SELECT "opponent" FROM "schedule_and_results" WHERE "game">58 AND "february">16 AND "record"='40-20-4';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grammy_hall_of_fame" ( "year" real, "title" text, "genre" text, "label" text, "year_inducted" real ); Question: Which Year has a Genre of rock (track)? <|assistant|> SELECT SUM("year") FROM "grammy_hall_of_fame" WHERE "genre"='rock (track)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "grammy_hall_of_fame" ( "year" real, "title" text, "genre" text, "label" text, "year_inducted" real ); Question: Which Year Inducted is the highest one that has a Year smaller than 1965? <|assistant|> SELECT MAX("year_inducted") FROM "grammy_hall_of_fame" WHERE "year"<1965;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Overall is the highest one that has a Pick # smaller than 9, and a Name of mike pearson? <|assistant|> SELECT MAX("overall") FROM "jacksonville_jaguars_draft_history" WHERE "pick_num"<9 AND "name"='mike pearson';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jacksonville_jaguars_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); Question: Which Round is the lowest one that has a Position of wide receiver, and an Overall smaller than 222? <|assistant|> SELECT MIN("round") FROM "jacksonville_jaguars_draft_history" WHERE "position"='wide receiver' AND "overall"<222;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text, "record" text ); Question: What was the Record on September 21? <|assistant|> SELECT "record" FROM "game_log" WHERE "date"='september 21';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text, "record" text ); Question: What was the record the day David Weathers (15) had a save? <|assistant|> SELECT "record" FROM "game_log" WHERE "save"='david weathers (15)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "save" text, "record" text ); Question: Who had a save on September 2? <|assistant|> SELECT "save" FROM "game_log" WHERE "date"='september 2';<|endoftext|>