text
stringlengths
310
1.28k
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What was the tie for the Crystal Palace team? <|assistant|> SELECT "tie_no...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "attendance" text ); Question: What is the attendance for No. 15 tie? <|assistant|> SELECT "attendance" F...
<|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: WHich Open Cup has a Division larger than 4? <|assistant|> SE...
<|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: Name the League which has a Regular Season of 3rd, atlantic? ...
<|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: WHICH Regular Season has a Division of 4? <|assistant|> SELEC...
<|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: WHICH Regular Season has a League of npsl, and a Year of 2008...
<|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: NAME THE Playoffs that HAVE a League of npsl, and a Open Cup ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: What is the average February that has 18-26-10 as the record, with a game less th...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "schedule_and_results" ( "game" real, "february" real, "opponent" text, "score" text, "record" text ); Question: How many Februarys have montreal canadiens as the opponent, and 18-25-10 as the r...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_15" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "result" text ); Question: what is the surface when the opponent is selma babic? <|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_15" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "result" text ); Question: what is the surface when the round is gii play-offs and ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_15" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "result" text ); Question: what is the date when the surface is clay and the result...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles_15" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "result" text ); Question: who is the opponent when norway is against? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "number" real, "player" text, "position" text, "height" text, "weight" real, "years_exp" text, "college" text ); Question: What is Postion, when Weight is greater than 220, and wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "number" real, "player" text, "position" text, "height" text, "weight" real, "years_exp" text, "college" text ); Question: What is the lowest Number, when College is "University o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "number" real, "player" text, "position" text, "height" text, "weight" real, "years_exp" text, "college" text ); Question: What is the total number of Weight, when Position is "Fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "number" real, "player" text, "position" text, "height" text, "weight" real, "years_exp" text, "college" text ); Question: What is Years Exp, when Height is "7-2"? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roster" ( "number" real, "player" text, "position" text, "height" text, "weight" real, "years_exp" text, "college" text ); Question: What is Position, when Weight is greater than 200, when ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "l2_cache" text, "mult" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_p...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_11" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who is the runner-up at the Chicago challenge? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_11" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: Who is the runner-up of Atlantic city classic? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_11" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the date of the U.S. Women's open? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "lpga_tour_11" ( "date" text, "tournament" text, "winning_score" text, "margin_of_victory" text, "runner_s_up" text ); Question: What is the margin of victory of the gna/glendale federal classic...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classes_1_to_6" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: Which class has *buranaz as Part 4? <|assistant|> SELECT "class" F...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classes_1_to_6" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: What is the verb meaning for *bar as Part 2? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classes_1_to_6" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: Which class has *alanaz as Part 4? <|assistant|> SELECT "class" FR...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "classes_1_to_6" ( "class" text, "part_1" text, "part_2" text, "part_3" text, "part_4" text, "verb_meaning" text ); Question: Which class has *fraus as Part 2? <|assistant|> SELECT "class" FRO...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" real, "transfer_fee" text, "source" text ); Question: what is the transfer fee fo...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: What team did James Vanderberg belong to when the Complet...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: What were the number of completions for James Vanderberg ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: What was the team Vanderberg belonged to when there was 4...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: What number of attempts were recorded when the completion...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: In what year was the number of attempts 888? <|assistant|...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "passing_statistics" ( "year" text, "team" text, "attempts" text, "completions" text, "completion_pct" text, "yards" text ); Question: What was the number of attempts for Vanderberg on Iowa wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "leading_scorer" text, "attendance" real, "record" text ); Question: Which Leading Scorer has an Opponent of @ indiana? <|assist...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "leading_scorer" text, "attendance" real, "record" text ); Question: Which Leading Scorer has a Record of 3-3? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "season_schedule" ( "date" text, "opponent" text, "score" text, "leading_scorer" text, "attendance" real, "record" text ); Question: Which Attendance has an Opponent of @ phoenix, and a Leadin...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the date when tie number is 6? <|assistant|> SELECT "date" FROM "fourth_...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who is the home team with tie number 9? <|assistant|> SELECT "home_team" FROM "f...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who is the home team when Sheffield United is the away team? <|assistant|> SELEC...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: What is the date when Aston Villa is the away team? <|assistant|> SELECT "date" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); Question: Who is the home team on 31 January 1951 when away team was Sheffield United? <|a...
<|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 the attendance during the match that took place after week 11 against the washingto...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); Question: WHAT IS THE TO PAR FOR GEOFF OGILVY WITH A PLACE OF T3? <|assistant|> SELECT "to_par" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roller_coasters" ( "ride" text, "year_opened" real, "ride_manufacturer_and_type" text, "minimum_height" text, "rating" real ); Question: What year has the ride flight deck and a rating of less ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roller_coasters" ( "ride" text, "year_opened" real, "ride_manufacturer_and_type" text, "minimum_height" text, "rating" real ); Question: What is the highest rating after 1993 with a minumum hei...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "roller_coasters" ( "ride" text, "year_opened" real, "ride_manufacturer_and_type" text, "minimum_height" text, "rating" real ); Question: What is the ride manufacturer and type with a minimum he...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "children" ( "name" text, "other_names" text, "birth" text, "death" text, "death_place" text, "mother" text ); Question: when was birth when death place is n.a., other names is n.a. and name i...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "children" ( "name" text, "other_names" text, "birth" text, "death" text, "death_place" text, "mother" text ); Question: what is other names when death is may 23, 1821? <|assistant|> SELECT "o...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "children" ( "name" text, "other_names" text, "birth" text, "death" text, "death_place" text, "mother" text ); Question: when is death when death place is murshidabad and name is mir mehndi? <...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "children" ( "name" text, "other_names" text, "birth" text, "death" text, "death_place" text, "mother" text ); Question: what is the name when death is november 10, 1842? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serbia" ( "internet_plan" text, "downstream" text, "upstream" text, "bandwidth_included" text, "price" text ); Question: What is Internet Plan, when Price is "22 EUR"? <|assistant|> SELECT "int...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serbia" ( "internet_plan" text, "downstream" text, "upstream" text, "bandwidth_included" text, "price" text ); Question: What is Downstream, when Upstream is "384 kbit"? <|assistant|> SELECT "d...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serbia" ( "internet_plan" text, "downstream" text, "upstream" text, "bandwidth_included" text, "price" text ); Question: What is Bandwidth Included, when Price is "50 EUR"? <|assistant|> SELECT...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serbia" ( "internet_plan" text, "downstream" text, "upstream" text, "bandwidth_included" text, "price" text ); Question: What is Upstream, when Price is "14 EUR"? <|assistant|> SELECT "upstream...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serbia" ( "internet_plan" text, "downstream" text, "upstream" text, "bandwidth_included" text, "price" text ); Question: What is Bandwidth Included, when Internet Plan is "8mb"? <|assistant|> S...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "serbia" ( "internet_plan" text, "downstream" text, "upstream" text, "bandwidth_included" text, "price" text ); Question: What is the Price, when Upstream is "256 kbit"? <|assistant|> SELECT "pr...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner" text, "finalist" text, "semifinalists" text ); Question: Which Semifinalists has a Finalist of andre agassi? <|assistant|> ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner" text, "finalist" text, "semifinalists" text ); Question: WHich Tournament has a Finalist of gustavo kuerten (4)? <|assistan...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner" text, "finalist" text, "semifinalists" text ); Question: Which finalist has Semifinalists of andre agassi (1) lleyton hewit...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner" text, "finalist" text, "semifinalists" text ); Question: Which Finalist has a Tournament of monte carlo? <|assistant|> SELE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner" text, "finalist" text, "semifinalists" text ); Question: WHo is the Winner of andre agassi Finalist? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner" text, "finalist" text, "semifinalists" text ); Question: WHich Tournament has a Finalist of marat safin (12)? <|assistant|>...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "round" text, "location" text, "circuit" text, "date" text, "winning_driver" text ); Question: What was the date for the Sepang International circuit, round 3? <|assistant|> SE...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "round" text, "location" text, "circuit" text, "date" text, "winning_driver" text ); Question: Which round had a winning driver of Uwe Alzen, at the Sepang International circui...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "round" text, "location" text, "circuit" text, "date" text, "winning_driver" text ); Question: What was the round number for March 22? <|assistant|> SELECT "round" FROM "race_c...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); Question: Wh...
<|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, "record" text, "game_site" text ); Question: What is the date of the game that took place at the Resch Center? <|as...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_during_2000" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: Which netw...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_during_2000" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: Which reti...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "programs_returning_during_2000" ( "show" text, "last_aired" real, "previous_network" text, "retitled_as_same" text, "new_returning_same_network" text, "returning" text ); Question: Which show...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What is the lowest grid number for Yamaha? <|assistant|> SELECT MIN("grid") FROM "2...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: How many laps had a grid over 16 and a Time of +1:35.890? <|assistant|> SELECT "lap...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What was the lowest lab for Gilera with a grid less than 12? <|assistant|> SELECT M...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What is the highest Grid with a time of +1:19.905, and less than 20 laps? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" real, "time" text, "grid" real ); Question: What Rider has a Grid of 21? <|assistant|> SELECT "rider" FROM "250cc_classificatio...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "zimbabwe_in_kenya" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Who is the away captain when the game resulted in [[|]] by 7 wickets? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "zimbabwe_in_kenya" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); Question: Who is the home captain of the match that resulted [[|]] by 151 runs? <|assi...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: How many totals have a To par of –1? <|assistant|> SELECT SUM("total"...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Which Year(s) won has a Total smaller than 285, and a Player of tom w...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Which Finish has a Total of 288? <|assistant|> SELECT "finish" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text ); Question: Who won in 1991? <|assistant|> SELECT "player" FROM "made_the_cut" WH...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_amateur_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college_junior_club_team" text ); Question: Who was picked before 149 in round 9? <|assistant|> SELECT "playe...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "nhl_amateur_draft" ( "round" real, "pick" real, "player" text, "nationality" text, "college_junior_club_team" text ); Question: Who was pick 16 and before round 10? <|assistant|> SELECT "player...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_teams" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text ); Question: What is Affiliation, when Nickname is Bulldogs? <|ass...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "current_teams" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "nickname" text ); Question: What is the average Founded, when Enrollment is 4,000...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: Which team raced at Amaroo Park? <|assistant|> SELECT "team" FROM "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: On what date did Dick Johnson with at Calder? <|assistant|> SELECT ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: Which team raced on Oran Park Raceway? <|assistant|> SELECT "team" ...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: On what date was the race in Melbourne, Victoria? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "race_calendar" ( "race_title" text, "circuit" text, "city_state" text, "date" text, "winner" text, "team" text ); Question: Which city or state contains Calder Park Raceway? <|assistant|> SEL...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "home_and_away_rounds" ( "round" text, "st_kilda_saints" text, "opposition" text, "their_score" text, "margin" real ); Question: What is the most reduced Margin that has a St Kilda Saints of 11....
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "home_and_away_rounds" ( "round" text, "st_kilda_saints" text, "opposition" text, "their_score" text, "margin" real ); Question: What is the average Margin that has a Round of 13. (h)? <|assista...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_australia" ( "team" text, "coach" text, "home_ground" text, "location" text, "founded" text ); Question: What is the location of South Adelaide? <|assistant|> SELECT "location" FROM "sout...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_australia" ( "team" text, "coach" text, "home_ground" text, "location" text, "founded" text ); Question: Which team has an unknown coach and location of Athelstone? <|assistant|> SELECT "...
<|system|> You are an expert SQL query generator. Only output valid SQL. <|user|> ### Database Schema CREATE TABLE "south_australia" ( "team" text, "coach" text, "home_ground" text, "location" text, "founded" text ); Question: When was the team that plays at Athelstone founded? <|assistant|> SELECT "founded"...