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 highest total for Scotland with a year won of 1985?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" real, "total" real, "to_par" real );
SELECT MAX("total") FROM "missed_the_cut" WHERE "country"='scotland' AND "year_s_won"=1985;
2-17991748-3
What is Date (Opening), when Opening Film is "Another Myanmar, Mae Sot"?
CREATE TABLE "history" ( "year" real, "date_opening" text, "date_closing" text, "opening_film" text, "number_of_screening" text );
SELECT "date_opening" FROM "history" WHERE "opening_film"='another myanmar, mae sot';
2-18220102-1
What is Date (Closing), when Opening Film is "Deconstruction of Korean Housewife"?
CREATE TABLE "history" ( "year" real, "date_opening" text, "date_closing" text, "opening_film" text, "number_of_screening" text );
SELECT "date_closing" FROM "history" WHERE "opening_film"='deconstruction of korean housewife';
2-18220102-1
What is the total number of Year(s), when Date (Opening) is "September 21"?
CREATE TABLE "history" ( "year" real, "date_opening" text, "date_closing" text, "opening_film" text, "number_of_screening" text );
SELECT COUNT("year") FROM "history" WHERE "date_opening"='september 21';
2-18220102-1
What is Date (Opening), when Year is less than 2010, and when Date (Closing) is "September 28"?
CREATE TABLE "history" ( "year" real, "date_opening" text, "date_closing" text, "opening_film" text, "number_of_screening" text );
SELECT "date_opening" FROM "history" WHERE "year"<2010 AND "date_closing"='september 28';
2-18220102-1
What is Date (Closing), when Year is greater than 2011?
CREATE TABLE "history" ( "year" real, "date_opening" text, "date_closing" text, "opening_film" text, "number_of_screening" text );
SELECT "date_closing" FROM "history" WHERE "year">2011;
2-18220102-1
Name the number of Earnings per share (¢) which has a Net profit (US $m) larger than 66, and a Year to April smaller than 2010?
CREATE TABLE "micro_focus_international_plc_financial_" ( "year_to_april" real, "revenue_us_million" real, "ebit_us_m" real, "net_profit_us_m" real, "earnings_per_share" real );
SELECT COUNT("earnings_per_share") FROM "micro_focus_international_plc_financial_" WHERE "net_profit_us_m">66 AND "year_to_april"<2010;
2-18077713-1
Name the total number of EBIT (US $m) in 2011 and a Earnings per share (¢) larger than 47?
CREATE TABLE "micro_focus_international_plc_financial_" ( "year_to_april" real, "revenue_us_million" real, "ebit_us_m" real, "net_profit_us_m" real, "earnings_per_share" real );
SELECT COUNT("ebit_us_m") FROM "micro_focus_international_plc_financial_" WHERE "year_to_april"=2011 AND "earnings_per_share">47;
2-18077713-1
Count the Earnings per share (¢) in April smaller than 2012, a Revenue (US $million) of 432.6 and a EBIT (US $m) smaller than 150.5?
CREATE TABLE "micro_focus_international_plc_financial_" ( "year_to_april" real, "revenue_us_million" real, "ebit_us_m" real, "net_profit_us_m" real, "earnings_per_share" real );
SELECT SUM("earnings_per_share") FROM "micro_focus_international_plc_financial_" WHERE "year_to_april"<2012 AND "revenue_us_million"=432.6 AND "ebit_us_m"<150.5;
2-18077713-1
COunt the EBIT (US $m) which has a Revenue (US $million) larger than 434.8 and a Net profit (US $m) larger than 96.4?
CREATE TABLE "micro_focus_international_plc_financial_" ( "year_to_april" real, "revenue_us_million" real, "ebit_us_m" real, "net_profit_us_m" real, "earnings_per_share" real );
SELECT COUNT("ebit_us_m") FROM "micro_focus_international_plc_financial_" WHERE "revenue_us_million">434.8 AND "net_profit_us_m">96.4;
2-18077713-1
What position does Barry Richter play?
CREATE TABLE "1988_nhl_entry_draft" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "position" FROM "1988_nhl_entry_draft" WHERE "player"='barry richter';
2-18278177-5
What nationality is Mark Hirth from Michigan State University (NCAA)?
CREATE TABLE "1988_nhl_entry_draft" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "nationality" FROM "1988_nhl_entry_draft" WHERE "college_junior_club_team"='michigan state university (ncaa)' AND "player"='mark hirth';
2-18278177-5
What NHL team does Rob White play on?
CREATE TABLE "1988_nhl_entry_draft" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "nhl_team" FROM "1988_nhl_entry_draft" WHERE "player"='rob white';
2-18278177-5
What is the pick number for position of D from the University of Maine (NCAA)?
CREATE TABLE "1988_nhl_entry_draft" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "pick_num" FROM "1988_nhl_entry_draft" WHERE "position"='d' AND "college_junior_club_team"='university of maine (ncaa)';
2-18278177-5
What college/junior/club team is a left wing from Canada?
CREATE TABLE "1988_nhl_entry_draft" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "college_junior_club_team" FROM "1988_nhl_entry_draft" WHERE "position"='left wing' AND "nationality"='canada';
2-18278177-5
What is the average last cf of the st. louis blues, who has less than 4 cf appearances and less than 1 cf wins?
CREATE TABLE "team_totals" ( "team" text, "cf_appearances" real, "cf_wins" real, "cup_wins" real, "last_cf" real );
SELECT AVG("last_cf") FROM "team_totals" WHERE "cf_appearances"<4 AND "cf_wins"<1 AND "team"='st. louis blues';
2-1792080-5
What is the lowest number of cf wins of the chicago blackhawks, which has more than 4 cf appearances, a last cf in 2013, and more than 2 cup wins?
CREATE TABLE "team_totals" ( "team" text, "cf_appearances" real, "cf_wins" real, "cup_wins" real, "last_cf" real );
SELECT MIN("cf_wins") FROM "team_totals" WHERE "cf_appearances">4 AND "last_cf"=2013 AND "team"='chicago blackhawks' AND "cup_wins">2;
2-1792080-5
What is the lowest number of last cfs of the team with 2 cf appearances, 0 cup wins, and less than 0 cf wins?
CREATE TABLE "team_totals" ( "team" text, "cf_appearances" real, "cf_wins" real, "cup_wins" real, "last_cf" real );
SELECT MIN("last_cf") FROM "team_totals" WHERE "cf_appearances"=2 AND "cup_wins"=0 AND "cf_wins"<0;
2-1792080-5
What position did the driver from Audi Sport North America finish in the race after 2008?
CREATE TABLE "complete_24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text );
SELECT "pos" FROM "complete_24_hours_of_le_mans_results" WHERE "team"='audi sport north america' AND "year">2008;
2-1802063-1
What event has 8 as the rank points, with 20 as the total?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "event" FROM "qualification" WHERE "rank_points"='8' AND "total"='20';
2-18191407-6
What shooter has wc munich as the event, and 8 as the rank points?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "shooter" FROM "qualification" WHERE "event"='wc munich' AND "rank_points"='8';
2-18191407-6
What score points have olympic gold medalist as the rank points?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "score_points" FROM "qualification" WHERE "rank_points"='olympic gold medalist';
2-18191407-6
What Northern Ireland Player has more than 36,000 Money with a To par of –7?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "player" FROM "final_round" WHERE "money">'36,000' AND "to_par"='–7' AND "country"='northern ireland';
2-18113463-7
With a To par of –5, what is Nick Faldo's Place?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "place" FROM "final_round" WHERE "to_par"='–5' AND "player"='nick faldo';
2-18113463-7
What is Fuzzy Zoeller's To par?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "to_par" FROM "final_round" WHERE "player"='fuzzy zoeller';
2-18113463-7
What is the Government the has the Kadima Party?
CREATE TABLE "list_of_ministers" ( "minister" text, "party" text, "governments" text, "term_start" text, "term_end" text );
SELECT "governments" FROM "list_of_ministers" WHERE "party"='kadima';
2-18133296-1
Which Rank points has a Score points of olympic silver medalist?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "rank_points" FROM "qualification" WHERE "score_points"='olympic silver medalist';
2-18191407-14
Which Shooter has a Rank points of 8 and a Event of wc milan?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "shooter" FROM "qualification" WHERE "rank_points"='8' AND "event"='wc milan';
2-18191407-14
Which Score points has an Event of og beijing, and Rank points of olympic gold medalist?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "score_points" FROM "qualification" WHERE "event"='og beijing' AND "rank_points"='olympic gold medalist';
2-18191407-14
Name Event of wc milan and a Total of 23?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "score_points" FROM "qualification" WHERE "event"='wc milan' AND "total"='23';
2-18191407-14
which Score points has a Rank points of 10, and an Event of wc milan?
CREATE TABLE "qualification" ( "shooter" text, "event" text, "rank_points" text, "score_points" text, "total" text );
SELECT "score_points" FROM "qualification" WHERE "rank_points"='10' AND "event"='wc milan';
2-18191407-14
What was willie goggin's score?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "score" FROM "final_leaderboard" WHERE "player"='willie goggin';
2-18007156-1
Which Place has a Country of united states, and a Money ($) larger than 0, and a Player of craig wood?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "place" FROM "final_leaderboard" WHERE "country"='united states' AND "money">0 AND "player"='craig wood';
2-18007156-1
What is the home team on March 7?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "regular_season" WHERE "date"='march 7';
2-18339377-2
What is the record on October 30?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "record" FROM "regular_season" WHERE "date"='october 30';
2-18339377-2
What is the record on February 19?
CREATE TABLE "regular_season" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "record" FROM "regular_season" WHERE "date"='february 19';
2-18339377-2
What was d. a. weibring's to par?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "third_round" WHERE "player"='d. a. weibring';
2-18153721-6
For which to par was the score 71-74-68=213?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "third_round" WHERE "score"='71-74-68=213';
2-18153721-6
What player scored 70-72-70=212?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "score"='70-72-70=212';
2-18153721-6
What is the to par for the score 72-69-68=209?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "third_round" WHERE "score"='72-69-68=209';
2-18153721-6
What was Australia's to par when the place was t9?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "third_round" WHERE "place"='t9' AND "country"='australia';
2-18153721-6
Wht did Mark O'Meara place when the to par was +2?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "to_par"='+2' AND "player"='mark o''meara';
2-18153721-6
What is the total number of losses for entries with 15 wins and a position larger than 3?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT SUM("losses") FROM "group_ii" WHERE "wins"=15 AND "position">3;
2-17747471-4
What is the goal difference for entries with more than 6 draws, a position lower than 12, and fewer than 9 wins?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT "goal_difference" FROM "group_ii" WHERE "draws">6 AND "position">12 AND "wins"<9;
2-17747471-4
What is the position of club Melilla CF, with a goal difference smaller than -10?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT SUM("position") FROM "group_ii" WHERE "club"='melilla cf' AND "goal_difference"<-10;
2-17747471-4
What is the sum of goals against for positions higher than 14, with fewer than 30 played?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT SUM("goals_against") FROM "group_ii" WHERE "position">14 AND "played"<30;
2-17747471-4
What is the average number of wins for entries with more than 32 points, a goal difference smaller than 23, and a Goals against of 36, and a Played smaller than 30?
CREATE TABLE "group_ii" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT AVG("wins") FROM "group_ii" WHERE "points">32 AND "goal_difference"<23 AND "goals_against"=36 AND "played"<30;
2-17747471-4
Which Location has a Year larger than 2006, and a Score of 6–3, 6–3?
CREATE TABLE "men_s_singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );
SELECT "location" FROM "men_s_singles" WHERE "year">2006 AND "score"='6–3, 6–3';
2-17823320-1
Which Score has a Year larger than 2004, and a Champion of gaël monfils?
CREATE TABLE "men_s_singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );
SELECT "score" FROM "men_s_singles" WHERE "year">2004 AND "champion"='gaël monfils';
2-17823320-1
Which Runner-up has a Year smaller than 2008, and a Champion of josé acasuso?
CREATE TABLE "men_s_singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );
SELECT "runner_up" FROM "men_s_singles" WHERE "year"<2008 AND "champion"='josé acasuso';
2-17823320-1
Which Champion has a Runner-up of florian mayer, and a Score of 7–6(6), 4–6, 7–5?
CREATE TABLE "men_s_singles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );
SELECT "champion" FROM "men_s_singles" WHERE "runner_up"='florian mayer' AND "score"='7–6(6), 4–6, 7–5';
2-17823320-1
WHAT IS THE SCORE WITH A WINNER AND OPPONENT BYRON BLACK?
CREATE TABLE "singles" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "score" FROM "singles" WHERE "outcome"='winner' AND "opponent"='byron black';
2-1804967-1
Which country has the city of London, England with more than 150,000 specimens?
CREATE TABLE "herbaria_in_the_british_isles" ( "name" text, "no_specimens" real, "abbr" text, "country" text, "city" text );
SELECT "country" FROM "herbaria_in_the_british_isles" WHERE "no_specimens">'150,000' AND "city"='london, england';
2-18032715-4
What is the number of points of the match with less than 22 games played?
CREATE TABLE "1_lyga" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );
SELECT COUNT("points") FROM "1_lyga" WHERE "games_played"<22;
2-18018248-3
What is the total number of loses of the club with a 4 position and less than 23 goals conceded?
CREATE TABLE "1_lyga" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );
SELECT COUNT("loses") FROM "1_lyga" WHERE "position"=4 AND "goals_conceded"<23;
2-18018248-3
What is the lowest number of games played of the club with more than 25 goals conceded, more than 17 goals scored, and a position of 7?
CREATE TABLE "1_lyga" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );
SELECT MIN("games_played") FROM "1_lyga" WHERE "goals_conceded">25 AND "goals_scored">17 AND "position"=7;
2-18018248-3
What is the lowest number of loses of the club with more than 42 goals scored, more than 20 goals conceded, and less than 3 draws?
CREATE TABLE "1_lyga" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );
SELECT MIN("loses") FROM "1_lyga" WHERE "goals_scored">42 AND "goals_conceded">20 AND "draws"<3;
2-18018248-3
What is the average number of points of the club with more than 23 goals conceded and a position larger than 12?
CREATE TABLE "1_lyga" ( "position" real, "club" text, "games_played" real, "wins" real, "draws" real, "loses" real, "goals_scored" real, "goals_conceded" real, "points" real );
SELECT AVG("points") FROM "1_lyga" WHERE "goals_conceded">23 AND "position">12;
2-18018248-3
How many goals did coe get?
CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" real, "transfer_fee" text );
SELECT MIN("goals") FROM "squad_information" WHERE "name"='coe';
2-17637370-1
What is the total number of ends when the transfer fee was dkk 14m?
CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" real, "transfer_fee" text );
SELECT COUNT("ends") FROM "squad_information" WHERE "transfer_fee"='dkk 14m';
2-17637370-1
Who had a transfer fee of dkk 6m?
CREATE TABLE "squad_information" ( "nat" text, "name" text, "since" text, "goals" real, "ends" real, "transfer_fee" text );
SELECT "name" FROM "squad_information" WHERE "transfer_fee"='dkk 6m';
2-17637370-1
Craig Parry with a score of 68-68=136 is in what place?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "second_round" WHERE "score"='68-68=136' AND "player"='craig parry';
2-18133211-5
What place is the golfer in who is from Spain?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "second_round" WHERE "country"='spain';
2-18133211-5
For what country does the golfer play who has a score of 72-65=137?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "score"='72-65=137';
2-18133211-5
Golfer Steve Pate is in what place?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "second_round" WHERE "player"='steve pate';
2-18133211-5
Which Bolton Wanderers career has 293 Apps?
CREATE TABLE "list_of_players" ( "nationality" text, "position" text, "bolton_wanderers_career" text, "apps" real, "total" real, "goals" text );
SELECT "bolton_wanderers_career" FROM "list_of_players" WHERE "apps"=293;
2-17856923-2
Which Bolton Wanderers career has a Total larger than 404, and a Position of fw, and Apps less than 492, and 79 Goals?
CREATE TABLE "list_of_players" ( "nationality" text, "position" text, "bolton_wanderers_career" text, "apps" real, "total" real, "goals" text );
SELECT "bolton_wanderers_career" FROM "list_of_players" WHERE "total">404 AND "position"='fw' AND "apps"<492 AND "goals"='79';
2-17856923-2
How many apps have 28 goals, and a Total smaller than 191?
CREATE TABLE "list_of_players" ( "nationality" text, "position" text, "bolton_wanderers_career" text, "apps" real, "total" real, "goals" text );
SELECT SUM("apps") FROM "list_of_players" WHERE "goals"='28' AND "total"<191;
2-17856923-2
On what Date is Sheffield Wednesday the Home team?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "second_round_proper" WHERE "home_team"='sheffield wednesday';
2-17943933-3
What is the Tie no of the Blackburn Rovers Away game?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "second_round_proper" WHERE "away_team"='blackburn rovers';
2-17943933-3
What is the Away team at the Wolverhampton Wanderers Home game with a Score of 2–0?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "away_team" FROM "second_round_proper" WHERE "score"='2–0' AND "home_team"='wolverhampton wanderers';
2-17943933-3
What is the Home team at the Blackburn Rovers Away game?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "home_team" FROM "second_round_proper" WHERE "away_team"='blackburn rovers';
2-17943933-3
What is the Home team in the game with a Score of 2–3?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "home_team" FROM "second_round_proper" WHERE "score"='2–3';
2-17943933-3
What is the 1st leg with Team 2 Lyon?
CREATE TABLE "third_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "third_round" WHERE "team_2"='lyon';
2-18210406-4
Which team is Team 1 with a Team 2 being Sporting CP?
CREATE TABLE "third_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_1" FROM "third_round" WHERE "team_2"='sporting cp';
2-18210406-4
What is the second leg for Team 1 Servette?
CREATE TABLE "third_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "third_round" WHERE "team_1"='servette';
2-18210406-4
What was the 1999 Tournament at the US Open?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "1988" text, "1990" text, "1991" text, "1992" text, "1993" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "career_sr" text, "career_win_loss" text );
SELECT "1999" FROM "grand_slam_singles_performance_timeline" WHERE "tournament"='us open';
2-18330817-11
What tournament was an A 1988, and a 2R 1999?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "1988" text, "1990" text, "1991" text, "1992" text, "1993" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "career_sr" text, "career_win_loss" text );
SELECT "tournament" FROM "grand_slam_singles_performance_timeline" WHERE "1988"='a' AND "1999"='2r';
2-18330817-11
What is the 1991 for 2R 1999?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "1988" text, "1990" text, "1991" text, "1992" text, "1993" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "career_sr" text, "career_win_loss" text );
SELECT "1991" FROM "grand_slam_singles_performance_timeline" WHERE "1999"='2r';
2-18330817-11
What is the 1999 for an A 1991, and a 1r 1997?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "1988" text, "1990" text, "1991" text, "1992" text, "1993" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "career_sr" text, "career_win_loss" text );
SELECT "1999" FROM "grand_slam_singles_performance_timeline" WHERE "1991"='a' AND "1997"='1r';
2-18330817-11
What is the 1991 with a 2r 1996?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "1988" text, "1990" text, "1991" text, "1992" text, "1993" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "career_sr" text, "career_win_loss" text );
SELECT "1991" FROM "grand_slam_singles_performance_timeline" WHERE "1996"='2r';
2-18330817-11
When was the Attendance larger than 74,382?
CREATE TABLE "group_stage" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real, "group_position" text );
SELECT "date" FROM "group_stage" WHERE "attendance">'74,382';
2-17626681-8
Which Opponents have Attendance larger than 10,346, and a Date of 25 november 2008?
CREATE TABLE "group_stage" ( "date" text, "opponents" text, "h_a" text, "result_f_a" text, "attendance" real, "group_position" text );
SELECT "opponents" FROM "group_stage" WHERE "attendance">'10,346' AND "date"='25 november 2008';
2-17626681-8
Which venue has a status of Five Nations and an against of 22?
CREATE TABLE "1983" ( "opposing_teams" text, "against" real, "date" text, "venue" text, "status" text );
SELECT "venue" FROM "1983" WHERE "status"='five nations' AND "against"=22;
2-18178608-4
What is the sum of the rounds of the match with brett chism as the opponent?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT SUM("round") FROM "mixed_martial_arts_record" WHERE "opponent"='brett chism';
2-18053227-2
What is the lwoest round of wild bill's fight night 21 at 5:00?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT MIN("round") FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "event"='wild bill''s fight night 21';
2-18053227-2
Which Country has a To par smaller than 7, and a Place of 1?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real );
SELECT "country" FROM "third_round" WHERE "to_par"<7 AND "place"='1';
2-17974840-5
Which Place has a Country of australia, and a Score of 70-70-72=212?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real );
SELECT "place" FROM "third_round" WHERE "country"='australia' AND "score"='70-70-72=212';
2-17974840-5
What was sweden's score in T9 place?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real );
SELECT "score" FROM "third_round" WHERE "place"='t9' AND "country"='sweden';
2-17974840-5
Which To par has a Country of england, and a Place of t9, and a Player of graeme storm?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" real );
SELECT MAX("to_par") FROM "third_round" WHERE "country"='england' AND "place"='t9' AND "player"='graeme storm';
2-17974840-5
What is Distance, when Venue is "Belgrade"?
CREATE TABLE "men" ( "nation" text, "distance" text, "athlete" text, "venue" text, "date" text );
SELECT "distance" FROM "men" WHERE "venue"='belgrade';
2-18084-7
What is Date, when Athlete is "Yussuf Alli"?
CREATE TABLE "men" ( "nation" text, "distance" text, "athlete" text, "venue" text, "date" text );
SELECT "date" FROM "men" WHERE "athlete"='yussuf alli';
2-18084-7
What is Distance, when Athlete is "Irving Saladino"?
CREATE TABLE "men" ( "nation" text, "distance" text, "athlete" text, "venue" text, "date" text );
SELECT "distance" FROM "men" WHERE "athlete"='irving saladino';
2-18084-7
What is Athlete, when Nation is "Nigeria"?
CREATE TABLE "men" ( "nation" text, "distance" text, "athlete" text, "venue" text, "date" text );
SELECT "athlete" FROM "men" WHERE "nation"='nigeria';
2-18084-7
What is Nation, when Date is "2004-07-22"?
CREATE TABLE "men" ( "nation" text, "distance" text, "athlete" text, "venue" text, "date" text );
SELECT "nation" FROM "men" WHERE "date"='2004-07-22';
2-18084-7
What is Distance, when Date is "2008-01-12"?
CREATE TABLE "men" ( "nation" text, "distance" text, "athlete" text, "venue" text, "date" text );
SELECT "distance" FROM "men" WHERE "date"='2008-01-12';
2-18084-7
What is the Week of the game with a Result of w 48–20?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "week" FROM "schedule" WHERE "result"='w 48–20';
2-17861179-1
What is the Record of the game with a Result of l 14–16?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "record" FROM "schedule" WHERE "result"='l 14–16';
2-17861179-1
What is the Date of the game with a Record of 2–3–1?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "date" FROM "schedule" WHERE "record"='2–3–1';
2-17861179-1
What opponent has 32 as the round?
CREATE TABLE "matches" ( "date" text, "time" text, "round" text, "opponent" text, "ground" text, "score" text );
SELECT "opponent" FROM "matches" WHERE "round"='32';
2-17634886-13