output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT AVG("round") FROM "draft_picks" WHERE "player"='stan adams';
## Task Generate a SQL query to answer the following question: `What round of the draft was Stan Adams selected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, ...
SELECT "attendance" FROM "schedule" WHERE "result"='t7-7';
## Task Generate a SQL query to answer the following question: `What is the attendance for the t7-7 result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" tex...
SELECT "date" FROM "schedule" WHERE "attendance"='45,000';
## Task Generate a SQL query to answer the following question: `What is the date for 45,000 in attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "site" text, "result" text, "attendance" text...
SELECT "to_par" FROM "first_round" WHERE "score"=71;
## Task Generate a SQL query to answer the following question: `How many strokes under par was the player who scored 71?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, ...
SELECT "place" FROM "first_round" WHERE "player"='jay hebert';
## Task Generate a SQL query to answer the following question: `What place is Jay Hebert?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text ); ### SQL Given...
SELECT SUM("games_lost") FROM "winners" WHERE "points_against"=61 AND "points_difference"<42;
## Task Generate a SQL query to answer the following question: `Which Games lost has Points against of 61, and Points difference smaller than 42?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "games_played" real, "games_...
SELECT COUNT("games_won") FROM "winners" WHERE "bonus_points">1 AND "points_difference"<50 AND "points_against"=106 AND "points_for"<152;
## Task Generate a SQL query to answer the following question: `Which Games won has Bonus points larger than 1, a Points difference smaller than 50, Points against of 106, and Points for smaller than 152?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE ...
SELECT "score" FROM "stanley_cup_playoffs" WHERE "record"='1-2';
## Task Generate a SQL query to answer the following question: `Which Score has a Record of 1-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stanley_cup_playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ...
SELECT "record" FROM "stanley_cup_playoffs" WHERE "date"='april 15';
## Task Generate a SQL query to answer the following question: `What is the Record for April 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stanley_cup_playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ...
SELECT "record" FROM "stanley_cup_playoffs" WHERE "date"='april 13';
## Task Generate a SQL query to answer the following question: `What is the Record for April 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stanley_cup_playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ...
SELECT "home" FROM "stanley_cup_playoffs" WHERE "date"='april 15';
## Task Generate a SQL query to answer the following question: `On April 15 who is the Home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "stanley_cup_playoffs" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );...
SELECT SUM("attendance") FROM "schedule" WHERE "date"='december 22, 1985' AND "week"<16;
## Task Generate a SQL query to answer the following question: `Which Attendance has a Date of december 22, 1985, and a Week smaller than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, ...
SELECT AVG("attendance") FROM "schedule" WHERE "result"='w 23-21' AND "week"<5;
## Task Generate a SQL query to answer the following question: `Which Attendance has a Result of w 23-21, and a Week smaller than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result"...
SELECT AVG("week") FROM "schedule" WHERE "result"='w 20-13';
## Task Generate a SQL query to answer the following question: `Which Week has a Result of w 20-13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ###...
SELECT "japanese" FROM "examples_of_chinese_loanwords_in_japanes" WHERE "chinese"='叉焼';
## Task Generate a SQL query to answer the following question: `What are the Japanese characters for the Chinese word 叉焼?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "examples_of_chinese_loanwords_in_japanes" ( "japanese" text, "r_maji" text, ...
SELECT "source_language" FROM "examples_of_chinese_loanwords_in_japanes" WHERE "meaning"='mahjong';
## Task Generate a SQL query to answer the following question: `What language did the word that means mahjong first come from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "examples_of_chinese_loanwords_in_japanes" ( "japanese" text, "r_maji" tex...
SELECT "romanization" FROM "examples_of_chinese_loanwords_in_japanes" WHERE "source_language"='mandarin' AND "r_maji"='ūroncha';
## Task Generate a SQL query to answer the following question: `What is the Romanization of the Mandarin word whose Rōmaji is ūroncha` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "examples_of_chinese_loanwords_in_japanes" ( "japanese" text, "r_ma...
SELECT "source_language" FROM "examples_of_chinese_loanwords_in_japanes" WHERE "meaning"='mahjong';
## Task Generate a SQL query to answer the following question: `What language did the word mahjong originate from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "examples_of_chinese_loanwords_in_japanes" ( "japanese" text, "r_maji" text, "meanin...
SELECT "chinese" FROM "examples_of_chinese_loanwords_in_japanes" WHERE "r_maji"='chāshū';
## Task Generate a SQL query to answer the following question: `What are the Chinese characters for the word that has a Rōmaji of chāshū?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "examples_of_chinese_loanwords_in_japanes" ( "japanese" text, "...
SELECT "category" FROM "academy_awards_actual_presidents" WHERE "president"='richard nixon' AND "year"<2009;
## Task Generate a SQL query to answer the following question: `What was the category of Richard Nixon as President in a year prior to 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "academy_awards_actual_presidents" ( "year" real, "category"...
SELECT "film" FROM "academy_awards_actual_presidents" WHERE "nominee"='raymond massey';
## Task Generate a SQL query to answer the following question: `What is the film that Raymond Massey was nominated for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "academy_awards_actual_presidents" ( "year" real, "category" text, "president" ...
SELECT "film" FROM "academy_awards_actual_presidents" WHERE "president"='richard nixon' AND "year">1996;
## Task Generate a SQL query to answer the following question: `What was the film of Richard Nixon as President in a year newer than 1996?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "academy_awards_actual_presidents" ( "year" real, "category" t...
SELECT "partner" FROM "doubles_champion_12" WHERE "outcome"='winner' AND "opponents_in_the_final"='rick leach jim pugh';
## Task Generate a SQL query to answer the following question: `WHich Partner has a Outcome of winner, and a Opponents in the final of rick leach jim pugh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_champion_12" ( "outcome" text, "date...
SELECT "score_in_the_final" FROM "doubles_champion_12" WHERE "surface"='hard' AND "date"='august 20, 1989';
## Task Generate a SQL query to answer the following question: `Which Score in the final has a Surface of hard on august 20, 1989?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_champion_12" ( "outcome" text, "date" text, "tournament" te...
SELECT "outcome" FROM "doubles_champion_12" WHERE "score_in_the_final"='4–6, 4–6' AND "date"='october 21, 1990';
## Task Generate a SQL query to answer the following question: `Name the Outcome which has a Score in the final of 4–6, 4–6 on october 21, 1990?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_champion_12" ( "outcome" text, "date" text, "...
SELECT "tournament" FROM "doubles_champion_12" WHERE "score_in_the_final"='7–5, 6–4';
## Task Generate a SQL query to answer the following question: `Which Tournament has a Score in the final of 7–5, 6–4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_champion_12" ( "outcome" text, "date" text, "tournament" text, "surfa...
SELECT "score_in_the_final" FROM "doubles_champion_12" WHERE "partner"='jorge lozano' AND "outcome"='runner-up' AND "opponents_in_the_final"='udo riglewski michael stich';
## Task Generate a SQL query to answer the following question: `Name the Score which has a Partner of jorge lozano, an Outcome of runner-up, and Opponents in the final of udo riglewski michael stich?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doub...
SELECT "date" FROM "doubles_champion_12" WHERE "opponents_in_the_final"='patrick mcenroe tim wilkison';
## Task Generate a SQL query to answer the following question: `Name the Date which has Opponents in the final of patrick mcenroe tim wilkison?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_champion_12" ( "outcome" text, "date" text, "t...
SELECT COUNT("goals_2008") FROM "players_who_made_their_afl_debut_during_" WHERE "games_2008"<11 AND "debut_round">15 AND "age_at_debut"='20 years, 71 days';
## Task Generate a SQL query to answer the following question: `What is the total number of goals that have games under 11, debut round over 15, and age of 20 years, 71 days?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_who_made_their_afl_de...
SELECT "name" FROM "players_who_made_their_afl_debut_during_" WHERE "debut_round">14 AND "games_2008"<2 AND "club"='melbourne';
## Task Generate a SQL query to answer the following question: `What is the name that has a debut round over 14, games under 2, and a club of Melbourne?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_who_made_their_afl_debut_during_" ( "name...
SELECT "team_2" FROM "results" WHERE "score"='1-2';
## Task Generate a SQL query to answer the following question: `What is the name of team 2 that has 1-2 as the score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "season" text, "team_1" text, "score" text, "team_2" text, "venue...
SELECT "team_1" FROM "results" WHERE "season"='2005' AND "score"='0-4';
## Task Generate a SQL query to answer the following question: `In the 2005 season with a score of 0-4 what is the team 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "season" text, "team_1" text, "score" text, "team_2" text, "...
SELECT "score" FROM "results" WHERE "venue"='n/a' AND "team_2"='yokohama f. marinos';
## Task Generate a SQL query to answer the following question: `Team 2 of Yokohama F. Marinos in the n/a venue had what score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "season" text, "team_1" text, "score" text, "team_2" text,...
SELECT "venue" FROM "results" WHERE "team_2"='al-ain';
## Task Generate a SQL query to answer the following question: `Team 2 Al-Ain played in what venue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "season" text, "team_1" text, "score" text, "team_2" text, "venue" text ); ### SQL ...
SELECT SUM("scored") FROM "super_league_tries" WHERE "result"='40-22';
## Task Generate a SQL query to answer the following question: `What is the scored figure when the result is 40-22?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "super_league_tries" ( "date" text, "venue" text, "opponent" text, "result" text,...
SELECT "tournament" FROM "super_league_tries" WHERE "result"='46-18';
## Task Generate a SQL query to answer the following question: `In what tournament is there a result of 46-18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "super_league_tries" ( "date" text, "venue" text, "opponent" text, "result" text, "t...
SELECT MIN("scored") FROM "super_league_tries" WHERE "result"='46-18';
## Task Generate a SQL query to answer the following question: `What is the smallest scored with a result of 46-18?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "super_league_tries" ( "date" text, "venue" text, "opponent" text, "result" text,...
SELECT AVG("goals_2008") FROM "players_who_made_their_club_debut_during" WHERE "games_2008"=21 AND "debut_round"<1;
## Task Generate a SQL query to answer the following question: `What is the average number of goals with 21 games for a debut round less than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_who_made_their_club_debut_during" ( "name" text, ...
SELECT "nationality" FROM "g" WHERE "jersey_number_s"=6;
## Task Generate a SQL query to answer the following question: `What is the Nationality of the Player with Jersey Number 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text, "nationality" text, "jersey_number_s" real, "positio...
SELECT SUM("jersey_number_s") FROM "g" WHERE "from"='clemson';
## Task Generate a SQL query to answer the following question: `What is the Jersey Number of the Player from Clemson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "g" ( "player" text, "nationality" text, "jersey_number_s" real, "position" tex...
SELECT "at_vs" FROM "game_log" WHERE "opponent"='new york saints' AND "attendance">'16,042';
## Task Generate a SQL query to answer the following question: `What is the at/vs against the New York Saints with over 16,042 in attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "at_vs" text, "opponent" text, ...
SELECT "date" FROM "march" WHERE "visitor"='cleveland' AND "record"='34-26';
## Task Generate a SQL query to answer the following question: `What day was the visitor Cleveland when the record was 34-26?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "le...
SELECT "attendance" FROM "march" WHERE "score"='88-98';
## Task Generate a SQL query to answer the following question: `What was the attendance when the score was 88-98?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer...
SELECT "record" FROM "march" WHERE "visitor"='cleveland' AND "home"='dallas';
## Task Generate a SQL query to answer the following question: `What was the record when the visitor was Cleveland in Dallas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "le...
SELECT MIN("round") FROM "draft_picks" WHERE "player"='matt delahey' AND "pick">112;
## Task Generate a SQL query to answer the following question: `What is the littlest round that has Matt Delahey, and a greater than 112 pick?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text...
SELECT AVG("pubs_2011") FROM "world_ranking_of_chemical_engineering_sc" WHERE "location"='mumbai' AND "totals_07_11"<1025;
## Task Generate a SQL query to answer the following question: `What is the average PUBS 11 value in Mumbai, which has a 07-11 totals less than 1025?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_ranking_of_chemical_engineering_sc" ( "school"...
SELECT MIN("totals_06_10") FROM "world_ranking_of_chemical_engineering_sc" WHERE "pubs_2010"=68 AND "totals_07_11">305;
## Task Generate a SQL query to answer the following question: `What is the lowest 06-10 totals with a pubs 2010 of 68 and a 07-11 totals larger than 305?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_ranking_of_chemical_engineering_sc" ( "sc...
SELECT "team" FROM "managerial_changes" WHERE "date_of_appointment"='10 november 2008';
## Task Generate a SQL query to answer the following question: `What is Team, when Date of Appointment is "10 November 2008"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_d...
SELECT "replaced_by" FROM "managerial_changes" WHERE "outgoing_manager"='ünal karaman';
## Task Generate a SQL query to answer the following question: `What is Replaced By, when Outgoing Manager is "Ünal Karaman"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_d...
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "date_of_vacancy"='25 september 2008';
## Task Generate a SQL query to answer the following question: `What is Outgoing Manager, when Date of Vacancy is "25 September 2008"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "ma...
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='hakan kutlu';
## Task Generate a SQL query to answer the following question: `What is Date of Appointment, when Outgoing Manager is "Hakan Kutlu"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "mann...
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='giray bulak';
## Task Generate a SQL query to answer the following question: `What is Date of Appointment, when Outgoing Manager is "Giray Bulak"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "mann...
SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_vacancy"='23 february 2009';
## Task Generate a SQL query to answer the following question: `What is Replaced By, when Date of Vacancy is "23 February 2009"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_o...
SELECT "team" FROM "game_log" WHERE "date"='december 30';
## Task Generate a SQL query to answer the following question: `WHAT IS THE TEAM FOR DECEMBER 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_reb...
SELECT "category" FROM "other_appearances_in_tour_de_france" WHERE "finish"='orange';
## Task Generate a SQL query to answer the following question: `Which category had an orange finish?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_appearances_in_tour_de_france" ( "year" real, "stage" real, "category" text, "start" text...
SELECT MIN("year") FROM "other_appearances_in_tour_de_france" WHERE "category"='1' AND "stage"=12;
## Task Generate a SQL query to answer the following question: `What is the lowest year for stage 12, category 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_appearances_in_tour_de_france" ( "year" real, "stage" real, "category" text, ...
SELECT "start" FROM "other_appearances_in_tour_de_france" WHERE "stage"=11;
## Task Generate a SQL query to answer the following question: `What is the start of stage 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "other_appearances_in_tour_de_france" ( "year" real, "stage" real, "category" text, "start" text, "f...
SELECT "model" FROM "cole_model_overview_1908_1925" WHERE "wheelbase_in"='136';
## Task Generate a SQL query to answer the following question: `Which model had a wheelbase of 136 inches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cole_model_overview_1908_1925" ( "year" text, "model" text, "engine_type_cyl" text, "powe...
SELECT "engine_type_cyl" FROM "cole_model_overview_1908_1925" WHERE "wheelbase_in"='127' AND "year"='1915';
## Task Generate a SQL query to answer the following question: `What is the engine type with a wheelbase of 127 inches in 1915?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cole_model_overview_1908_1925" ( "year" text, "model" text, "engine_ty...
SELECT "record" FROM "season_schedule" WHERE "date"='january 4';
## Task Generate a SQL query to answer the following question: `What was the record on January 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak...
SELECT "streak" FROM "season_schedule" WHERE "game">49;
## Task Generate a SQL query to answer the following question: `Which Streak has a Game larger than 49?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "...
SELECT "streak" FROM "season_schedule" WHERE "date"='january 7';
## Task Generate a SQL query to answer the following question: `Which Streak has a Date of january 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "st...
SELECT "country" FROM "repeat_winners" WHERE "wins">2 AND "rank"=2 AND "name"='federico bahamontes';
## Task Generate a SQL query to answer the following question: `Which Country has Wins larger than 2, and a Rank of 2, and a Name of federico bahamontes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "repeat_winners" ( "rank" real, "name" text, ...
SELECT MIN("rank") FROM "repeat_winners" WHERE "name"='richard virenque';
## Task Generate a SQL query to answer the following question: `What is richard virenque's lowest rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "repeat_winners" ( "rank" real, "name" text, "country" text, "wins" real, "years" text ); #...
SELECT "years" FROM "repeat_winners" WHERE "rank">2 AND "wins"=2 AND "country"='france';
## Task Generate a SQL query to answer the following question: `Which Years have a Rank larger than 2, and Wins of 2, and a Country of france?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "repeat_winners" ( "rank" real, "name" text, "country" t...
SELECT "home" FROM "regular_season" WHERE "visitor"='ny rangers';
## Task Generate a SQL query to answer the following question: `What is the home team with the ny rangers as the visitor team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" t...
SELECT "record" FROM "regular_season" WHERE "home"='philadelphia' AND "date"='october 13';
## Task Generate a SQL query to answer the following question: `What is the record on October 13, when philadelphia was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, ...
SELECT "season" FROM "best_figures_in_an_innings" WHERE "opponent"='source: . last updated: 28 june 2007.';
## Task Generate a SQL query to answer the following question: `What is Season, when Opponent is source: . last updated: 28 june 2007.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_figures_in_an_innings" ( "rank" text, "figures" text, "pl...
SELECT "venue" FROM "best_figures_in_an_innings" WHERE "figures"='5/29';
## Task Generate a SQL query to answer the following question: `What is Venue, when Figures is 5/29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_figures_in_an_innings" ( "rank" text, "figures" text, "player" text, "opponent" text, "v...
SELECT "opponent" FROM "best_figures_in_an_innings" WHERE "rank"='3';
## Task Generate a SQL query to answer the following question: `What is Opponent, when Rank is 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_figures_in_an_innings" ( "rank" text, "figures" text, "player" text, "opponent" text, "venu...
SELECT "player" FROM "best_figures_in_an_innings" WHERE "figures"='source: . last updated: 28 june 2007.';
## Task Generate a SQL query to answer the following question: `What is Player, when Figures is source: . last updated: 28 june 2007.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_figures_in_an_innings" ( "rank" text, "figures" text, "pla...
SELECT "player" FROM "best_figures_in_an_innings" WHERE "opponent"='source: . last updated: 28 june 2007.';
## Task Generate a SQL query to answer the following question: `What is Player, when Opponent is source: . last updated: 28 june 2007.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "best_figures_in_an_innings" ( "rank" text, "figures" text, "pl...
SELECT "home_team" FROM "third_round_proper" WHERE "date"='7 january 1956' AND "away_team"='accrington stanley';
## Task Generate a SQL query to answer the following question: `For the match played on 7 January 1956, with away team of Accrington Stanley, who was the home team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, ...
SELECT "tie_no" FROM "third_round_proper" WHERE "away_team"='fulham';
## Task Generate a SQL query to answer the following question: `Which Tie number had Fulham as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text,...
SELECT "tie_no" FROM "third_round_proper" WHERE "away_team"='middlesbrough';
## Task Generate a SQL query to answer the following question: `Which Tie number had Middlesbrough as the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team...
SELECT "date" FROM "third_round_proper" WHERE "tie_no"='29';
## Task Generate a SQL query to answer the following question: `On what day was Tie #29 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text...
SELECT "tie_no" FROM "third_round_proper" WHERE "date"='9 january 1956';
## Task Generate a SQL query to answer the following question: `Which Tie number was played on 9 January 1956?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text...
SELECT "tie_no" FROM "third_round_proper" WHERE "away_team"='scunthorpe & lindsey united';
## Task Generate a SQL query to answer the following question: `What is the Tie number for the match that had away team of Scunthorpe & Lindsey United?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team"...
SELECT "place" FROM "final_round" WHERE "score"='76-69-64-70=279';
## Task Generate a SQL query to answer the following question: `WHAT IS THE PLACE WITH A SCORE OF 76-69-64-70=279?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_p...
SELECT "place" FROM "final_round" WHERE "score"='73-65-73-71=282';
## Task Generate a SQL query to answer the following question: `WHAT IS THE PLACE WITH A SCORE OF 73-65-73-71=282?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_p...
SELECT "to_par" FROM "final_round" WHERE "player"='ernie els';
## Task Generate a SQL query to answer the following question: `WHAT IS THE TO PAR FOR ERNIE ELS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "mone...
SELECT "place" FROM "final_round" WHERE "score"='69-71-66-73=279';
## Task Generate a SQL query to answer the following question: `WHAT IS THE PLACE WITH THE SCORE 69-71-66-73=279?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_pa...
SELECT "winning_score" FROM "lpga_tour_wins_24" WHERE "tournament"='burdine''s invitational';
## Task Generate a SQL query to answer the following question: `What was the winning score at Burdine's Invitational?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_wins_24" ( "date" text, "tournament" text, "winning_score" text, "ma...
SELECT "runner_s_up" FROM "lpga_tour_wins_24" WHERE "winning_score"='+3 (69-70-71-77=287)';
## Task Generate a SQL query to answer the following question: `Who was the runner-up when the winning score is +3 (69-70-71-77=287)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_wins_24" ( "date" text, "tournament" text, "winning_sc...
SELECT "tournament" FROM "lpga_tour_wins_24" WHERE "winning_score"='–7 (66-72-69-74=281)';
## Task Generate a SQL query to answer the following question: `Which tournament has a winning score at –7 (66-72-69-74=281)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_wins_24" ( "date" text, "tournament" text, "winning_score" tex...
SELECT "date" FROM "lpga_tour_wins_24" WHERE "runner_s_up"='jerilyn britz';
## Task Generate a SQL query to answer the following question: `On what date is Jerilyn Britz the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_wins_24" ( "date" text, "tournament" text, "winning_score" text, "margin_of_v...
SELECT "date" FROM "lpga_tour_wins_24" WHERE "winning_score"='–8 (70-71-67=208)';
## Task Generate a SQL query to answer the following question: `On what date is the winning score –8 (70-71-67=208)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lpga_tour_wins_24" ( "date" text, "tournament" text, "winning_score" text, "mar...
SELECT "matches" FROM "world_cup_record" WHERE "year"='2003';
## Task Generate a SQL query to answer the following question: `What is Matches, when Year is "2003"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_cup_record" ( "year" text, "result" text, "matches" text, "wins" text, "draws" text, ...
SELECT "draws" FROM "world_cup_record" WHERE "losses"='did not qualify';
## Task Generate a SQL query to answer the following question: `What is Draws, when Losses is "Did Not Qualify"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_cup_record" ( "year" text, "result" text, "matches" text, "wins" text, "dra...
SELECT "result" FROM "world_cup_record" WHERE "losses"='did not qualify';
## Task Generate a SQL query to answer the following question: `What is Result, when Losses is "Did Not Qualify"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_cup_record" ( "year" text, "result" text, "matches" text, "wins" text, "dr...
SELECT "year" FROM "world_cup_record" WHERE "wins"='0';
## Task Generate a SQL query to answer the following question: `What is Year, when Wins is "0"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_cup_record" ( "year" text, "result" text, "matches" text, "wins" text, "draws" text, "loss...
SELECT "draws" FROM "world_cup_record" WHERE "wins"='did not qualify';
## Task Generate a SQL query to answer the following question: `What is Draws, when Wins is "Did Not Qualify"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_cup_record" ( "year" text, "result" text, "matches" text, "wins" text, "draws...
SELECT "matches" FROM "world_cup_record" WHERE "draws"='did not qualify' AND "year"='1995';
## Task Generate a SQL query to answer the following question: `What is Matches, when Draws is "Did Not Qualify", and when Year is "1995"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "world_cup_record" ( "year" text, "result" text, "matches" t...
SELECT "date" FROM "season_schedule" WHERE "score"='112–118';
## Task Generate a SQL query to answer the following question: `Which Date has a Score of 112–118?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "strea...
SELECT "record" FROM "season_schedule" WHERE "score"='111–101';
## Task Generate a SQL query to answer the following question: `Which Record has a Score of 111–101?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "str...
SELECT "game" FROM "season_schedule" WHERE "score"='122–125';
## Task Generate a SQL query to answer the following question: `Which Game has a Score of 122–125?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "strea...
SELECT "streak" FROM "season_schedule" WHERE "game"=3;
## Task Generate a SQL query to answer the following question: `Which Streak has a Game of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak" te...
SELECT "score" FROM "season_schedule" WHERE "record"='1–3';
## Task Generate a SQL query to answer the following question: `Which Score has a Record of 1–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "game" real, "date" text, "team" text, "score" text, "record" text, "streak"...
SELECT COUNT("total") FROM "medal_table" WHERE "silver">2;
## Task Generate a SQL query to answer the following question: `How many totals had a silver larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, ...
SELECT AVG("bronze") FROM "medal_table" WHERE "gold">1 AND "silver">2;
## Task Generate a SQL query to answer the following question: `What was the average bronze when gold was larger than 1 and silver was larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold...