text
stringlengths 411
1.74k
|
---|
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "Name the rank for 151 Laps". [/INST] SELECT "rank" FROM "indy_500_results" WHERE "laps"=151;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "The qual of totals took place during what year?". [/INST] SELECT "year" FROM "indy_500_results" WHERE "qual"='totals';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What year did the finish of 15 happen in?". [/INST] SELECT "year" FROM "indy_500_results" WHERE "finish"='15';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What's the Finish rank of 31?". [/INST] SELECT "finish" FROM "indy_500_results" WHERE "rank"='31';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );. Question: "What year did the rank of 31 happen in?". [/INST] SELECT "year" FROM "indy_500_results" WHERE "rank"='31';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "Which item resulted in a score of 4-1?". [/INST] SELECT "score" FROM "international_goals" WHERE "result"='4-1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "Which item has a score of 5-1?". [/INST] SELECT "score" FROM "international_goals" WHERE "result"='5-1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "competition" text );. Question: "Which competition had a 4-1 result, and a score of 4-1?". [/INST] SELECT "competition" FROM "international_goals" WHERE "result"='4-1' AND "score"='4-1';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );. Question: "Name the 2009 ffor 2010 of 1r and 2012 of a and 2008 of 2r". [/INST] SELECT "2009" FROM "doubles_performance_timeline" WHERE "2010"='1r' AND "2012"='a' AND "2008"='2r';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );. Question: "Name the 2011 for 2012 of a and 2010 of 1r with 2008 of 2r". [/INST] SELECT "2011" FROM "doubles_performance_timeline" WHERE "2012"='a' AND "2010"='1r' AND "2008"='2r';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );. Question: "Name the 2010 for tournament of us open". [/INST] SELECT "2010" FROM "doubles_performance_timeline" WHERE "tournament"='us open';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );. Question: "Name the 2010 for 2011 of a and 2008 of 1r". [/INST] SELECT "2010" FROM "doubles_performance_timeline" WHERE "2011"='a' AND "2008"='1r';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );. Question: "Name the 2011 when 2010 is 2r". [/INST] SELECT "2011" FROM "doubles_performance_timeline" WHERE "2010"='2r';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );. Question: "Name the tournament when it has 2011 of 2r". [/INST] SELECT "tournament" FROM "doubles_performance_timeline" WHERE "2011"='2r';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What was the average attendance for games with a loss of papelbon (0β1)?". [/INST] SELECT AVG("attendance") FROM "game_log" WHERE "loss"='papelbon (0β1)';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "When the team had their record of 16β14, what was the total attendance?". [/INST] SELECT COUNT("attendance") FROM "game_log" WHERE "record"='16β14';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "Which party with an 1835 election has 1st member William Denison?". [/INST] SELECT "2nd_party" FROM "members_of_parliament" WHERE "1st_member"='william denison' AND "election"='1835';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "Which party's 1st member is William Denison in the election of 1832?". [/INST] SELECT "1st_party" FROM "members_of_parliament" WHERE "1st_member"='william denison' AND "election"='1832';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );. Question: "Which party's 1st member is John Ivatt Briscoe in an election in 1857?". [/INST] SELECT "1st_party" FROM "members_of_parliament" WHERE "1st_member"='john ivatt briscoe' AND "election"='1857';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text );. Question: "Who was in a with opponent St. Johnstone?". [/INST] SELECT "scorers" FROM "scottish_cup" WHERE "venue"='a' AND "opponent"='st. johnstone';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text );. Question: "What venue was on 27 May 2000?". [/INST] SELECT "venue" FROM "scottish_cup" WHERE "date"='27 may 2000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, "scorers" text );. Question: "Who was on 12 March 2000?". [/INST] SELECT "scorers" FROM "scottish_cup" WHERE "date"='12 march 2000';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2002_03" text, "2004_05" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "Name the 2008/09 with 2004/05 of ranking tournaments". [/INST] SELECT "2008_09" FROM "performance_and_rankings_timeline" WHERE "2004_05"='ranking tournaments';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2002_03" text, "2004_05" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "Name the 2010/11 with 2004/05 of not held and 2011/12 of non-ranking". [/INST] SELECT "2010_11" FROM "performance_and_rankings_timeline" WHERE "2004_05"='not held' AND "2011_12"='non-ranking';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2002_03" text, "2004_05" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "Name the 2006/07 with 2011/12 of lq and 2010/11 of lq with 2002/03 of lq". [/INST] SELECT "2006_07" FROM "performance_and_rankings_timeline" WHERE "2011_12"='lq' AND "2010_11"='lq' AND "2002_03"='lq';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2002_03" text, "2004_05" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "Name the 2011/12 with 2008/09 of not held with 2010/11 of not held". [/INST] SELECT "2011_12" FROM "performance_and_rankings_timeline" WHERE "2008_09"='not held' AND "2010_11"='not held';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2002_03" text, "2004_05" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "Name the 2009/10 with 2011/12 of lq and 2008/09 of not held". [/INST] SELECT "2009_10" FROM "performance_and_rankings_timeline" WHERE "2011_12"='lq' AND "2008_09"='not held';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "performance_and_rankings_timeline" ( "2002_03" text, "2004_05" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text );. Question: "Name the 2009/10 with 2011/12 of a". [/INST] SELECT "2009_10" FROM "performance_and_rankings_timeline" WHERE "2011_12"='a';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_career_goals" ( "rank" text, "goals" text, "player" text, "club_clubs" text, "career" text );. Question: "What is the rank of player Jason Dunstall?". [/INST] SELECT "rank" FROM "most_career_goals" WHERE "player"='jason dunstall';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_career_goals" ( "rank" text, "goals" text, "player" text, "club_clubs" text, "career" text );. Question: "Which player has 1299 goals?". [/INST] SELECT "player" FROM "most_career_goals" WHERE "goals"='1299';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "most_career_goals" ( "rank" text, "goals" text, "player" text, "club_clubs" text, "career" text );. Question: "In what club(s) does Tony Lockett play?". [/INST] SELECT "club_clubs" FROM "most_career_goals" WHERE "player"='tony lockett';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who won the Men's singles in the year that Ian Maconachie Marian Horsley won the Mixed doubles?". [/INST] SELECT "men_s_singles" FROM "past_winners" WHERE "mixed_doubles"='ian maconachie marian horsley';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who won the Women's singles, in the year that Raymond M. White won the Men's singles and that W. Hamilton Ian Maconachie won the Men's doubles?". [/INST] SELECT "women_s_singles" FROM "past_winners" WHERE "men_s_singles"='raymond m. white' AND "men_s_doubles"='w. hamilton ian maconachie';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who won the Women's doubles in the year that Billy Gilliland Karen Puttick won the Mixed doubles?". [/INST] SELECT "women_s_doubles" FROM "past_winners" WHERE "mixed_doubles"='billy gilliland karen puttick';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who won the Women's doubles in the year that David Eddy Eddy Sutton won the Men's doubles, and that David Eddy won the Men's singles?". [/INST] SELECT "women_s_doubles" FROM "past_winners" WHERE "men_s_doubles"='david eddy eddy sutton' AND "men_s_singles"='david eddy';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "past_winners" ( "year" text, "men_s_singles" text, "women_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text );. Question: "Who won the Women's doubles in the year that Jesper Knudsen Nettie Nielsen won the Mixed doubles?". [/INST] SELECT "women_s_doubles" FROM "past_winners" WHERE "mixed_doubles"='jesper knudsen nettie nielsen';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text );. Question: "Which manager has Manchester City as the team?". [/INST] SELECT "manager" FROM "personnel_and_kits" WHERE "team"='manchester city';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text );. Question: "Which manager has sheffield wednesday as the team?". [/INST] SELECT "manager" FROM "personnel_and_kits" WHERE "team"='sheffield wednesday';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text );. Question: "Which team has george graham as the manager?". [/INST] SELECT "team" FROM "personnel_and_kits" WHERE "manager"='george graham';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text );. Question: "What is the kit manufacturer that has billy bonds as the manager?". [/INST] SELECT "kit_manufacturer" FROM "personnel_and_kits" WHERE "manager"='billy bonds';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text );. Question: "Which captain has billy bonds as the manager?". [/INST] SELECT "captain" FROM "personnel_and_kits" WHERE "manager"='billy bonds';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text );. Question: "Which captain has howard wilkinson as the manager?". [/INST] SELECT "captain" FROM "personnel_and_kits" WHERE "manager"='howard wilkinson';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What was the loss of the Brewers game when the record was 46-48?". [/INST] SELECT "loss" FROM "game_log" WHERE "record"='46-48';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );. Question: "What was the record at the game that had a score of 7-10?". [/INST] SELECT "record" FROM "game_log" WHERE "score"='7-10';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real );. Question: "Which chassis is more recent than 1972 and has more than 0 Pts. ?". [/INST] SELECT "chassis" FROM "complete_formula_one_results" WHERE "year">1972 AND "pts">0;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "pts" real );. Question: "Which engine from 1973 has a Brabham bt37 chassis?". [/INST] SELECT "engine" FROM "complete_formula_one_results" WHERE "year"=1973 AND "chassis"='brabham bt37';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real );. Question: "What score to highest to par did Mike Weir achieve?". [/INST] SELECT MAX("to_par") FROM "third_round" WHERE "player"='mike weir';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real );. Question: "Who had a score of 70-73-69=212?". [/INST] SELECT "player" FROM "third_round" WHERE "score"='70-73-69=212';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real );. Question: "What player was place of t1 in To Par and had a score of 70-73-69=212?". [/INST] SELECT "to_par" FROM "third_round" WHERE "place"='t1' AND "score"='70-73-69=212';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real );. Question: "What score to par did Mike Weir have?". [/INST] SELECT "to_par" FROM "third_round" WHERE "player"='mike weir';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What place was the scorer of 67-74-73=214?". [/INST] SELECT "place" FROM "third_round" WHERE "score"='67-74-73=214';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What country does Rocco Mediate play for?". [/INST] SELECT "country" FROM "third_round" WHERE "player"='rocco mediate';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What is Rocco Mediate's par?". [/INST] SELECT "to_par" FROM "third_round" WHERE "player"='rocco mediate';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What country is Chad Campbell from?". [/INST] SELECT "country" FROM "third_round" WHERE "player"='chad campbell';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "What was the score for Spain?". [/INST] SELECT "score" FROM "third_round" WHERE "country"='spain';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );. Question: "Where is Fred Couples from?". [/INST] SELECT "country" FROM "third_round" WHERE "player"='fred couples';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "record" text );. Question: "what's the record on july 10?". [/INST] SELECT "record" FROM "game_log" WHERE "date"='july 10';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "history" ( "s_no" real, "name_of_kingdom" text, "name_of_king" text, "no_of_villages" real, "capital" text );. Question: "Which kingdom has Suin as its capital?". [/INST] SELECT "name_of_kingdom" FROM "history" WHERE "capital"='suin';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "What week did the September 9, 1967 game occur on?". [/INST] SELECT MIN("week") FROM "season_schedule" WHERE "date"='september 9, 1967';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "What was the date of the game after week 5 against the Houston Oilers?". [/INST] SELECT "date" FROM "season_schedule" WHERE "week">5 AND "opponent"='houston oilers';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "Which week was the game on December 14, 1967?". [/INST] SELECT "week" FROM "season_schedule" WHERE "date"='december 14, 1967';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );. Question: "Who was the opponent after week 9 with an attendance of 44,020?". [/INST] SELECT "opponent" FROM "season_schedule" WHERE "week">9 AND "attendance"='44,020';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What team played against Al-Ismaily (team 1)?". [/INST] SELECT "team_2" FROM "second_round" WHERE "team_1"='al-ismaily';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What was the 2nd leg result in the match that scored a 2-0 in the 1st leg?". [/INST] SELECT "2nd_leg" FROM "second_round" WHERE "1st_leg"='2-0';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "When Kabwe Warriors (team 1) played, what was the result of the 1st leg?". [/INST] SELECT "1st_leg" FROM "second_round" WHERE "team_1"='kabwe warriors';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "second_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );. Question: "What team played against Hafia FC (team 2)?". [/INST] SELECT "team_1" FROM "second_round" WHERE "team_2"='hafia fc';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" text );. Question: "For the game that was played on week 2, what is the record?". [/INST] SELECT "record" FROM "schedule" WHERE "week"=2;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" text );. Question: "What was the result of the game that was played on week 15?". [/INST] SELECT "result" FROM "schedule" WHERE "week"=15;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics_and_awards" ( "year" text, "carries" real, "rushing_yards" real, "average" real, "touchdowns" real, "points" real );. Question: "How many carries have an average under 8.7 and touchdowns of 72?". [/INST] SELECT COUNT("carries") FROM "statistics_and_awards" WHERE "average"<8.7 AND "touchdowns"=72;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics_and_awards" ( "year" text, "carries" real, "rushing_yards" real, "average" real, "touchdowns" real, "points" real );. Question: "What is the average number of carries that have more than 72 touchdowns?". [/INST] SELECT AVG("carries") FROM "statistics_and_awards" WHERE "touchdowns">72;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics_and_awards" ( "year" text, "carries" real, "rushing_yards" real, "average" real, "touchdowns" real, "points" real );. Question: "What is the most number of touchdowns that have fewer than 105 points, averages over 4.7, and fewer than 487 rushing yards?". [/INST] SELECT MAX("touchdowns") FROM "statistics_and_awards" WHERE "points"<105 AND "average">4.7 AND "rushing_yards"<487;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics_and_awards" ( "year" text, "carries" real, "rushing_yards" real, "average" real, "touchdowns" real, "points" real );. Question: "What is the sum of carries associated with 80 points and fewer than 16 touchdowns?". [/INST] SELECT SUM("carries") FROM "statistics_and_awards" WHERE "points"=80 AND "touchdowns"<16;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "statistics_and_awards" ( "year" text, "carries" real, "rushing_yards" real, "average" real, "touchdowns" real, "points" real );. Question: "What is the total number of rushing yards associated with averages over 8.4 and fewer than 54 carries?". [/INST] SELECT COUNT("rushing_yards") FROM "statistics_and_awards" WHERE "average">8.4 AND "carries"<54;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "Which record is dated April 8?". [/INST] SELECT "record" FROM "game_log" WHERE "date"='april 8';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What is the score for the game that has an attendance of 5,298?". [/INST] SELECT "score" FROM "game_log" WHERE "attendance"='5,298';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What was the date for the game that had an attendance of 10,101?". [/INST] SELECT "date" FROM "game_log" WHERE "attendance"='10,101';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );. Question: "What is the record for the game with an attendance of 11,141?". [/INST] SELECT "record" FROM "game_log" WHERE "attendance"='11,141';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_time_record" ( "season" text, "team_name" text, "games" real, "losses" real, "points" real );. Question: "What's the lowest number of points with fewer than 8 losses and fewer than 24 games for the vancouver burrards?". [/INST] SELECT MIN("points") FROM "all_time_record" WHERE "losses"<8 AND "team_name"='vancouver burrards' AND "games"<24;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_time_record" ( "season" text, "team_name" text, "games" real, "losses" real, "points" real );. Question: "What's the total number of points when the vancouver carlings have fewer than 12 losses and more than 32 games?". [/INST] SELECT COUNT("points") FROM "all_time_record" WHERE "losses"<12 AND "team_name"='vancouver carlings' AND "games">32;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_time_record" ( "season" text, "team_name" text, "games" real, "losses" real, "points" real );. Question: "What's the total number of points when the vancouver burrards have fewer than 9 losses and more than 24 games?". [/INST] SELECT COUNT("points") FROM "all_time_record" WHERE "losses"<9 AND "games">24 AND "team_name"='vancouver burrards';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_time_record" ( "season" text, "team_name" text, "games" real, "losses" real, "points" real );. Question: "What's the sum of points for the 1963 season when there are more than 30 games?". [/INST] SELECT SUM("points") FROM "all_time_record" WHERE "season"='1963' AND "games">30;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_time_record" ( "season" text, "team_name" text, "games" real, "losses" real, "points" real );. Question: "What's the total number of games with more than 20 points for the 1976 season?". [/INST] SELECT COUNT("games") FROM "all_time_record" WHERE "season"='1976' AND "points">20;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "all_time_record" ( "season" text, "team_name" text, "games" real, "losses" real, "points" real );. Question: "What's the total losses for the vancouver burrards in the 1947 season with fewer than 24 games?". [/INST] SELECT COUNT("losses") FROM "all_time_record" WHERE "team_name"='vancouver burrards' AND "season"='1947' AND "games"<24;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "How many tries against did the club with 1 drawn and 41 points have?". [/INST] SELECT "tries_against" FROM "2008_2009_table" WHERE "drawn"='1' AND "points"='41';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "Which club has 275 points?". [/INST] SELECT "club" FROM "2008_2009_table" WHERE "points_for"='275';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "How many points against did the club with a losing bonus of 3 and 84 tries have?". [/INST] SELECT "points_against" FROM "2008_2009_table" WHERE "losing_bonus"='3' AND "tries_for"='84';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "Which club has 40 tries for?". [/INST] SELECT "club" FROM "2008_2009_table" WHERE "tries_for"='40';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "How many tries did the club with a try bonus of correct as of 2 June 2009 have?". [/INST] SELECT "tries_for" FROM "2008_2009_table" WHERE "try_bonus"='correct as of 2 june 2009';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text );. Question: "How many tries did the club Croesyceiliog rfc have?". [/INST] SELECT "tries_for" FROM "2008_2009_table" WHERE "club"='croesyceiliog rfc';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_48" text, "d_47" text, "d_46" text, "d_45_o" text, "d_44_o" text, "d_43" text, "d_42" text, "d_41" text );. Question: "What is the value of D 42 β, when the value of D 45 O is d 32 β?". [/INST] SELECT "d_42" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_45_o"='d 32 β';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_48" text, "d_47" text, "d_46" text, "d_45_o" text, "d_44_o" text, "d_43" text, "d_42" text, "d_41" text );. Question: "What is the value of D 45 O when the value of D 44 O is β majority?". [/INST] SELECT "d_45_o" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_44_o"='β majority';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_48" text, "d_47" text, "d_46" text, "d_45_o" text, "d_44_o" text, "d_43" text, "d_42" text, "d_41" text );. Question: "What is the value of D 43 β when the value of D 42 β is d 42 β?". [/INST] SELECT "d_43" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_42"='d 42 β';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_48" text, "d_47" text, "d_46" text, "d_45_o" text, "d_44_o" text, "d_43" text, "d_42" text, "d_41" text );. Question: "What is the value of D 47 + when the value of D 44 O is r 24?". [/INST] SELECT "d_47" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_44_o"='r 24';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_48" text, "d_47" text, "d_46" text, "d_45_o" text, "d_44_o" text, "d_43" text, "d_42" text, "d_41" text );. Question: "What is the value of D 46 +, when the value of D 42 β is r 2?". [/INST] SELECT "d_46" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_42"='r 2';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_48" text, "d_47" text, "d_46" text, "d_45_o" text, "d_44_o" text, "d_43" text, "d_42" text, "d_41" text );. Question: "What is the value of D 45 O, when the value of D 41 β is r 41 β?". [/INST] SELECT "d_45_o" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_41"='r 41 β';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "nationalities_of_foreign_born_winners" ( "rank" real, "nation" text, "national_wins" real, "drivers" text, "driver_wins" real );. Question: "What is the average number of wins of drivers from Sweden?". [/INST] SELECT AVG("driver_wins") FROM "nationalities_of_foreign_born_winners" WHERE "nation"='sweden';</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many gold are a rank 1 and larger than 16?". [/INST] SELECT COUNT("gold") FROM "medal_table" WHERE "rank"='1' AND "total">16;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "How many total gold are less than 4?". [/INST] SELECT COUNT("gold") FROM "medal_table" WHERE "total"<4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real );. Question: "What is the total gold that has bronze less than 2, a silver of 1 and total more than 4?". [/INST] SELECT SUM("gold") FROM "medal_table" WHERE "bronze"<2 AND "silver"=1 AND "total">4;</s> |
<s>[INST] <<SYS>> You are an expert in SQL and data analysis. Given the table structure described by the CREATE TABLE statement, write an SQL query that provides the solution to the question. <</SYS>> CREATE TABLE statement: CREATE TABLE "race_record" ( "race" text, "dist_f" real, "course" text, "class" text, "prize_k" real, "odds" text, "runners" real, "placing" real, "margin" text, "time" text, "jockey" text, "trainer" text );. Question: "Name the least runners with dist of 10.5". [/INST] SELECT MIN("runners") FROM "race_record" WHERE "dist_f"=10.5;</s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.