text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_maker" text, "shirt_sponsor" text ); Question: Which kit maker does Aston Villa use? <|assistant|> SELECT "kit_maker" FROM "personnel_and_kits" WHERE "team"='aston villa';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "personnel_and_kits" ( "team" text, "manager" text, "captain" text, "kit_maker" text, "shirt_sponsor" text ); Question: Who captains Portsmouth? <|assistant|> SELECT "captain" FROM "personnel_and_kits" WHERE "team"='portsmouth';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_some_notable_incidents_involving" ( "year" real, "event" text, "location" text, "perpetrator_s" text, "deaths" text ); Question: What bombing happened in Brighton, UK? <|assistant|> SELECT "event" FROM "list_of_some_notable_incidents_involving" WHERE "location"='brighton, uk';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "papa_bouba_diop_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What result had a score of 3–0? <|assistant|> SELECT "result" FROM "papa_bouba_diop_international_goals" WHERE "score"='3–0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "papa_bouba_diop_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: For the venue of suwon world cup stadium , suwon , south korea and a Score of 3–0 what is the result? <|assistant|> SELECT "result" FROM "papa_bouba_diop_international_goals" WHERE "venue"='suwon world cup stadium , suwon , south korea' AND "score"='3–0';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "papa_bouba_diop_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What is the top goal for the result of 2–3? <|assistant|> SELECT MAX("goal") FROM "papa_bouba_diop_international_goals" WHERE "result"='2–3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "event_records" ( "grade" text, "team" text, "town" text, "time" text, "year" real ); Question: When was the time of 12:49:08 first set? <|assistant|> SELECT MIN("year") FROM "event_records" WHERE "time"='12:49:08';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: What was the date when the attendance was 77,918? <|assistant|> SELECT "date" FROM "regular_season" WHERE "attendance"='77,918';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: What was the attendance of the game played in the Georgia Dome? <|assistant|> SELECT "attendance" FROM "regular_season" WHERE "game_site"='georgia dome';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: What was the date when the attendance was 73,529? <|assistant|> SELECT "date" FROM "regular_season" WHERE "attendance"='73,529';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What away team played at Western Oval? <|assistant|> SELECT "away_team" FROM "round_14" WHERE "venue"='western oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What away team scored 18.14 (122)? <|assistant|> SELECT "away_team" FROM "round_14" WHERE "away_team_score"='18.14 (122)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What away team scored 9.15 (69)? <|assistant|> SELECT "away_team" FROM "round_14" WHERE "away_team_score"='9.15 (69)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the smallest crowd when Footscray played at home? <|assistant|> SELECT MIN("crowd") FROM "round_14" WHERE "home_team"='footscray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the away team when the home team scored 9.8 (62)? <|assistant|> SELECT "away_team" FROM "round_14" WHERE "home_team_score"='9.8 (62)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where was the game held when the away team scored 10.12 (72)? <|assistant|> SELECT "venue" FROM "round_11" WHERE "away_team_score"='10.12 (72)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team's score at the game where the away team scored 13.6 (84)? <|assistant|> SELECT "home_team_score" FROM "round_11" WHERE "away_team_score"='13.6 (84)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_11_1_10" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text ); Question: What was the outcome when she partnered with mashona washington? <|assistant|> SELECT "outcome" FROM "doubles_11_1_10" WHERE "partner"='mashona washington';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the listed crowd at junction oval? <|assistant|> SELECT "crowd" FROM "round_9" WHERE "venue"='junction oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the sum of crowd(s) when north melbourne is away? <|assistant|> SELECT SUM("crowd") FROM "round_9" WHERE "away_team"='north melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What day is south melbourne away? <|assistant|> SELECT "date" FROM "round_9" WHERE "away_team"='south melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the away team's score when the home team scored 16.14 (110)? <|assistant|> SELECT "away_team_score" FROM "round_8" WHERE "home_team_score"='16.14 (110)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home team's score when the away team scored 13.14 (92)? <|assistant|> SELECT "home_team_score" FROM "round_8" WHERE "away_team_score"='13.14 (92)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_8" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the home team at the game where the away team scored 10.13 (73) and there was a crowd over 24,119? <|assistant|> SELECT "home_team" FROM "round_8" WHERE "crowd">'24,119' AND "away_team_score"='10.13 (73)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "goals_for_senior_national_team" ( "date" text, "venue" text, "score" text, "result" text, "competition" text ); Question: What was the score of the competition on 23 November 2003? <|assistant|> SELECT "score" FROM "goals_for_senior_national_team" WHERE "date"='23 november 2003';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where did Richmond play as an away team? <|assistant|> SELECT "venue" FROM "round_14" WHERE "away_team"='richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When did South Melbourne play at home? <|assistant|> SELECT "date" FROM "round_14" WHERE "home_team"='south melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces" ( "province" text, "inhabitants" real, "president" text, "party" text, "election" real ); Question: What is the average election for vicenza province with the liga veneta party? <|assistant|> SELECT AVG("election") FROM "provinces" WHERE "party"='liga veneta' AND "province"='vicenza';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces" ( "province" text, "inhabitants" real, "president" text, "party" text, "election" real ); Question: What is the sum of elections in vicenza? <|assistant|> SELECT SUM("election") FROM "provinces" WHERE "province"='vicenza';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "provinces" ( "province" text, "inhabitants" real, "president" text, "party" text, "election" real ); Question: What province has an election after 2009? <|assistant|> SELECT "province" FROM "provinces" WHERE "election">2009;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text ); Question: What format does Japan use? <|assistant|> SELECT "format" FROM "release_details" WHERE "country"='japan';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text ); Question: What date has a catalogue of 540 3622? <|assistant|> SELECT "date" FROM "release_details" WHERE "catalogue"='540 3622';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text ); Question: What format has a catalogue of asw 40362? <|assistant|> SELECT "format" FROM "release_details" WHERE "catalogue"='asw 40362';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_details" ( "country" text, "date" text, "label" text, "format" text, "catalogue" text ); Question: What date has a catalogue of asw 40362? <|assistant|> SELECT "date" FROM "release_details" WHERE "catalogue"='asw 40362';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: On what Date is the Crowd larger than 17,000? <|assistant|> SELECT "date" FROM "round_12" WHERE "crowd">'17,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What Home team has an Away team score of 8.9 (57)? <|assistant|> SELECT "home_team" FROM "round_12" WHERE "away_team_score"='8.9 (57)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the Home team score when the Away team score is 17.16 (118)? <|assistant|> SELECT "home_team_score" FROM "round_12" WHERE "away_team_score"='17.16 (118)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_12" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which Away team has the Home team of Carlton? <|assistant|> SELECT "away_team" FROM "round_12" WHERE "home_team"='carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text ); Question: What was the score of the Jeff Tarango game? <|assistant|> SELECT "score" FROM "doubles_5" WHERE "partner"='jeff tarango';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where did Collingwood play ae the away team? <|assistant|> SELECT "venue" FROM "round_7" WHERE "away_team"='collingwood';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the score when there was more than 27,000 in attendance? <|assistant|> SELECT "home_team_score" FROM "round_7" WHERE "crowd">'27,000';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where did Hawthorn play as the home team? <|assistant|> SELECT "venue" FROM "round_7" WHERE "home_team"='hawthorn';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leading_point_scorers" ( "player" text, "span" text, "start" real, "tries" real, "conv" real, "pens" real, "drop" real ); Question: In 1990-2005 what is the lowest Start with Convs smaller than 2? <|assistant|> SELECT MIN("start") FROM "leading_point_scorers" WHERE "span"='1990-2005' AND "conv"<2;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away team when the score is 6.9 (45)? <|assistant|> SELECT "away_team" FROM "round_14" WHERE "away_team_score"='6.9 (45)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the total of the crowd when the home team is footscray? <|assistant|> SELECT COUNT("crowd") FROM "round_14" WHERE "home_team"='footscray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away team score when the away team is Essendon? <|assistant|> SELECT "away_team_score" FROM "round_14" WHERE "away_team"='essendon';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_14" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the crowd total when the home score is 5.9 (39)? <|assistant|> SELECT "crowd" FROM "round_14" WHERE "home_team_score"='5.9 (39)';<|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" text ); Question: How many weeks ended in a result of L 20-10? <|assistant|> SELECT COUNT("week") FROM "schedule" WHERE "result"='l 20-10';<|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" text ); Question: What was the attendance in week 6? <|assistant|> SELECT "attendance" FROM "schedule" WHERE "week"=6;<|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" text ); Question: Who was the opponent in the game that had an attendance of 60,066? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "attendance"='60,066';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "positional_or_automatic" text, "opponents" text, "suits" text, "material_or_non_material" text, "count_rectified" text ); Question: What is the designation of material or non-material for either positional or automatic with no rectified count and either opponent? <|assistant|> SELECT "material_or_non_material" FROM "classification" WHERE "positional_or_automatic"='either' AND "count_rectified"='no' AND "opponents"='either';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "positional_or_automatic" text, "opponents" text, "suits" text, "material_or_non_material" text, "count_rectified" text ); Question: What is the value for positional opponents with no material or non-material, and 3 suits? <|assistant|> SELECT "opponents" FROM "classification" WHERE "positional_or_automatic"='positional' AND "material_or_non_material"='no' AND "suits"='3';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "positional_or_automatic" text, "opponents" text, "suits" text, "material_or_non_material" text, "count_rectified" text ); Question: Is it material or non-material when there are 2 suits for either opponent? <|assistant|> SELECT "material_or_non_material" FROM "classification" WHERE "suits"='2' AND "opponents"='either';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "positional_or_automatic" text, "opponents" text, "suits" text, "material_or_non_material" text, "count_rectified" text ); Question: Which suits have no material or non-material, either opponent, and are positional? <|assistant|> SELECT "suits" FROM "classification" WHERE "material_or_non_material"='no' AND "opponents"='either' AND "positional_or_automatic"='positional';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classification" ( "positional_or_automatic" text, "opponents" text, "suits" text, "material_or_non_material" text, "count_rectified" text ); Question: Is the count rectified for single opponents, either positional or automatic, and no material or non-material? <|assistant|> SELECT "count_rectified" FROM "classification" WHERE "opponents"='single' AND "positional_or_automatic"='either' AND "material_or_non_material"='no';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finalised_league_table" ( "team" text, "game" real, "draw" real, "loss" real, "goal_gain" real, "goal_loss" real, "goal_diff" real, "point" real ); Question: How many points did Happy Valley score before game 14? <|assistant|> SELECT COUNT("point") FROM "finalised_league_table" WHERE "team"='happy valley' AND "game"<14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finalised_league_table" ( "team" text, "game" real, "draw" real, "loss" real, "goal_gain" real, "goal_loss" real, "goal_diff" real, "point" real ); Question: How many points were there in the game with a goal loss of 16 and a goal diff less than 26 after game 14? <|assistant|> SELECT COUNT("point") FROM "finalised_league_table" WHERE "goal_loss"=16 AND "goal_diff"<26 AND "game">14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finalised_league_table" ( "team" text, "game" real, "draw" real, "loss" real, "goal_gain" real, "goal_loss" real, "goal_diff" real, "point" real ); Question: How many draws did the game after game 14 with goal gain 17 have? <|assistant|> SELECT MAX("draw") FROM "finalised_league_table" WHERE "goal_gain"=17 AND "game">14;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finalised_league_table" ( "team" text, "game" real, "draw" real, "loss" real, "goal_gain" real, "goal_loss" real, "goal_diff" real, "point" real ); Question: How many total draws were there with a less than 8 loss, more than 30 points, and a goal diff larger than 26? <|assistant|> SELECT COUNT("draw") FROM "finalised_league_table" WHERE "loss"<8 AND "point">30 AND "goal_diff">26;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "finalised_league_table" ( "team" text, "game" real, "draw" real, "loss" real, "goal_gain" real, "goal_loss" real, "goal_diff" real, "point" real ); Question: What is the highest loss before game 14? <|assistant|> SELECT MAX("loss") FROM "finalised_league_table" WHERE "game"<14;<|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: How many average points did the player with a time/retired of +16.789 and have more laps than 68 have? <|assistant|> SELECT AVG("points") FROM "race" WHERE "time_retired"='+16.789' AND "laps">68;<|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: How many average points did the team Minardi Team USA have when there was a grid 3 and more laps than 68? <|assistant|> SELECT AVG("points") FROM "race" WHERE "team"='minardi team usa' AND "grid"=3 AND "laps">68;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which was the highest crowd drawn by an Away team in Richmond? <|assistant|> SELECT MAX("crowd") FROM "round_9" WHERE "away_team"='richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which home team has a venue of Arden Street Oval? <|assistant|> SELECT "home_team" FROM "round_9" WHERE "venue"='arden street oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which away team has a venue of Arden Street Oval? <|assistant|> SELECT "away_team" FROM "round_9" WHERE "venue"='arden street oval';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2007" text, "2011" text, "2012" text, "2013" text ); Question: What is the value for 2011 corresponding to a 2007 value of 1r? <|assistant|> SELECT "2011" FROM "doubles_performance_timeline" WHERE "2007"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2007" text, "2011" text, "2012" text, "2013" text ); Question: What value in 2013 corresponds to Grand Slam Tournaments in 2012? <|assistant|> SELECT "2013" FROM "doubles_performance_timeline" WHERE "2012"='grand slam tournaments';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2007" text, "2011" text, "2012" text, "2013" text ); Question: What is the 2012 value when the 2011 and 2007 values are 1R? <|assistant|> SELECT "2012" FROM "doubles_performance_timeline" WHERE "2011"='1r' AND "2007"='1r';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "doubles_performance_timeline" ( "tournament" text, "2007" text, "2011" text, "2012" text, "2013" text ); Question: What value for 2013 corresponds to the US Open Tournament? <|assistant|> SELECT "2013" FROM "doubles_performance_timeline" WHERE "tournament"='us open';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text ); Question: The school nicknamed the wildcats has what sum of enrollment? <|assistant|> SELECT SUM("enrollment") FROM "current_members" WHERE "team_nickname"='wildcats';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_members" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text ); Question: What is the Founded year of the school located in Paul Smiths, New York? <|assistant|> SELECT "founded" FROM "current_members" WHERE "location"='paul smiths, new york';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What home side scored 9.4 (58)? <|assistant|> SELECT "home_team" FROM "round_11" WHERE "home_team_score"='9.4 (58)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was fitzroy's away side score? <|assistant|> SELECT "away_team_score" FROM "round_11" WHERE "away_team"='fitzroy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_11" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away team's score when the home side scores 9.4 (58)? <|assistant|> SELECT "away_team_score" FROM "round_11" WHERE "home_team_score"='9.4 (58)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2002_new_york_jets_season" ( "round" real, "pick" real, "player" text, "position" text, "college" text ); Question: What player attended UAB college? <|assistant|> SELECT "player" FROM "2002_new_york_jets_season" WHERE "college"='uab';<|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, "stadium" text, "record" text, "attendance" real ); Question: What was the score of the game at RIch Stadium? <|assistant|> SELECT "result" FROM "schedule" WHERE "stadium"='rich stadium';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: Who had the best time of 1:32.269? <|assistant|> SELECT "name" FROM "qualifying_results" WHERE "best"='1:32.269';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: Who from Conquest Racing had the best time of 1:34.748 in Qual 1? <|assistant|> SELECT "best" FROM "qualifying_results" WHERE "team"='conquest racing' AND "qual_1"='1:34.748';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: Who in Qual 2 had the best time of 1:31.327? <|assistant|> SELECT "qual_2" FROM "qualifying_results" WHERE "best"='1:31.327';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What was Dan Selznick best time? <|assistant|> SELECT "best" FROM "qualifying_results" WHERE "name"='dan selznick';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: What team had 1:34.578 in Qual 2? <|assistant|> SELECT "team" FROM "qualifying_results" WHERE "qual_2"='1:34.578';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); Question: Jiang Tengyi is on which team? <|assistant|> SELECT "team" FROM "qualifying_results" WHERE "name"='jiang tengyi';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What is the away team's score when footscray is the away team? <|assistant|> SELECT "away_team_score" FROM "round_9" WHERE "away_team"='footscray';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What venue has an Away team score of 8.8 (56)? <|assistant|> SELECT "venue" FROM "round_9" WHERE "away_team_score"='8.8 (56)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Whom is the away team when the Away team score is 23.14 (152)? <|assistant|> SELECT "away_team" FROM "round_9" WHERE "away_team_score"='23.14 (152)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Whom is the home team when the home team score is 12.13 (85)? <|assistant|> SELECT "home_team" FROM "round_9" WHERE "home_team_score"='12.13 (85)';<|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: What was the rank for czechoslovakia with 1 bronze? <|assistant|> SELECT "rank" FROM "medal_table" WHERE "bronze"=1 AND "nation"='czechoslovakia';<|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 many bronze medals for the nation with over 9 golds? <|assistant|> SELECT COUNT("bronze") FROM "medal_table" WHERE "gold">9;<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "international_career" ( "date" text, "venue" text, "result" text, "goals" real, "competition" text ); Question: What is the average number of goals that occurred in Hong Kong Stadium, Hong Kong? <|assistant|> SELECT AVG("goals") FROM "international_career" WHERE "venue"='hong kong stadium, hong kong';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "currency_and_central_banks" ( "country" text, "currency" text, "value_in_euro" text, "value_in_usd" real, "central_bank" text ); Question: Which country uses pound sterling with a value higher than 1.33 USD? <|assistant|> SELECT "country" FROM "currency_and_central_banks" WHERE "value_in_usd">1.33 AND "currency"='pound sterling';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who is the away side, when the home side scores 13.22 (100)? <|assistant|> SELECT "away_team" FROM "round_7" WHERE "home_team_score"='13.22 (100)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What venue features carlton at home? <|assistant|> SELECT "venue" FROM "round_7" WHERE "home_team"='carlton';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_7" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What venue features fitzroy as the away side? <|assistant|> SELECT "venue" FROM "round_7" WHERE "away_team"='fitzroy';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the crowd size when the home team scored 17.14 (116)? <|assistant|> SELECT "crowd" FROM "round_2" WHERE "home_team_score"='17.14 (116)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the smallest crowd that Melbourne played for at home? <|assistant|> SELECT MIN("crowd") FROM "round_2" WHERE "home_team"='melbourne';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home teams score when the away team scored 7.5 (47)? <|assistant|> SELECT "home_team_score" FROM "round_2" WHERE "away_team_score"='7.5 (47)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the home teams score at Victoria Park? <|assistant|> SELECT "home_team_score" FROM "round_2" WHERE "venue"='victoria park';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the away team against which the home team scored 10.14 (74)? <|assistant|> SELECT "away_team" FROM "round_2" WHERE "home_team_score"='10.14 (74)';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_2" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What home team played the away team of Richmond? <|assistant|> SELECT "home_team" FROM "round_2" WHERE "away_team"='richmond';<|endoftext|>
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "batting_averages" ( "player" text, "matches" real, "inns" real, "runs" real, "high_score" real, "average" real, "catches" real, "stump" real ); Question: What is the high score for the player with 0 stumps, 4 catches, more than 14 inns and an average smaller than 56.1? <|assistant|> SELECT SUM("high_score") FROM "batting_averages" WHERE "stump"=0 AND "catches"=4 AND "average"<56.1 AND "inns">14;<|endoftext|>