text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "block_a" text, "kaz_hayashi" text, "nosawa_rongai" text, "super_crazy" text, "toshizo" text ); Question: Name the kaz hayashi with block A of Shuji Kondo <|assistant|> SELECT "kaz_haya...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "block_a" text, "kaz_hayashi" text, "nosawa_rongai" text, "super_crazy" text, "toshizo" text ); Question: Name the block A for shuji kondo <|assistant|> SELECT "block_a" FROM "2009" WHE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "2009" ( "block_a" text, "kaz_hayashi" text, "nosawa_rongai" text, "super_crazy" text, "toshizo" text ); Question: Name the NOSAWA Rongai for petey williams <|assistant|> SELECT "nosawa_rongai" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winner_s_share" real ); Question: What is the largest winne...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "winners" ( "year" text, "dates" text, "champion" text, "country" text, "score" text, "tournament_location" text, "purse" real, "winner_s_share" real ); Question: What was the score when N...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: On what date did the away team have a sc...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What score did the opposing home team ha...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Name the home team in a game where the a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_20" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Name the venue where St Kilda was the op...
<|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: Which Crowd has a Home team score of 11.1...
<|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: Which Date has a Venue of lake oval? <|as...
<|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: Which Crowd has an Away team of collingwo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_and_past_rates" ( "from" text, "adult_rate" text, "development_rate" text, "16_17_year_olds_rate" text, "apprentice_rate" text ); Question: What is the development rate for wages with a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_and_past_rates" ( "from" text, "adult_rate" text, "development_rate" text, "16_17_year_olds_rate" text, "apprentice_rate" text ); Question: What was the adult rate when the 16-17 year o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_and_past_rates" ( "from" text, "adult_rate" text, "development_rate" text, "16_17_year_olds_rate" text, "apprentice_rate" text ); Question: When was the rate for 16-17 year olds £3.40? ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_and_past_rates" ( "from" text, "adult_rate" text, "development_rate" text, "16_17_year_olds_rate" text, "apprentice_rate" text ); Question: When was there a development rate of £4.92? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); Question: When Steve Hazlett is the Player, and the ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); Question: Which Player has a PI GP over 0 and a Rd #...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); Question: Which Pick # is the highest and has the Rd...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_vancouver_canucks_draft_picks" ( "rd_num" real, "pick_num" real, "player" text, "team_league" text, "reg_gp" real, "pl_gp" real ); Question: What is the lowest PI GP when the Reg GP i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real ); Question: Tell me the average top 25 with events of 5 and cuts madde less than 3 <|a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real ); Question: Tell me the highest cuts made with wins more than 1 <|assistant|> SELECT M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real ); Question: I want to know the highest wins for cuts made more than 5 <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_25" real, "events" real, "cuts_made" real ); Question: Tell me the sum of top 5 with events less than 12 and top 25 less than 0 <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: What was the biggest crowd when South Me...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Which venue hosted South Melbourne as an...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: On what date did the home team score 15....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: At what venue did the away team score 15...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_17" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Who was the away team when the home team...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text ); Question: How many people attended the game on 8 March 2008? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); Question: What is the Away team score when they played Geelong as t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); Question: What did the Home team score when the Away team scored 8....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); Question: What is the name of the Away team when the Home team scor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); Question: What is the name of the Home team when the Away team scor...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); Question: What did Carlton score when they were the Home team? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_3" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "date" text ); Question: What is the name of the Home team that played Fitzroy as ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text ); Question: What is ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text ); Question: Which st...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "ippt_standards" ( "grade" text, "points" real, "sit_up_reps" text, "standing_broad_jump_cm" text, "chin_up_reps" text, "shuttle_run_sec" text, "2_4km_run_min_sec" text ); Question: Which gr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoff_stats" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text ); Question: What year was the comp 33? <|assistant|> SELECT "year" FROM "playo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoff_stats" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text ); Question: In 1984, what was the RAvg? <|assistant|> SELECT "r_avg" FROM "pla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoff_stats" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text ); Question: In 1983, what was the RAtt? <|assistant|> SELECT "r_att" FROM "pla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoff_stats" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text ); Question: What team has a 94.1 rating? <|assistant|> SELECT "team" FROM "pla...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "playoff_stats" ( "year" text, "team" text, "comp" text, "rate" text, "r_att" text, "r_yds" text, "r_avg" text ); Question: What year has a RAtt of 1 and a comp of 49? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text ); Question: Who recorded the loss on august 7? <|assistant|> SELECT "loss" FROM "game_lo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When the away team was st kilda, what di...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: Where did the away team score 11.15 (81)...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: When the home team was geelong, what did...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "500_dollars" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text ); Question: Which Artist has an Issue Price of $8,159.95? <|assistant|> SELECT "artist" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "500_dollars" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text ); Question: What is the lowest Mintage for the Artist Royal Canadian Mint Engravers, in the Ye...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "500_dollars" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text ); Question: What is the sum of Artist Steve Hepburn's Mintage? <|assistant|> SELECT SUM("minta...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "500_dollars" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text ); Question: What is the average Year for the Royal Canadian Mint Engravers Artist when the Min...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "500_dollars" ( "year" real, "artist" text, "composition" text, "mintage" real, "issue_price" text ); Question: When the Year is over 2008, what is the highest Mintage for the Royal Canadian Min...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_coaches_by_club" ( "name" text, "nationality" text, "club" text, "from" real, "until" text ); Question: What is the name of the New York Red Bulls coach who was from the United States a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "list_of_coaches_by_club" ( "name" text, "nationality" text, "club" text, "from" real, "until" text ); Question: When did José Luis Sánchez Solá end his term of coaching? <|assistant|> SELECT "u...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1912_1922" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_withdrawn" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1912_1922" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_withdrawn" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "1912_1922" ( "class" text, "wheel_arrangement" text, "fleet_number_s" text, "manufacturer" text, "year_made" text, "quantity_made" text, "quantity_preserved" text, "year_s_withdrawn" text ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: In games where st kilda was the away tea...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text ); Question: In fitzroy's match where they were the h...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "round_10" ( "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 for the home team who...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: Which player has the lowest earnings and has at least 4 wins and is ranked higher than 4? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: How many wins do the players that earned more than 720,134 have? <|assistant|> SELECT SUM("wins"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: Who is the highest ranked player that has earnings below 395,386? <|assistant|> SELECT MAX("rank...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "leaders" ( "rank" real, "player" text, "country" text, "earnings" real, "wins" real ); Question: What player has earnings above 358,770 and a rank smaller than 2? <|assistant|> SELECT "player" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "rams_points" real, "opponents" real, "record" text, "venue" text, "attendance" real ); Question: In what Game did ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule" ( "game" text, "date" text, "opponent" text, "result" text, "rams_points" real, "opponents" real, "record" text, "venue" text, "attendance" real ); Question: What Opponent has...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the sum of the interview scores from North Dakota that have ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the sum of the swimsuit scores from Missouri that have eveni...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the total number of swimsuit scores that have average scores...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the lowest swimsuit score where the contestant scored less t...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "preliminary_competition" ( "state" text, "interview" real, "swimsuit" real, "evening_gown" real, "average" real ); Question: What is the sum of the evening gown scores where the interview score...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: What was the attendance for the game that has a tie number of 13? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" real ); Question: What is the average attendance when the Forest Green Rovers is the away te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What is the grid number for troy corser with under 22 laps? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "superbike_race_2_classification" ( "rider" text, "bike" text, "laps" real, "time" text, "grid" real ); Question: What rider went under 22 laps with grid number 2? <|assistant|> SELECT "rider" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "franchise_index" ( "country_region" text, "languages" text, "premiere" text, "seasons" text, "status" text ); Question: What country speaks Vietnamese? <|assistant|> SELECT "country_region" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lightweight_manx_grand_prix" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text ); Question: What ranking did Team 250cc Honda end up in when it finished a race with a time of ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: Tell me the constructor for grid of 8 <|assistant|> SELECT "constructor" FROM "race" WHERE ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: I want the total number of Grids for heinz-harald frentzen <|assistant|> SELECT COUNT("grid...
<|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: On what date did Fitzroy have a home team...
<|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 average crowd for the home te...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: Who was the visiting team on 12 March 2008? <|assistant|> SELECT "visitor" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: Who was the home team where Trail Blazers were the visitor? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text ); Question: In the game on 11 March 2008 with a visiting team of Bucks, who was the home...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real ); Question: How many laps for robin montgomerie-charrington, and a Grid smaller than 15? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the mean number of totals with no silvers and a bronze number less than...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the least number of Silvers with a ranking of less than 4 where the bro...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: Which mean rank had a silver number smaller than 0? <|assistant|> SELECT AVG("r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "medal_count" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); Question: What is the least total number with a rank of 4 and a total silver number bigge...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text ); Question: Name the category for 2nd melon music awards <|assistant|> SELECT "category" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text ); Question: Name the award won in the hall of fame <|assistant|> SELECT "award" FROM "awa...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text ); Question: Name the nomination in 2011 that won <|assistant|> SELECT "nomination" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "nomination" text, "result" text ); Question: Name the result in 2010 for bgm cyworld <|assistant|> SELECT "result" FROM "a...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text ); Question: What is the car # of the Chevrolet that complete 363 laps? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_results" ( "driver" text, "car_num" real, "make" text, "points" real, "laps" real, "winnings" text ); Question: How many points did the driver who won $127,541 driving car #31 get? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmography" ( "year" real, "english_title" text, "korean_title" text, "romanization" text, "role" text, "director" text ); Question: What is the english title of the film before 1999 with a ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmography" ( "year" real, "english_title" text, "korean_title" text, "romanization" text, "role" text, "director" text ); Question: What English title for the Romanization of lee jae-su-eui...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmography" ( "year" real, "english_title" text, "korean_title" text, "romanization" text, "role" text, "director" text ); Question: What is the Romanization for my old sweetheart? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "filmography" ( "year" real, "english_title" text, "korean_title" text, "romanization" text, "role" text, "director" text ); Question: What is the English of chae soo-yeon? <|assistant|> SELEC...