text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "results" ( "party" text, "votes_gib" real, "votes_sw_eng" real, "pct_gib" real, "pct_sw_eng" real, "change_sw_eng" real, "seats" real ); Question: What's the lowest Votes (SW Eng) with a % (SW Eng) that's larger than 2.1, Votes (Gib) of 1,127, and a Change (SW Eng) that's larger than -3.6? <|assistant|> SELECT MIN("votes_sw_eng") FROM "results" WHERE "pct_sw_eng">2.1 AND "votes_gib"='1,127' AND "change_sw_eng">-3.6;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Gold is the lowest one that has a Bronze of 14, and a Total larger than 42? <|assistant|> SELECT MIN("gold") FROM "medal_table" WHERE "bronze"=14 AND "total">42;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Bronze is the lowest one that has a Nation of total, and a Gold smaller than 14? <|assistant|> SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='total' AND "gold"<14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: How much Total has a Nation of kazakhstan (kaz), and a Gold larger than 0? <|assistant|> SELECT COUNT("total") FROM "medal_table" WHERE "nation"='kazakhstan (kaz)' AND "gold">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which Total is the highest one that has a Rank of 1, and a Gold larger than 11? <|assistant|> SELECT MAX("total") FROM "medal_table" WHERE "rank"='1' AND "gold">11;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual_events" ( "round" text, "venue" text, "discipline" text, "date" text, "winner" text, "second" text, "third" text ); Question: Who finished 3rd in Oslo? <|assistant|> SELECT "third" FROM "individual_events" WHERE "venue"='oslo';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1950" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: On November 22, what were the results of the friendly type game? <|assistant|> SELECT "results" FROM "1950" WHERE "type_of_game"='friendly' AND "date"='november 22';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1950" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: On October 8, what city was the game played? <|assistant|> SELECT "city" FROM "1950" WHERE "date"='october 8';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1950" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: On June 29, who was the opponent? <|assistant|> SELECT "opponent" FROM "1950" WHERE "date"='june 29';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1950" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: What date had an opponent of Sweden and a friendly type game? <|assistant|> SELECT "date" FROM "1950" WHERE "type_of_game"='friendly' AND "opponent"='sweden';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1950" ( "date" text, "city" text, "opponent" text, "results" text, "type_of_game" text ); Question: What were the results on September 7? <|assistant|> SELECT "results" FROM "1950" WHERE "date"='september 7';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "index_trends_in_major_states_by_respecti" ( "state" text, "1990_95" real, "1996_00" real, "2001_05" real, "2006_10" real ); Question: Which 1990–95 is the highest one that has a State of karnataka, and a 2001–05 smaller than 0.2? <|assistant|> SELECT MAX("1990_95") FROM "index_trends_in_major_states_by_respecti" WHERE "state"='karnataka' AND "2001_05"<0.2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "index_trends_in_major_states_by_respecti" ( "state" text, "1990_95" real, "1996_00" real, "2001_05" real, "2006_10" real ); Question: Which 1996-00 is the lowest one that has a State of maharashtra, and a 2006–10 smaller than 0.26? <|assistant|> SELECT MIN("1996_00") FROM "index_trends_in_major_states_by_respecti" WHERE "state"='maharashtra' AND "2006_10"<0.26;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "index_trends_in_major_states_by_respecti" ( "state" text, "1990_95" real, "1996_00" real, "2001_05" real, "2006_10" real ); Question: Which 1990–95 is the average one that has a 2001–05 larger than 0.55? <|assistant|> SELECT AVG("1990_95") FROM "index_trends_in_major_states_by_respecti" WHERE "2001_05">0.55;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "index_trends_in_major_states_by_respecti" ( "state" text, "1990_95" real, "1996_00" real, "2001_05" real, "2006_10" real ); Question: Which 1990–95 is the highest one that has a State of assam, and a 1996-00 smaller than 0.02? <|assistant|> SELECT MAX("1990_95") FROM "index_trends_in_major_states_by_respecti" WHERE "state"='assam' AND "1996_00"<0.02;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_2006" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); Question: What is the Winning team on january 28, 2006? <|assistant|> SELECT "winning_team" FROM "2005_2006" WHERE "date"='january 28, 2006';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_2006" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); Question: Which Series has a Winning team of iowa state and a Sport of w basketball? <|assistant|> SELECT "series" FROM "2005_2006" WHERE "winning_team"='iowa state' AND "sport"='w basketball';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_2006" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); Question: Which Series has a Site of ames on september 10, 2005? <|assistant|> SELECT "series" FROM "2005_2006" WHERE "site"='ames' AND "date"='september 10, 2005';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_2006" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); Question: Which Series has a Site of ames and a Sport of w gymnastics? <|assistant|> SELECT "series" FROM "2005_2006" WHERE "site"='ames' AND "sport"='w gymnastics';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_2006" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); Question: WHich port is on march 17, 2006 and has a Winning team of iowa state? <|assistant|> SELECT "sport" FROM "2005_2006" WHERE "date"='march 17, 2006' AND "winning_team"='iowa state';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2005_2006" ( "date" text, "site" text, "sport" text, "winning_team" text, "series" text ); Question: Which Site has a Date of march 17, 2006 and an iowa state Winning team? <|assistant|> SELECT "site" FROM "2005_2006" WHERE "date"='march 17, 2006' AND "winning_team"='iowa state';<|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, "attendance" real ); Question: Who was the opponent of the game before week 11 on October 31, 1976? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "week"<11 AND "date"='october 31, 1976';<|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, "attendance" real ); Question: What is the highest attendance of the game on week 9? <|assistant|> SELECT MAX("attendance") FROM "schedule" WHERE "week"=9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" real, "episodes" real, "first_air_date" text, "last_air_date" text, "timeslot" text, "dvd_release" text ); Question: When is the last episode air date for season 3? <|assistant|> SELECT "last_air_date" FROM "seasons" WHERE "season"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "seasons" ( "season" real, "episodes" real, "first_air_date" text, "last_air_date" text, "timeslot" text, "dvd_release" text ); Question: Which season had its last episode air on March 11, 2001? <|assistant|> SELECT "season" FROM "seasons" WHERE "last_air_date"='march 11, 2001';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What games have more than 1 draw? <|assistant|> SELECT AVG("games") FROM "first_round" WHERE "drawn">1;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "games" real, "drawn" real, "lost" real, "points_difference" text, "points" real ); Question: What game is the lowest with 1 draw and less than 7 points? <|assistant|> SELECT MIN("games") FROM "first_round" WHERE "drawn"=1 AND "points"<7;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "western_league" ( "year" real, "league" text, "class" text, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: Manager of art griggs had what lowest year? <|assistant|> SELECT MIN("year") FROM "western_league" WHERE "manager"='art griggs';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "western_league" ( "year" real, "league" text, "class" text, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: Manager of spencer abbott, and a Year of 1919 involves what playoffs? <|assistant|> SELECT "playoffs" FROM "western_league" WHERE "manager"='spencer abbott' AND "year"=1919;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "western_league" ( "year" real, "league" text, "class" text, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: Manager of marty berghammer / nick allen is what year? <|assistant|> SELECT "year" FROM "western_league" WHERE "manager"='marty berghammer / nick allen';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "western_league" ( "year" real, "league" text, "class" text, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: Manager of lyman lamb / marty berghammer is in what league? <|assistant|> SELECT "league" FROM "western_league" WHERE "manager"='lyman lamb / marty berghammer';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "western_league" ( "year" real, "league" text, "class" text, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: Manager of marty berghammer, and a Finish of 1st involved what lowest year? <|assistant|> SELECT MIN("year") FROM "western_league" WHERE "manager"='marty berghammer' AND "finish"='1st';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "western_league" ( "year" real, "league" text, "class" text, "record" text, "finish" text, "manager" text, "playoffs" text ); Question: Playoffs of league champs, and a Record of 77-63 is in what league? <|assistant|> SELECT "league" FROM "western_league" WHERE "playoffs"='league champs' AND "record"='77-63';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "career_w_l" text ); Question: Name the 2005 with 2007 of sf <|assistant|> SELECT "2005" FROM "doubles" WHERE "2007"='sf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "career_w_l" text ); Question: Name the 2006 with 2008 of 1r and 2004 of 1r <|assistant|> SELECT "2006" FROM "doubles" WHERE "2008"='1r' AND "2004"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "career_w_l" text ); Question: Name the 2011 with 2002 of 1r and 2009 of a <|assistant|> SELECT "2011" FROM "doubles" WHERE "2002"='1r' AND "2009"='a';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "career_w_l" text ); Question: Name the 1999 with 2011 of 2r <|assistant|> SELECT "1999" FROM "doubles" WHERE "2011"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "career_w_l" text ); Question: Name the 2008 with 1998 of a and 2002 of 1r with 2004 of 2r <|assistant|> SELECT "2008" FROM "doubles" WHERE "1998"='a' AND "2002"='1r' AND "2004"='2r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles" ( "tournament" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "career_w_l" text ); Question: Name the 2001 with 2007 of sf <|assistant|> SELECT "2001" FROM "doubles" WHERE "2007"='sf';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Which AAA class has Fort Bend Dulles as a Class AAAAA? <|assistant|> SELECT "class_aaa" FROM "individual" WHERE "class_aaaaa"='fort bend dulles';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: Which school year was the Class AAA dalhart and the class AAAAA edinburg? <|assistant|> SELECT "school_year" FROM "individual" WHERE "class_aaa"='dalhart' AND "class_aaaaa"='edinburg';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: For what Class A is the school year 1987-88? <|assistant|> SELECT "class_a" FROM "individual" WHERE "school_year"='1987-88';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: What is the Class AAAAA when Class AA is Tuscola Jim Ned and Class AAA Snyder? <|assistant|> SELECT "class_aaaaa" FROM "individual" WHERE "class_aa"='tuscola jim ned' AND "class_aaa"='snyder';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "individual" ( "school_year" text, "class_a" text, "class_aa" text, "class_aaa" text, "class_aaaa" text, "class_aaaaa" text ); Question: What is the Class AAAAA when the Class AAA is Gonzales? <|assistant|> SELECT "class_aaaa" FROM "individual" WHERE "class_aaa"='gonzales';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which team scored less than 35 points? <|assistant|> SELECT "team" FROM "campeonato_brasileiro_s_rie_b" WHERE "points"<35;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Position has a Team of criciΓΊma, and a Drawn larger than 8? <|assistant|> SELECT AVG("position") FROM "campeonato_brasileiro_s_rie_b" WHERE "team"='criciΓΊma' AND "drawn">8;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Drawn has Points smaller than 46, and a Position smaller than 20, and a Lost smaller than 19, and an Against of 56? <|assistant|> SELECT "drawn" FROM "campeonato_brasileiro_s_rie_b" WHERE "points"<46 AND "position"<20 AND "lost"<19 AND "against"=56;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "campeonato_brasileiro_s_rie_b" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text ); Question: Which Played has a Lost larger than 14, and a Drawn of 10, and Points larger than 46? <|assistant|> SELECT AVG("played") FROM "campeonato_brasileiro_s_rie_b" WHERE "lost">14 AND "drawn"=10 AND "points">46;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "harrachov" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "points" real, "overall_wc_points_rank" text ); Question: What's the name of a Rank 3 with a 1st (m) smaller than 199.5? <|assistant|> SELECT "name" FROM "harrachov" WHERE "1st_m"<199.5 AND "rank"=3;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "harrachov" ( "rank" real, "name" text, "nationality" text, "1st_m" real, "points" real, "overall_wc_points_rank" text ); Question: What's the Overall WC points (Rank) for Rank 2? <|assistant|> SELECT "overall_wc_points_rank" FROM "harrachov" WHERE "rank"=2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: What score has devin brown (24) as the leading scorer? <|assistant|> SELECT "score" FROM "january" WHERE "leading_scorer"='devin brown (24)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: Which height, in meters, has 36 floors? <|assistant|> SELECT "height_ft_m" FROM "timeline_of_tallest_buildings" WHERE "floors"=36;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: Which Floors is the highest one that has a Name of one indiana square? <|assistant|> SELECT MAX("floors") FROM "timeline_of_tallest_buildings" WHERE "name"='one indiana square';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); Question: How tall is the Street address of 07.0 200 east washington street? <|assistant|> SELECT "height_ft_m" FROM "timeline_of_tallest_buildings" WHERE "street_address"='07.0 200 east washington street';<|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 was the date of the game where the indians record was 37-44? <|assistant|> SELECT "date" FROM "game_log" WHERE "record"='37-44';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "museums_with_paleontology_holdings" ( "name" text, "town_city" text, "region" text, "on_dinosaur_trail" text, "education_programs_guided_tours" text, "associated_field_digs" text ); Question: What city is Garfield County Museum located in? <|assistant|> SELECT "town_city" FROM "museums_with_paleontology_holdings" WHERE "name"='garfield county museum';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "museums_with_paleontology_holdings" ( "name" text, "town_city" text, "region" text, "on_dinosaur_trail" text, "education_programs_guided_tours" text, "associated_field_digs" text ); Question: Is the Rudyard Depot Museum on the Dinosaur Trail? <|assistant|> SELECT "on_dinosaur_trail" FROM "museums_with_paleontology_holdings" WHERE "name"='rudyard depot museum';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "museums_with_paleontology_holdings" ( "name" text, "town_city" text, "region" text, "on_dinosaur_trail" text, "education_programs_guided_tours" text, "associated_field_digs" text ); Question: What is the name of the museum located in Malta with no associated field digs? <|assistant|> SELECT "name" FROM "museums_with_paleontology_holdings" WHERE "associated_field_digs"='no' AND "town_city"='malta';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "museums_with_paleontology_holdings" ( "name" text, "town_city" text, "region" text, "on_dinosaur_trail" text, "education_programs_guided_tours" text, "associated_field_digs" text ); Question: What is the museum name located in Rudyard? <|assistant|> SELECT "name" FROM "museums_with_paleontology_holdings" WHERE "town_city"='rudyard';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "museums_with_paleontology_holdings" ( "name" text, "town_city" text, "region" text, "on_dinosaur_trail" text, "education_programs_guided_tours" text, "associated_field_digs" text ); Question: What is the region that the Blaine County Museum is located in? <|assistant|> SELECT "region" FROM "museums_with_paleontology_holdings" WHERE "name"='blaine county museum';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_6_2_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What Tournament had a Score of 6–3, 2–6, 6–3? <|assistant|> SELECT "tournament" FROM "doubles_6_2_4" WHERE "score"='6–3, 2–6, 6–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_6_2_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What Partner had a Score of 6–3, 2–6, 6–3? <|assistant|> SELECT "partner" FROM "doubles_6_2_4" WHERE "score"='6–3, 2–6, 6–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_6_2_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: Who were the Opponents in the match on a Hard Surface with Catherine Suire as Partner and Outcome of runner-up? <|assistant|> SELECT "opponents" FROM "doubles_6_2_4" WHERE "outcome"='runner-up' AND "surface"='hard' AND "partner"='catherine suire';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the visiting team when the record was 6–12–5–1? <|assistant|> SELECT "visitor" FROM "game_log" WHERE "record"='6–12–5–1';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); Question: Who was the home team when the record was 21–45–8–5? <|assistant|> SELECT "home" FROM "game_log" WHERE "record"='21–45–8–5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pointer_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text ); Question: Which of the attributes has is cancelable and an answer of yes for bubbles? <|assistant|> SELECT "attribute" FROM "pointer_events" WHERE "cancelable"='yes' AND "bubbles"='yes';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pointer_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text ); Question: Which bubbles has an atribute of onlostpointercapture? <|assistant|> SELECT "bubbles" FROM "pointer_events" WHERE "attribute"='onlostpointercapture';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pointer_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text ); Question: For the attribute of onpointerout, what is the cancelable? <|assistant|> SELECT "cancelable" FROM "pointer_events" WHERE "attribute"='onpointerout';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "pointer_events" ( "category" text, "type" text, "attribute" text, "bubbles" text, "cancelable" text ); Question: Which bubble have a cancelable of yes and an attribute of onpointerdown? <|assistant|> SELECT "bubbles" FROM "pointer_events" WHERE "cancelable"='yes' AND "attribute"='onpointerdown';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What's the highest grid of Ronnie Bremer, who had more than 18 points? <|assistant|> SELECT MAX("grid") FROM "race" WHERE "driver"='ronnie bremer' AND "points">18;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "team" text, "laps" real, "time_retired" text, "grid" real, "points" real ); Question: What are the most points Lap 70 had with a grid larger than 16? <|assistant|> SELECT MAX("points") FROM "race" WHERE "laps"=70 AND "grid">16;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "track" text, "city" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the name of the track in Holland? <|assistant|> SELECT "track" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "city"='holland';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "track" text, "city" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the track in Washington state? <|assistant|> SELECT "track" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "state"='washington';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "track" text, "city" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the city the track of manzanita speedway is in? <|assistant|> SELECT "city" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "track"='manzanita speedway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "track" text, "city" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the surface of the track at the indianapolis speedrome? <|assistant|> SELECT "surface" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "track"='indianapolis speedrome';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "track" text, "city" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What is the surface for the riverhead raceway? <|assistant|> SELECT "surface" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "track"='riverhead raceway';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_auto_racing_tracks_in_the_united" ( "track" text, "city" text, "state" text, "opened_closing_date_if_defunct" text, "surface" text, "length" text ); Question: What city is the indianapolis speedrome in? <|assistant|> SELECT "city" FROM "list_of_auto_racing_tracks_in_the_united" WHERE "track"='indianapolis speedrome';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "common_trihalomethanes_ordered_by_molecu" ( "molecular_formula" text, "iupac_name" text, "cas_registry_number" text, "common_name" text, "other_names" text ); Question: What is the IUPAC name for chloroform? <|assistant|> SELECT "iupac_name" FROM "common_trihalomethanes_ordered_by_molecu" WHERE "common_name"='chloroform';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "source" text, "date" text, "fidesz" text, "mszp" text, "szdsz" text, "jobbik" text, "others" text ); Question: What is the SZDSZ percentage with an MSZP of 25% on 25/2/2009? <|assistant|> SELECT "szdsz" FROM "opinion_polls" WHERE "mszp"='25%' AND "date"='25/2/2009';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "source" text, "date" text, "fidesz" text, "mszp" text, "szdsz" text, "jobbik" text, "others" text ); Question: What percentage of others have an SZDSZ of 4% and a Fidesz of 60%? <|assistant|> SELECT "others" FROM "opinion_polls" WHERE "szdsz"='4%' AND "fidesz"='60%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "source" text, "date" text, "fidesz" text, "mszp" text, "szdsz" text, "jobbik" text, "others" text ); Question: What is the percentage of others with a Fidesz of 62% and a Jobbik of 4%? <|assistant|> SELECT "others" FROM "opinion_polls" WHERE "fidesz"='62%' AND "jobbik"='4%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "source" text, "date" text, "fidesz" text, "mszp" text, "szdsz" text, "jobbik" text, "others" text ); Question: On what date do others have 5% with an SZDSZ of 5%? <|assistant|> SELECT "date" FROM "opinion_polls" WHERE "others"='5%' AND "szdsz"='5%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "source" text, "date" text, "fidesz" text, "mszp" text, "szdsz" text, "jobbik" text, "others" text ); Question: What is the SZDSZ percentage with a Jobbik of 5% and a Fidesz of 68%? <|assistant|> SELECT "szdsz" FROM "opinion_polls" WHERE "jobbik"='5%' AND "fidesz"='68%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "opinion_polls" ( "source" text, "date" text, "fidesz" text, "mszp" text, "szdsz" text, "jobbik" text, "others" text ); Question: What is the Jobbik percentage with a Fidesz of 61% and others of 2%? <|assistant|> SELECT "jobbik" FROM "opinion_polls" WHERE "fidesz"='61%' AND "others"='2%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_province" ( "province" text, "kibaki" text, "raila" text, "wamalwa" text, "ngilu" text, "others" text, "registered_voters" text, "turnout_pct" text ); Question: What's listed for the Turnout % with a Ngilu of 3,429? <|assistant|> SELECT "turnout_pct" FROM "by_province" WHERE "ngilu"='3,429';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_province" ( "province" text, "kibaki" text, "raila" text, "wamalwa" text, "ngilu" text, "others" text, "registered_voters" text, "turnout_pct" text ); Question: What's listed for the Turnout % with a Raila of 519,180? <|assistant|> SELECT "turnout_pct" FROM "by_province" WHERE "raila"='519,180';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_province" ( "province" text, "kibaki" text, "raila" text, "wamalwa" text, "ngilu" text, "others" text, "registered_voters" text, "turnout_pct" text ); Question: What's listed for the Turnout % with a Ngilu of 30,535? <|assistant|> SELECT "turnout_pct" FROM "by_province" WHERE "ngilu"='30,535';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_province" ( "province" text, "kibaki" text, "raila" text, "wamalwa" text, "ngilu" text, "others" text, "registered_voters" text, "turnout_pct" text ); Question: What's listed for the Registered Voters with a Ngilu of 3,429? <|assistant|> SELECT "registered_voters" FROM "by_province" WHERE "ngilu"='3,429';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_province" ( "province" text, "kibaki" text, "raila" text, "wamalwa" text, "ngilu" text, "others" text, "registered_voters" text, "turnout_pct" text ); Question: What is listed for the Province with a Wamalwa of 4,431? <|assistant|> SELECT "province" FROM "by_province" WHERE "wamalwa"='4,431';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_province" ( "province" text, "kibaki" text, "raila" text, "wamalwa" text, "ngilu" text, "others" text, "registered_voters" text, "turnout_pct" text ); Question: What's listed for the Wamalwa that has a Turnout % of 55.9%? <|assistant|> SELECT "wamalwa" FROM "by_province" WHERE "turnout_pct"='55.9%';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_type" ( "rocket" text, "country" text, "family" text, "launches" real, "successes" real, "failures" real, "partial_failures" real ); Question: What were the average partial failures when the rocket was Ariane 5? <|assistant|> SELECT AVG("partial_failures") FROM "by_type" WHERE "rocket"='ariane 5';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_type" ( "rocket" text, "country" text, "family" text, "launches" real, "successes" real, "failures" real, "partial_failures" real ); Question: What are average launches with 0 failures, rocket of Soyuz, and less than 12 successes? <|assistant|> SELECT AVG("launches") FROM "by_type" WHERE "failures"=0 AND "rocket"='soyuz' AND "successes"<12;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_type" ( "rocket" text, "country" text, "family" text, "launches" real, "successes" real, "failures" real, "partial_failures" real ); Question: What is the sum of launches with Long March 3 and 0 failures? <|assistant|> SELECT SUM("launches") FROM "by_type" WHERE "rocket"='long march 3' AND "failures">0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_type" ( "rocket" text, "country" text, "family" text, "launches" real, "successes" real, "failures" real, "partial_failures" real ); Question: What is the least amount of failures with 1 launch and 0 partial failures? <|assistant|> SELECT MIN("failures") FROM "by_type" WHERE "launches"=1 AND "partial_failures"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "by_type" ( "rocket" text, "country" text, "family" text, "launches" real, "successes" real, "failures" real, "partial_failures" real ); Question: What were the average launches for Ariane 5 and 0 partial failures? <|assistant|> SELECT AVG("launches") FROM "by_type" WHERE "rocket"='ariane 5' AND "partial_failures"<0;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_01_season_as_a_four_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question: What was the race of the jockey in na group in 4th place? <|assistant|> SELECT "race" FROM "2000_01_season_as_a_four_year_old" WHERE "group"='na' AND "result"='4th';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2000_01_season_as_a_four_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); Question: How far did p. carbery run to get 2nd? <|assistant|> SELECT "distance" FROM "2000_01_season_as_a_four_year_old" WHERE "jockey"='p. carbery' AND "result"='2nd';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "trim" text, "engine" text, "displacement" text, "power" text, "torque" text, "transmission" text, "fuel_mileage_latest_epa_mpg_us" text ); Question: What is the Removal that has a Trim of xe (2009)? <|assistant|> SELECT "transmission" FROM "engines" WHERE "trim"='xe (2009)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "engines" ( "trim" text, "engine" text, "displacement" text, "power" text, "torque" text, "transmission" text, "fuel_mileage_latest_epa_mpg_us" text ); Question: What is the Torque that has a Power of hp (kw), and a Trim of xr (2009)? Question 6 <|assistant|> SELECT "torque" FROM "engines" WHERE "power"='hp (kw)' AND "trim"='xr (2009)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text ); Question: Which Round is the lowest one that has a College/Junior/Club Team (League) of oshawa generals (oha), and a Player of bob kelly? <|assistant|> SELECT MIN("round") FROM "draft_picks" WHERE "college_junior_club_team_league"='oshawa generals (oha)' AND "player"='bob kelly';<|endoftext|>