question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What is the lowest Gold, when Silver is 0, and when Bronze is 2?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "medal_table" WHERE "silver"=0 AND "bronze"=2;
2-17025228-3
What is the average Bronze, when Silver is 0, when Rank is 19, and when Total is greater than 2?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medal_table" WHERE "silver"=0 AND "rank"='19' AND "total">2;
2-17025228-3
What was the lowest number of pieces for a board released in 1984?
CREATE TABLE "versions" ( "release" real, "start" text, "pieces" real, "board_inches" text, "board_cm" text, "type" text );
SELECT MIN("pieces") FROM "versions" WHERE "release"=1984;
2-173475-1
What is the dimensions in centimeters of a theater board who started in 1940, who was released after 2010?
CREATE TABLE "versions" ( "release" real, "start" text, "pieces" real, "board_inches" text, "board_cm" text, "type" text );
SELECT "board_cm" FROM "versions" WHERE "start"='1940' AND "type"='theater' AND "release">2010;
2-173475-1
What is the average number of pieces for boards that started in 1941 and were released after 2001?
CREATE TABLE "versions" ( "release" real, "start" text, "pieces" real, "board_inches" text, "board_cm" text, "type" text );
SELECT AVG("pieces") FROM "versions" WHERE "start"='1941' AND "release">2001;
2-173475-1
What are the dimensions in inches of the board released before 2004, that started in 1941?
CREATE TABLE "versions" ( "release" real, "start" text, "pieces" real, "board_inches" text, "board_cm" text, "type" text );
SELECT "board_inches" FROM "versions" WHERE "release"<2004 AND "start"='1941';
2-173475-1
What is Venue, when Against is less than 30, and when Opposing Team is New South Wales?
CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "venue" FROM "matches" WHERE "against"<30 AND "opposing_team"='new south wales';
2-17004899-1
What is Status, when Date is 10/05/1975?
CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "status" FROM "matches" WHERE "date"='10/05/1975';
2-17004899-1
What is the lowest Against, when Opposing Team is Queensland?
CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text );
SELECT MIN("against") FROM "matches" WHERE "opposing_team"='queensland';
2-17004899-1
What is Date, when Status is Second Test?
CREATE TABLE "matches" ( "opposing_team" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "date" FROM "matches" WHERE "status"='second test';
2-17004899-1
Who was born in Porsgrunn?
CREATE TABLE "detailed_overview" ( "name" text, "place_of_birth" text, "date_of_birth" text, "club_apps" text, "club_goals" text, "int_caps" text, "int_goals" text, "previous_club" text, "date_joined" text, "end_1" real );
SELECT "name" FROM "detailed_overview" WHERE "place_of_birth"='porsgrunn';
2-17596418-1
Which Studio has a Rank smaller than 3, and a Director of adrian lyne?
CREATE TABLE "top_grossing_films_international" ( "rank" real, "title" text, "studio" text, "director" text, "gross" text );
SELECT "studio" FROM "top_grossing_films_international" WHERE "rank"<3 AND "director"='adrian lyne';
2-171293-2
Which Rank is the lowest one that has a Gross of $54,215,416?
CREATE TABLE "top_grossing_films_international" ( "rank" real, "title" text, "studio" text, "director" text, "gross" text );
SELECT MIN("rank") FROM "top_grossing_films_international" WHERE "gross"='$54,215,416';
2-171293-2
What is the date of the match against John McEnroe with a Score of 3–6, 6–3, 2–6?
CREATE TABLE "singles_finals_13_5_8" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "date" FROM "singles_finals_13_5_8" WHERE "opponent"='john mcenroe' AND "score"='3–6, 6–3, 2–6';
2-1717013-4
What is the Opponent of the game in 1989?
CREATE TABLE "singles_finals_13_5_8" ( "outcome" text, "date" real, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "opponent" FROM "singles_finals_13_5_8" WHERE "date"=1989;
2-1717013-4
What is the highest pick of ron whaley?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MAX("pick") FROM "washington_redskins_draft_history" WHERE "name"='ron whaley';
2-17100961-33
What is the overall sum of the game with a pick less than 8 from the college of western michigan?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "pick"<8 AND "college"='western michigan';
2-17100961-33
What is the position of the player from the college of western michigan?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "position" FROM "washington_redskins_draft_history" WHERE "college"='western michigan';
2-17100961-33
What is the lowest round of bob caldwell, who has a pick greater than 7 and an overall larger than 162?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("round") FROM "washington_redskins_draft_history" WHERE "pick">7 AND "name"='bob caldwell' AND "overall">162;
2-17100961-33
What is the college of dave adams, who has a pick greater than 7?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "college" FROM "washington_redskins_draft_history" WHERE "pick">7 AND "name"='dave adams';
2-17100961-33
What game took place on April 28?
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 );
SELECT "game" FROM "game_log" WHERE "date"='april 28';
2-17323042-11
What is the east with ev landsberg as the west?
CREATE TABLE "landesliga" ( "season" text, "north" text, "south" text, "east" text, "west" text );
SELECT "east" FROM "landesliga" WHERE "west"='ev landsberg';
2-16472737-6
What is the north with sb rosenheim as the south?
CREATE TABLE "landesliga" ( "season" text, "north" text, "south" text, "east" text, "west" text );
SELECT "north" FROM "landesliga" WHERE "south"='sb rosenheim';
2-16472737-6
What is the south with ev lindau as the west and svg burgkirchen as the east?
CREATE TABLE "landesliga" ( "season" text, "north" text, "south" text, "east" text, "west" text );
SELECT "south" FROM "landesliga" WHERE "west"='ev lindau' AND "east"='svg burgkirchen';
2-16472737-6
What season has esc holzkirchen south, esv buchloe west, and ehc bayreuth north?
CREATE TABLE "landesliga" ( "season" text, "north" text, "south" text, "east" text, "west" text );
SELECT "season" FROM "landesliga" WHERE "south"='esc holzkirchen' AND "west"='esv buchloe' AND "north"='ehc bayreuth';
2-16472737-6
What is south in the 2001-02 season, which had germering wanderers east?
CREATE TABLE "landesliga" ( "season" text, "north" text, "south" text, "east" text, "west" text );
SELECT "south" FROM "landesliga" WHERE "east"='germering wanderers' AND "season"='2001-02';
2-16472737-6
What was west when ev fürstenfeldbruck was south?
CREATE TABLE "landesliga" ( "season" text, "north" text, "south" text, "east" text, "west" text );
SELECT "west" FROM "landesliga" WHERE "south"='ev fürstenfeldbruck';
2-16472737-6
When revenue is smaller than 4,177 million in year 2008, what is the sum of earnings per share?
CREATE TABLE "bunzl_plc_financial_results" ( "year_ended" text, "revenue_million" real, "profit_loss_before_tax_m" real, "net_profit_m" real, "earnings_per_share_p" real );
SELECT SUM("earnings_per_share_p") FROM "bunzl_plc_financial_results" WHERE "year_ended"='2008' AND "revenue_million"<'4,177';
2-17202278-1
What is the year 2007 earnings per share?
CREATE TABLE "bunzl_plc_financial_results" ( "year_ended" text, "revenue_million" real, "profit_loss_before_tax_m" real, "net_profit_m" real, "earnings_per_share_p" real );
SELECT "earnings_per_share_p" FROM "bunzl_plc_financial_results" WHERE "year_ended"='2007';
2-17202278-1
What is the total net profit when earnings per share is 27.4, and profit/loss befor tax was smaller than 194.6 million?
CREATE TABLE "bunzl_plc_financial_results" ( "year_ended" text, "revenue_million" real, "profit_loss_before_tax_m" real, "net_profit_m" real, "earnings_per_share_p" real );
SELECT SUM("net_profit_m") FROM "bunzl_plc_financial_results" WHERE "earnings_per_share_p"=27.4 AND "profit_loss_before_tax_m"<194.6;
2-17202278-1
In year 2011 what is sum of profit/loss before tax and net profit larger than 123.8 million?
CREATE TABLE "bunzl_plc_financial_results" ( "year_ended" text, "revenue_million" real, "profit_loss_before_tax_m" real, "net_profit_m" real, "earnings_per_share_p" real );
SELECT COUNT("profit_loss_before_tax_m") FROM "bunzl_plc_financial_results" WHERE "year_ended"='2011' AND "net_profit_m">123.8;
2-17202278-1
What is the highest goals for less than 63 goals against, more than 65 points 1, and more than 10 losses?
CREATE TABLE "division_one_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT MAX("goals_for") FROM "division_one_final_table" WHERE "goals_against"<63 AND "points_1">65 AND "lost">10;
2-17618349-2
What is the highest position for less than 42 played?
CREATE TABLE "division_one_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT MAX("position") FROM "division_one_final_table" WHERE "played"<42;
2-17618349-2
What is the average day in December with a Record of 16-3-4 and a Game smaller than 23?
CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "score" text, "record" text );
SELECT AVG("december") FROM "schedule_and_results" WHERE "record"='16-3-4' AND "game"<23;
2-17323283-4
When the Runners-Up is larger than 0, what's the sum of winners?
CREATE TABLE "winners" ( "team" text, "winners" real, "runners_up" real, "years_won" text, "years_runner_up" text );
SELECT SUM("winners") FROM "winners" WHERE "runners_up">0;
2-1653950-4
When there are more than 1 winners and the team playing is pachuca, what's the lowest runners-up found?
CREATE TABLE "winners" ( "team" text, "winners" real, "runners_up" real, "years_won" text, "years_runner_up" text );
SELECT MIN("runners_up") FROM "winners" WHERE "team"='pachuca' AND "winners">1;
2-1653950-4
Can you tell me the Name that has the Assists of lake (154) lake (5.1 apg)?
CREATE TABLE "results" ( "league" text, "season" text, "name" text, "place" real, "record" text, "head_coach" text, "points" text, "rebounds" text, "assists" text, "steals" text, "turnover" text );
SELECT "name" FROM "results" WHERE "assists"='lake (154) lake (5.1 apg)';
2-17021991-1
Can you tell me the Name that has the Place of 1?
CREATE TABLE "results" ( "league" text, "season" text, "name" text, "place" real, "record" text, "head_coach" text, "points" text, "rebounds" text, "assists" text, "steals" text, "turnover" text );
SELECT "name" FROM "results" WHERE "place"=1;
2-17021991-1
Can you tell me the Rebounds that has the Name of pom baskets jena?
CREATE TABLE "results" ( "league" text, "season" text, "name" text, "place" real, "record" text, "head_coach" text, "points" text, "rebounds" text, "assists" text, "steals" text, "turnover" text );
SELECT "rebounds" FROM "results" WHERE "name"='pom baskets jena';
2-17021991-1
Can you tell me the Steals that has the Place of 6?
CREATE TABLE "results" ( "league" text, "season" text, "name" text, "place" real, "record" text, "head_coach" text, "points" text, "rebounds" text, "assists" text, "steals" text, "turnover" text );
SELECT "steals" FROM "results" WHERE "place"=6;
2-17021991-1
What is the Callsign in Brisbane with a Freq currently of 4rph?
CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "band" text, "freq_currently" text, "purpose" text );
SELECT "callsign" FROM "defunct_callsigns" WHERE "area_served"='brisbane' AND "freq_currently"='4rph';
2-17188917-2
What is the Freq currently of the 4GG Callsign?
CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "band" text, "freq_currently" text, "purpose" text );
SELECT "freq_currently" FROM "defunct_callsigns" WHERE "callsign"='4gg';
2-17188917-2
What is the Community Band with a 4BCB Callsign?
CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "band" text, "freq_currently" text, "purpose" text );
SELECT "band" FROM "defunct_callsigns" WHERE "purpose"='community' AND "callsign"='4bcb';
2-17188917-2
What is the Purpose of the Callsign with a Freq currently of 4gld?
CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "band" text, "freq_currently" text, "purpose" text );
SELECT "purpose" FROM "defunct_callsigns" WHERE "freq_currently"='4gld';
2-17188917-2
What is the Purpose of the Callsign with a Freq currently of 4rph?
CREATE TABLE "defunct_callsigns" ( "callsign" text, "area_served" text, "band" text, "freq_currently" text, "purpose" text );
SELECT "purpose" FROM "defunct_callsigns" WHERE "freq_currently"='4rph';
2-17188917-2
What was the press like for the world olympic record holder Roger Francois and Jaan Kikkas?
CREATE TABLE "records" ( "world_record" text, "press" text, "103_5" text, "roger_fran_ois" text, "paris_fra" text );
SELECT "press" FROM "records" WHERE "world_record"='olympic record' AND "roger_fran_ois"='jaan kikkas';
2-16690948-1
What was the press like in Paris for Roger Francois, and Carlo Galimberti?
CREATE TABLE "records" ( "world_record" text, "press" text, "103_5" text, "roger_fran_ois" text, "paris_fra" text );
SELECT "paris_fra" FROM "records" WHERE "press"='press' AND "roger_fran_ois"='carlo galimberti';
2-16690948-1
What is the total amount of world records for Roger Francois?
CREATE TABLE "records" ( "world_record" text, "press" text, "103_5" text, "roger_fran_ois" text, "paris_fra" text );
SELECT "roger_fran_ois" FROM "records" WHERE "world_record"='total';
2-16690948-1
What place had a score of 71-70-73-71=285?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real );
SELECT "place" FROM "final_round" WHERE "score"='71-70-73-71=285';
2-17290135-4
How much money for 1st place with a to par less than 1?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real );
SELECT COUNT("money") FROM "final_round" WHERE "place"='1' AND "to_par"<1;
2-17290135-4
What Player had a To par of +1?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "to_par"='+1';
2-17231302-6
What is the Country of the Player with a To par of +4 and Score of 73-71-73=217?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "third_round" WHERE "to_par"='+4' AND "score"='73-71-73=217';
2-17231302-6
What is the Place of the Player with a To par of +3 and Score of 73-70-73=216?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "to_par"='+3' AND "score"='73-70-73=216';
2-17231302-6
What is the Place of the Player with a Score of 72-70-72=214?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "score"='72-70-72=214';
2-17231302-6
Who is the kitmaker for the team whose team captain is Robert Enke?
CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text );
SELECT "kitmaker" FROM "personnel_and_sponsoring" WHERE "team_captain"='robert enke';
2-17182686-2
Which team uses the kitmaker Saller and has Krombacher as their shirt sponsor?
CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text );
SELECT "team" FROM "personnel_and_sponsoring" WHERE "kitmaker"='saller' AND "shirt_sponsor"='krombacher';
2-17182686-2
For the team led by head coach Felix Magath, who is the team captain?
CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text );
SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "head_coach"='felix magath';
2-17182686-2
For the team whose shirt sponsor is Krombacher, who is the team captain?
CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text );
SELECT "team_captain" FROM "personnel_and_sponsoring" WHERE "shirt_sponsor"='krombacher';
2-17182686-2
For the team whose shirt sponsor is Evonik, who is the kitmaker?
CREATE TABLE "personnel_and_sponsoring" ( "team" text, "head_coach" text, "team_captain" text, "kitmaker" text, "shirt_sponsor" text );
SELECT "kitmaker" FROM "personnel_and_sponsoring" WHERE "shirt_sponsor"='evonik';
2-17182686-2
Who is the Shirt Back Sponsor if the Shorts Sponsor is Telestet?
CREATE TABLE "kit_sponsors_and_manufacturers" ( "period" text, "manufacturer" text, "shirt_main_sponsor" text, "shirt_back_sponsor" text, "shorts_sponsor" text, "sleeves_sponsor" text );
SELECT "shirt_back_sponsor" FROM "kit_sponsors_and_manufacturers" WHERE "shorts_sponsor"='telestet';
2-16224775-31
Which of the Res., has Ryan Scheepe as an opponent?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text );
SELECT "res" FROM "mixed_martial_arts_record" WHERE "opponent"='ryan scheepe';
2-17441943-2
What position is Jeff Brown?
CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );
SELECT "position" FROM "round_five" WHERE "player"='jeff brown';
2-16441561-5
which player played on Team Hamilton?
CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );
SELECT "player" FROM "round_five" WHERE "cfl_team"='hamilton';
2-16441561-5
What CFL team does Jeff brown play for?
CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );
SELECT "cfl_team" FROM "round_five" WHERE "player"='jeff brown';
2-16441561-5
What is the total number of picks for Calgary College?
CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text );
SELECT COUNT("pick_num") FROM "round_five" WHERE "college"='calgary';
2-16441561-5
Who was the home team when the record was 2-3?
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "record"='2-3';
2-17442575-3
What was the record on April 10?
CREATE TABLE "detroit_red_wings_4_chicago_black_hawks_" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "record" FROM "detroit_red_wings_4_chicago_black_hawks_" WHERE "date"='april 10';
2-17442575-3
What spacecraft had an EVA that ended at 17:28?
CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text );
SELECT "spacecraft" FROM "ev_as" WHERE "end_time"='17:28';
2-17621896-3
What crew's EVA started on 20 February 20:09?
CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text );
SELECT "crew" FROM "ev_as" WHERE "start_date_time"='20 february 20:09';
2-17621896-3
The EVA that started on 8 July 12:38 went for how long?
CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text );
SELECT "duration" FROM "ev_as" WHERE "start_date_time"='8 july 12:38';
2-17621896-3
The EVA that started 8 July 12:38 was from what spacecraft?
CREATE TABLE "ev_as" ( "start_date_time" text, "duration" text, "end_time" text, "spacecraft" text, "crew" text );
SELECT "spacecraft" FROM "ev_as" WHERE "start_date_time"='8 july 12:38';
2-17621896-3
How many assists were in the k-league competition, which has more than 20 total Gs, the pohang steelers team, and chunnam dragons as the opponent?
CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_gs" real, "total_as" real );
SELECT "assists" FROM "members" WHERE "competition"='k-league' AND "total_gs">20 AND "team"='pohang steelers' AND "opponent"='chunnam dragons';
2-16861878-1
What is the average number of goals of park sung-ho at the k-league competition, which has the pohang steelers team and less than 46 total Gs?
CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_gs" real, "total_as" real );
SELECT AVG("goals") FROM "members" WHERE "competition"='k-league' AND "team"='pohang steelers' AND "name"='park sung-ho' AND "total_gs"<46;
2-16861878-1
What is the date of the k-league cup, which has less than 28 goals, at the jeonju venue?
CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_gs" real, "total_as" real );
SELECT "date" FROM "members" WHERE "venue"='jeonju' AND "goals"<28 AND "competition"='k-league cup';
2-16861878-1
What is the sum of the total As of team bucheon sk, who had the chunnam dragons as their opponent at the bucheon venue?
CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_gs" real, "total_as" real );
SELECT SUM("total_as") FROM "members" WHERE "team"='bucheon sk' AND "opponent"='chunnam dragons' AND "venue"='bucheon';
2-16861878-1
What is the sum of the assists kang jae-soon had in the k-league competition in ulsan?
CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_gs" real, "total_as" real );
SELECT SUM("assists") FROM "members" WHERE "venue"='ulsan' AND "competition"='k-league' AND "name"='kang jae-soon';
2-16861878-1
What is the sum of the goals on 2007-06-16?
CREATE TABLE "members" ( "name" text, "date" text, "goals" real, "assists" real, "team" text, "venue" text, "opponent" text, "competition" text, "total_gs" real, "total_as" real );
SELECT SUM("goals") FROM "members" WHERE "date"='2007-06-16';
2-16861878-1
What was Bill Glasson's score to par after 2 rounds?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "player"='bill glasson';
2-17162214-3
What was Phil Mickelson's score to par?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "player"='phil mickelson';
2-17162214-3
What place was Bill Glasson in?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "second_round" WHERE "player"='bill glasson';
2-17162214-3
What is the average pick with 85 overall in a round lower than 3?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT AVG("pick") FROM "washington_redskins_draft_history" WHERE "overall"=85 AND "round"<3;
2-17100961-85
What was the 2009 results that has q1 for 2010, and A as the result for 2011?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2009" FROM "singles_performance_timeline" WHERE "2010"='q1' AND "2011"='a';
2-16956201-7
What were the 2009 results that has 0 in 2010?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2009" FROM "singles_performance_timeline" WHERE "2010"='0';
2-16956201-7
With a 2011 of 0 what was the 2006 result?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2006" FROM "singles_performance_timeline" WHERE "2011"='0';
2-16956201-7
What is the result for 2004 when A is the result for 2005, and the result of q1 when 2009?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2004" FROM "singles_performance_timeline" WHERE "2005"='a' AND "2009"='q1';
2-16956201-7
With a 2008 result of 153 what is the result for 2007?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2007" FROM "singles_performance_timeline" WHERE "2008"='153';
2-16956201-7
What are the results in 2008 when 2009 is 0, and the ATP Tournaments Won is the tournament?
CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text );
SELECT "2008" FROM "singles_performance_timeline" WHERE "2009"='0' AND "tournament"='atp tournaments won';
2-16956201-7
Which team was in 1951?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT "team" FROM "motorcycle_grand_prix_results" WHERE "year"=1951;
2-16877441-3
What is the date of the match with arnaud di pasquale as the opponent in the final?
CREATE TABLE "singles_23_14_9" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "date" FROM "singles_23_14_9" WHERE "opponent_in_the_final"='arnaud di pasquale';
2-1728009-3
What is the date of the match with a winner outcome and jim courier as the opponent in the final?
CREATE TABLE "singles_23_14_9" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "date" FROM "singles_23_14_9" WHERE "outcome"='winner' AND "opponent_in_the_final"='jim courier';
2-1728009-3
What is the surface of the palermo, italy championship?
CREATE TABLE "singles_23_14_9" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent_in_the_final" text, "score_in_the_final" text );
SELECT "surface" FROM "singles_23_14_9" WHERE "championship"='palermo, italy';
2-1728009-3
In what Round was OL Player Richard Zulys picked?
CREATE TABLE "cfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school_club_team" text );
SELECT SUM("round") FROM "cfl_draft" WHERE "position"='ol' AND "player"='richard zulys';
2-16898777-1
What is the Player from McGill?
CREATE TABLE "cfl_draft" ( "round" real, "pick" text, "player" text, "position" text, "school_club_team" text );
SELECT "player" FROM "cfl_draft" WHERE "school_club_team"='mcgill';
2-16898777-1
Which College had an Overall pick of 171?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "college" FROM "washington_redskins_draft_history" WHERE "overall"=171;
2-17100961-13
Who had the overall pick of 72?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "name" FROM "washington_redskins_draft_history" WHERE "overall"=72;
2-17100961-13
What primary conference does the team nicknamed Phoenix belongs to?
CREATE TABLE "member_teams" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text, "home_rink" text );
SELECT "primary_conference" FROM "member_teams" WHERE "team_nickname"='phoenix';
2-16403890-1
Where is the location for the home rink Triangle sports plex/Greensboro ice house?
CREATE TABLE "member_teams" ( "institution" text, "location" text, "founded" real, "affiliation" text, "enrollment" real, "team_nickname" text, "primary_conference" text, "home_rink" text );
SELECT "location" FROM "member_teams" WHERE "home_rink"='triangle sports plex/greensboro ice house';
2-16403890-1
What pick was a player that previously played for the Minnesota Lynx?
CREATE TABLE "2000_indiana_fever_miami_sol_portland_fi" ( "pick" real, "player" text, "nationality" text, "new_wnba_team" text, "former_wnba_team" text, "college_country_team" text );
SELECT SUM("pick") FROM "2000_indiana_fever_miami_sol_portland_fi" WHERE "former_wnba_team"='minnesota lynx';
2-17308269-4
Which player was picked after 23?
CREATE TABLE "2000_indiana_fever_miami_sol_portland_fi" ( "pick" real, "player" text, "nationality" text, "new_wnba_team" text, "former_wnba_team" text, "college_country_team" text );
SELECT "player" FROM "2000_indiana_fever_miami_sol_portland_fi" WHERE "pick">23;
2-17308269-4
What is the nationality of the player who went to college at Mississippi?
CREATE TABLE "2000_indiana_fever_miami_sol_portland_fi" ( "pick" real, "player" text, "nationality" text, "new_wnba_team" text, "former_wnba_team" text, "college_country_team" text );
SELECT "nationality" FROM "2000_indiana_fever_miami_sol_portland_fi" WHERE "college_country_team"='mississippi';
2-17308269-4