text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: Which language do 1% of males speak? <|assistant|> SELECT "percentage_pct" FROM "lan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: Which language do 87.5% of males speak? <|assistant|> SELECT "males" FROM "language"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: Which language do 706 females speak? <|assistant|> SELECT "females" FROM "language" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "language" ( "language" text, "number" text, "percentage_pct" text, "males" text, "females" text ); Question: How many females speak Ukrainian? <|assistant|> SELECT "females" FROM "language" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "men_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: What were the names of the mixed doubles pair for the year that Ral...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "men_s_singles" text, "men_s_doubles" text, "women_s_doubles" text, "mixed_doubles" text ); Question: Who were the women's doubles pair in 1952? <|assistant|> SELECT "wo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "aircraft_inventory" ( "aircraft" text, "origin" text, "type" text, "versions" text, "in_service" real ); Question: How many Antonov An-2 Colt aircraft are in service? <|assistant|> SELECT AVG("...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saturday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text ); Question: What 7:30 has 8:00 risk takers? <|assistant|> SELECT "7_30" FROM "saturday" WHERE "8_00"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saturday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text ); Question: What 7:00 has 7:30 movies? <|assistant|> SELECT "7_00" FROM "saturday" WHERE "7_30"='mov...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saturday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text ); Question: What 7:00 has 8:00 risk takers? <|assistant|> SELECT "7_00" FROM "saturday" WHERE "8_00"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saturday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text ); Question: What 7:00 has 7:30 movies? <|assistant|> SELECT "7_00" FROM "saturday" WHERE "7_30"='mov...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saturday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text ); Question: What 7:00 has a 7:30 of w-five? <|assistant|> SELECT "7_00" FROM "saturday" WHERE "7_30"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "saturday" ( "7_00" text, "7_30" text, "8_00" text, "8_30" text, "9_00" text, "10_00" text ); Question: What 7:00 has 7:30 movies? <|assistant|> SELECT "7_00" FROM "saturday" WHERE "7_30"='mov...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "injured_players" ( "position" text, "number" real, "name" text, "class" text, "injury_status" text, "last_update" text ); Question: for the position of rb what is the name? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "injured_players" ( "position" text, "number" real, "name" text, "class" text, "injury_status" text, "last_update" text ); Question: for the name of joe surratt what is the last update? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "injured_players" ( "position" text, "number" real, "name" text, "class" text, "injury_status" text, "last_update" text ); Question: for the name of jamar jackson what is the last update? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "injured_players" ( "position" text, "number" real, "name" text, "class" text, "injury_status" text, "last_update" text ); Question: for the name of jamar jackson what is the class? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "injured_players" ( "position" text, "number" real, "name" text, "class" text, "injury_status" text, "last_update" text ); Question: for the name of jamar jackson what is the total of Number? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text ); Question: What term did Stewart Mcarthur from Vic serve in office? <|assistant|> SELECT "term_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text ); Question: What is Hon Paul Keating's Party? <|assistant|> SELECT "party" FROM "see_also" WHERE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text ); Question: What member is in the liberal party and has an electorate of bruce? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "see_also" ( "member" text, "party" text, "electorate" text, "state" text, "term_in_office" text ); Question: Which Electorate is from vic, a labor party, and is David Charles a member of? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Name the format on july 27, 1994 for alfa records <|assistant|> SELECT "format" FROM "rel...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Name the region for cd with catalog of alca-9203 <|assistant|> SELECT "region" FROM "rele...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Name the date for alfa records and catalog of alr-28045 <|assistant|> SELECT "date" FROM ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Name the region for cd format on february 22, 1984 <|assistant|> SELECT "region" FROM "re...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text ); Question: Name the region for february 14, 2002 <|assistant|> SELECT "region" FROM "release_history...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rugby_japan_internationals_1991" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text ); Question: What First game has a Lost greater than 16? <|assistant|> SELECT A...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "rugby_japan_internationals_1991" ( "first_game" real, "played" real, "drawn" real, "lost" real, "percentage" text ); Question: What Percentage did the First game of 1998 have? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_in_an_innings" ( "rank" text, "bowling" text, "player" text, "venue" text, "date" text ); Question: What bowler has a record of 4-15? <|assistant|> SELECT "player" FROM "best_in_an_innings...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_in_an_innings" ( "rank" text, "bowling" text, "player" text, "venue" text, "date" text ); Question: What ranking is james franklin? <|assistant|> SELECT "rank" FROM "best_in_an_innings" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "best_in_an_innings" ( "rank" text, "bowling" text, "player" text, "venue" text, "date" text ); Question: what venue does tim southee bowl at? <|assistant|> SELECT "venue" FROM "best_in_an_innin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" text, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What was the regular season for 2012? <|assistant|> SELECT "r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "year_by_year" ( "year" text, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text ); Question: What is the lowest division in the playoffs and did not quali...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What chassis has more than 0 points? <|assistant|> SELECT "cha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: How many points were there before 1955? <|assistant|> SELECT C...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the lowest amount of points held by the Epperly Indy r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What Chassis has more than 0 points? <|assistant|> SELECT "cha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_game_log" ( "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: What is the date that 4,286 attended? <|assistant|> SELECT "date" FROM "2007_game_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_game_log" ( "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: Where does CF Pachuca play? <|assistant|> SELECT "game_site" FROM "2007_game_log" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2007_game_log" ( "date" text, "opponent" text, "result" text, "game_site" text, "attendance" text ); Question: What was the attendance of the Cup Quarterfinals game? <|assistant|> SELECT "atten...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_appearances" ( "2000" text, "2004" text, "2009" text, "2013" text, "total" real ); Question: What shows for 2000 when 2013 shows 3rd? <|assistant|> SELECT "2000" FROM "team_appearances" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_appearances" ( "2000" text, "2004" text, "2009" text, "2013" text, "total" real ); Question: What is the 2004 when 2013 is 3rd? <|assistant|> SELECT "2004" FROM "team_appearances" WHERE "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_appearances" ( "2000" text, "2004" text, "2009" text, "2013" text, "total" real ); Question: What is the 2009 when the 2013 is 4th? <|assistant|> SELECT "2009" FROM "team_appearances" WHER...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "team_appearances" ( "2000" text, "2004" text, "2009" text, "2013" text, "total" real ); Question: What shows for 209 when the 2000 is โ€“, and a Total of 3, and a 2004 of 9th? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "wins_18" ( "year" text, "championship" text, "54_holes" text, "winning_score" text, "margin" text ); Question: What was the winning score in the PGA Championship? <|assistant|> SELECT "winning_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "captains" ( "name" text, "first_captaincy" text, "games_as_captain" real, "wins" real, "draws" real, "losses" real ); Question: How many draws with 1 loss? <|assistant|> SELECT SUM("draws") F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "captains" ( "name" text, "first_captaincy" text, "games_as_captain" real, "wins" real, "draws" real, "losses" real ); Question: How many losses does Alex Wilkinson have? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subsidiaries_and_associates" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding_10_march_2010" text ); Question: Name the incorpora...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subsidiaries_and_associates" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding_10_march_2010" text ); Question: Name the group's e...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subsidiaries_and_associates" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding_10_march_2010" text ); Question: Name the type for ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "subsidiaries_and_associates" ( "company" text, "type" text, "principal_activities" text, "incorporated_in" text, "group_s_equity_shareholding_10_march_2010" text ); Question: Name the incorpora...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text ); Question: Name the title with presentation of credentials...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text ); Question: Name the presentation of credentials for appoin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text ); Question: Name the title with presentation of credentials...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text ); Question: Name the title with termination of mission of f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text ); Question: Name the title with termination of mission of a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "notes" ( "representative" text, "title" text, "presentation_of_credentials" text, "termination_of_mission" text, "appointed_by" text ); Question: Name the termination of mission for woodrow wil...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_to_head" ( "team" text, "miles_one_way" real, "home_result" text, "fans_brought" text, "away_result" text, "fans_took" text, "points_gained" real ); Question: What is the highest point...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_to_head" ( "team" text, "miles_one_way" real, "home_result" text, "fans_brought" text, "away_result" text, "fans_took" text, "points_gained" real ); Question: What is the points gained...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "head_to_head" ( "team" text, "miles_one_way" real, "home_result" text, "fans_brought" text, "away_result" text, "fans_took" text, "points_gained" real ); Question: Which team had fans took ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers_in_loi" ( "ranking" real, "nationality" text, "name" text, "years" text, "goals" real ); Question: What years had a ranking of 1? <|assistant|> SELECT "years" FROM "top_scorers_in_l...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "top_scorers_in_loi" ( "ranking" real, "nationality" text, "name" text, "years" text, "goals" real ); Question: What is the nationality of the person with 50 goals and rank 3? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "season" real, "year" real, "wins" real, "draws" real, "losses" real, "regular_season_standing" text, "final_standing" text ); Question: How many losses occurred with regular ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "references" ( "season" real, "year" real, "wins" real, "draws" real, "losses" real, "regular_season_standing" text, "final_standing" text ); Question: What is the earliest season with a reg...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); Question: What was the status of joon-hyung park ๋ฐ•์ค€ํ˜•? <|assistant|> SELECT "status...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); Question: Who had a ballet style with original cast? <|assistant|> SELECT "name" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "billy_elliot" ( "status" text, "name" text, "first_performance" text, "last_performance" text, "style" text ); Question: When was the first performance with a replacement cast? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: What is the latest year for the Tyrrell 018 Chassis that has less than 3 p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); Question: Which entrant has a Honda V6 engine and a Lotus 99t chassis? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_wickets_in_a_season" ( "matches" real, "wickets" real, "runs" real, "10_wm" real, "best" text ); Question: Name the least wickets when matches are more than 10 and 10 WM is more than 1 <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_wickets_in_a_season" ( "matches" real, "wickets" real, "runs" real, "10_wm" real, "best" text ); Question: Name the best when runs of 1088 and matches more than 11 <|assistant|> SELECT "be...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "most_wickets_in_a_season" ( "matches" real, "wickets" real, "runs" real, "10_wm" real, "best" text ); Question: Name the most runs for wickets of 66 and matches less than 13 <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "attendance" real, "record" text ); Question: What is the score of the game with the San Diego Padres as the opponent and a record of 11-...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "attendance" real, "record" text ); Question: What is the date of the game with a record of 14-31? <|assistant|> SELECT "date" FROM "game...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "attendance" real, "record" text ); Question: What is the date of the game with a 17-31 record? <|assistant|> SELECT "date" FROM "game_lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "attendance" real, "record" text ); Question: What is the record of the game on 13 May? <|assistant|> SELECT "record" FROM "game_log" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What was average attendance during week 15? <|assistant|> SELECT AVG("attendance") FROM "sch...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: What's the smallest week that had a result of t 17โ€“17? <|assistant|> SELECT MIN("week") FROM...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); Question: Who was the opponent in week 12? <|assistant|> SELECT "opponent" FROM "schedule" WHERE "week...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: What is the current club of the Forward who was born after 1983...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); Question: What is the position of the player who is taller than 2.12? <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "states_that_have_voted_on_amendments" ( "state" text, "date" text, "yes_vote" text, "no_vote" text, "vote_outcome" text ); Question: How many no votes did North Dakota have? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "states_that_have_voted_on_amendments" ( "state" text, "date" text, "yes_vote" text, "no_vote" text, "vote_outcome" text ); Question: What was the date for Colorado? <|assistant|> SELECT "date" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "states_that_have_voted_on_amendments" ( "state" text, "date" text, "yes_vote" text, "no_vote" text, "vote_outcome" text ); Question: How many no votes from Alaska in 1998? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "states_that_have_voted_on_amendments" ( "state" text, "date" text, "yes_vote" text, "no_vote" text, "vote_outcome" text ); Question: How many positive votes for Tennessee in 2006? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "songs" ( "number" real, "name_of_the_song" text, "singer" text, "drama" text, "kind_of_the_song" text ); Question: What is the name of the song that is part of the opening theme and has a drama...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_completed_buildings" ( "rank" text, "building_name" text, "street_address" text, "height_feet_meters" text, "floors" real, "completed" real ); Question: How many floors are there at 3...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "tallest_completed_buildings" ( "rank" text, "building_name" text, "street_address" text, "height_feet_meters" text, "floors" real, "completed" real ); Question: When did the rank 9 building g...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "deputy_ministers" ( "minister" text, "party" text, "governments" text, "term_start" text, "term_end" text ); Question: Which party has 24 governments? <|assistant|> SELECT "party" FROM "deputy_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "deputy_ministers" ( "minister" text, "party" text, "governments" text, "term_start" text, "term_end" text ); Question: What governments did the minister with a term start on 24 September 1984 h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "deputy_ministers" ( "minister" text, "party" text, "governments" text, "term_start" text, "term_end" text ); Question: When is the term end of Shlomo-Yisrael Ben-Meir of the National Religious ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "deputy_ministers" ( "minister" text, "party" text, "governments" text, "term_start" text, "term_end" text ); Question: Who is the minister with a term end on 10 March 1974? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "team_classification" text ); Question: Name the points classification for predictor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "team_classification" text ); Question: Name the points classification for quick ste...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "team_classification" text ); Question: Name the stgae with winner of robbie mcewen ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "jersey_progress" ( "stage" text, "winner" text, "general_classification" text, "points_classification" text, "team_classification" text ); Question: Name the winner for nick nuyens for general ...