question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What round had a result of 6–7 (6–8) , 1–6?
CREATE TABLE "singles_5_6" ( "edition" text, "round" text, "date" text, "surface" text, "opponent" text, "result" text );
SELECT "round" FROM "singles_5_6" WHERE "result"='6–7 (6–8) , 1–6';
2-18330817-9
Who was the opponent when the result was 7–6 (7–5) , 6–3?
CREATE TABLE "singles_5_6" ( "edition" text, "round" text, "date" text, "surface" text, "opponent" text, "result" text );
SELECT "opponent" FROM "singles_5_6" WHERE "result"='7–6 (7–5) , 6–3';
2-18330817-9
What clay surface edition had an opponent of miho saeki?
CREATE TABLE "singles_5_6" ( "edition" text, "round" text, "date" text, "surface" text, "opponent" text, "result" text );
SELECT "edition" FROM "singles_5_6" WHERE "surface"='clay' AND "opponent"='miho saeki';
2-18330817-9
What is To par, when Country is "Spain"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "country"='spain';
2-18122130-5
What is Country, when Player is "José María Olazábal"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "player"='josé maría olazábal';
2-18122130-5
What is Place, when Player is "John Cook"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "second_round" WHERE "player"='john cook';
2-18122130-5
What is Score, when Country is "United States", and when Player is "Raymond Floyd"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "country"='united states' AND "player"='raymond floyd';
2-18122130-5
What is To par, when Player is "Larry Rinker"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "player"='larry rinker';
2-18122130-5
What is Country, when Place is "T8", and when Score is "70-67=137"?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "place"='t8' AND "score"='70-67=137';
2-18122130-5
What Country is player Sandy Lyle from when she scored less than 69?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "country" FROM "first_round" WHERE "score"<69 AND "player"='sandy lyle';
2-18153721-4
What is the to par of Philip Parkin?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "to_par" FROM "first_round" WHERE "player"='philip parkin';
2-18153721-4
What was the lowest attendance was the opponent was chelsea?
CREATE TABLE "fa_cup" ( "round" text, "date" text, "opponent" text, "venue" text, "result" text, "attendance" real );
SELECT MIN("attendance") FROM "fa_cup" WHERE "opponent"='chelsea';
2-17905159-5
What is the Date of Birth of the CB Player with a Height of m (ft 4in)?
CREATE TABLE "hungary" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "date_of_birth" FROM "hungary" WHERE "pos"='cb' AND "height"='m (ft 4in)';
2-17759945-7
Which country had a t4 place and scored 66-73=139?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "place"='t4' AND "score"='66-73=139';
2-18131508-5
Who placed t1 in Scotland?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "place"='t1' AND "country"='scotland';
2-18131508-5
Who had a to par of e and scored 71-69=140?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "to_par"='e' AND "score"='71-69=140';
2-18131508-5
What is the to par for t10 and Colin Montgomerie?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "place"='t10' AND "player"='colin montgomerie';
2-18131508-5
What country scored 71-69=140?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "score"='71-69=140';
2-18131508-5
What week's game had a result of bye?
CREATE TABLE "regular_season" ( "week" text, "date" text, "opponent" text, "result" text, "record" text, "game_site" text );
SELECT "week" FROM "regular_season" WHERE "result"='bye';
2-18008691-2
What was the record at week 9?
CREATE TABLE "regular_season" ( "week" text, "date" text, "opponent" text, "result" text, "record" text, "game_site" text );
SELECT "record" FROM "regular_season" WHERE "week"='9';
2-18008691-2
What is the to par of player vijay singh?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "to_par" FROM "final_round" WHERE "player"='vijay singh';
2-18103106-7
Who is the player with playoff money from the United States?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "player" FROM "final_round" WHERE "money"='playoff' AND "country"='united states';
2-18103106-7
What is the place of the player from New Zealand?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "place" FROM "final_round" WHERE "country"='new zealand';
2-18103106-7
What is the to par of the player from the United States with a t1 place?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "to_par" FROM "final_round" WHERE "country"='united states' AND "place"='t1';
2-18103106-7
How much money does the player with a 72-70-71-72=285 score have?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "money" FROM "final_round" WHERE "score"='72-70-71-72=285';
2-18103106-7
What is the save of the game with a 7-6 score?
CREATE TABLE "schedule_results" ( "date" text, "opponent" text, "score" text, "site_stadium" text, "loss" text, "save" text, "attendance" real, "overall_record" text, "ncaat_record" text );
SELECT "save" FROM "schedule_results" WHERE "score"='7-6';
2-18025024-7
What is the save of the game where moran (1-2) lost?
CREATE TABLE "schedule_results" ( "date" text, "opponent" text, "score" text, "site_stadium" text, "loss" text, "save" text, "attendance" real, "overall_record" text, "ncaat_record" text );
SELECT "save" FROM "schedule_results" WHERE "loss"='moran (1-2)';
2-18025024-7
Who was the opponent on June 15?
CREATE TABLE "schedule_results" ( "date" text, "opponent" text, "score" text, "site_stadium" text, "loss" text, "save" text, "attendance" real, "overall_record" text, "ncaat_record" text );
SELECT "opponent" FROM "schedule_results" WHERE "date"='june 15';
2-18025024-7
What is the save of the game with rice as the opponent?
CREATE TABLE "schedule_results" ( "date" text, "opponent" text, "score" text, "site_stadium" text, "loss" text, "save" text, "attendance" real, "overall_record" text, "ncaat_record" text );
SELECT "save" FROM "schedule_results" WHERE "opponent"='rice';
2-18025024-7
What is the lowest Goals Agains, when Played is greater than 34?
CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );
SELECT MIN("goals_against") FROM "second_division_final_table" WHERE "played">34;
2-17785973-2
What is the lowest Lost, when Goals For is greater than 52, when Points 1 is "44", and when Drawn is less than 8?
CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );
SELECT MIN("lost") FROM "second_division_final_table" WHERE "goals_for">52 AND "points_1"='44' AND "drawn"<8;
2-17785973-2
What is the total number of Lost, when Played is less than 34?
CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text );
SELECT COUNT("lost") FROM "second_division_final_table" WHERE "played"<34;
2-17785973-2
Which song has a U.S. R&B 100 in 2010?
CREATE TABLE "solo_singles" ( "year" real, "song" text, "u_s_hot_100" text, "u_s_r_b" text, "u_s_hot_adult_cont" text, "album" text );
SELECT "song" FROM "solo_singles" WHERE "year"=2010 AND "u_s_r_b"='100';
2-18374423-3
What is the Lowest value in Against with Wins % of 50.4% and Losses less than 20?
CREATE TABLE "overall" ( "team" text, "matches" real, "wins" real, "wins_pct" text, "draws" real, "draws_pct" text, "losses" real, "losses_pct" text, "against" real );
SELECT MIN("against") FROM "overall" WHERE "wins_pct"='50.4%' AND "losses"<20;
2-17639363-1
Which Losses have a Wins % of 48.6%?
CREATE TABLE "overall" ( "team" text, "matches" real, "wins" real, "wins_pct" text, "draws" real, "draws_pct" text, "losses" real, "losses_pct" text, "against" real );
SELECT "losses" FROM "overall" WHERE "wins_pct"='48.6%';
2-17639363-1
What is the Champion at Sopot prior to 2006 with a Score of 6–4, 6–7(7), 6–3?
CREATE TABLE "men_s_doubles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );
SELECT "champion" FROM "men_s_doubles" WHERE "location"='sopot' AND "year"<2006 AND "score"='6–4, 6–7(7), 6–3';
2-17823320-2
In what Year was the match at Sopot with a Score of 2–6, 6–2, 6–3?
CREATE TABLE "men_s_doubles" ( "location" text, "year" real, "champion" text, "runner_up" text, "score" text );
SELECT COUNT("year") FROM "men_s_doubles" WHERE "location"='sopot' AND "score"='2–6, 6–2, 6–3';
2-17823320-2
Which Team has Podiums of 0, and a Position of nc†?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "podiums" text, "points" text, "position" text );
SELECT "team" FROM "career_summary" WHERE "podiums"='0' AND "position"='nc†';
2-18334077-1
Which Wins has a Team of scuderia toro rosso, Poles of 0, and Races of 16?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "podiums" text, "points" text, "position" text );
SELECT "wins" FROM "career_summary" WHERE "team"='scuderia toro rosso' AND "poles"='0' AND "races"='16';
2-18334077-1
Which Season has Podiums of 0, and Races of 16?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "podiums" text, "points" text, "position" text );
SELECT MAX("season") FROM "career_summary" WHERE "podiums"='0' AND "races"='16';
2-18334077-1
Which Wins has Podiums of 0, and a Series of masters of formula 3?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" text, "wins" text, "poles" text, "podiums" text, "points" text, "position" text );
SELECT "wins" FROM "career_summary" WHERE "podiums"='0' AND "series"='masters of formula 3';
2-18334077-1
What was the method used when the time was 4:52?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "method" FROM "mixed_martial_arts_record" WHERE "time"='4:52';
2-18177632-2
What was the result when the time was 4:15?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "res" FROM "mixed_martial_arts_record" WHERE "time"='4:15';
2-18177632-2
Which NHL team chose an American player from the United States Hockey League?
CREATE TABLE "round_four" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text );
SELECT "nhl_team" FROM "round_four" WHERE "nationality"='united states' AND "league_from"='united states hockey league';
2-18026409-6
What is the nationality of player Jani Hakanpaa?
CREATE TABLE "round_four" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text );
SELECT "nationality" FROM "round_four" WHERE "player"='jani hakanpaa';
2-18026409-6
From which league is the player chosen by the Atlanta Thrashers (from Dallas) 6?
CREATE TABLE "round_four" ( "pick_num" real, "player" text, "nationality" text, "position" text, "nhl_team" text, "team_from" text, "league_from" text );
SELECT "league_from" FROM "round_four" WHERE "nhl_team"='atlanta thrashers (from dallas) 6';
2-18026409-6
What median family income has a population greater than 93,643, with cleveland as the county?
CREATE TABLE "north_carolina_counties_ranked_by_per_ca" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT "median_family_income" FROM "north_carolina_counties_ranked_by_per_ca" WHERE "population">'93,643' AND "county"='cleveland';
2-1828132-1
How many households have yadkin as the county?
CREATE TABLE "north_carolina_counties_ranked_by_per_ca" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT "number_of_households" FROM "north_carolina_counties_ranked_by_per_ca" WHERE "county"='yadkin';
2-1828132-1
What is the highest pick for a year after 2010, and a round smaller than 1?
CREATE TABLE "team_players_drafted_into_the_nba" ( "year" real, "round" real, "pick" real, "player" text, "nba_club" text );
SELECT MAX("pick") FROM "team_players_drafted_into_the_nba" WHERE "year">2010 AND "round"<1;
2-18067099-3
What is the highest pick for a year after 2010 and a round larger than 1?
CREATE TABLE "team_players_drafted_into_the_nba" ( "year" real, "round" real, "pick" real, "player" text, "nba_club" text );
SELECT MAX("pick") FROM "team_players_drafted_into_the_nba" WHERE "year">2010 AND "round">1;
2-18067099-3
What is the sum for the pick of the year 2009, and a round smaller than 2 and an NBA Club Denver Nuggets?
CREATE TABLE "team_players_drafted_into_the_nba" ( "year" real, "round" real, "pick" real, "player" text, "nba_club" text );
SELECT SUM("pick") FROM "team_players_drafted_into_the_nba" WHERE "year"=2009 AND "round"<2 AND "nba_club"='denver nuggets';
2-18067099-3
Can you tell me the total number of Total that has the First round of 0, and the Finals smaller than 5?
CREATE TABLE "numbers_of_moments_by_decades" ( "first_round" text, "semifinals" real, "conference_finals" real, "finals" real, "total" real );
SELECT COUNT("total") FROM "numbers_of_moments_by_decades" WHERE "first_round"='0' AND "finals"<5;
2-18005942-2
Can you tell me the average Conference Finals that has Finals smaller than 5?
CREATE TABLE "numbers_of_moments_by_decades" ( "first_round" text, "semifinals" real, "conference_finals" real, "finals" real, "total" real );
SELECT AVG("conference_finals") FROM "numbers_of_moments_by_decades" WHERE "finals"<5;
2-18005942-2
Can you tell me the Finals that has the Conference Finals smaller than 12, and the Semifinals of 0, and the Total of 3?
CREATE TABLE "numbers_of_moments_by_decades" ( "first_round" text, "semifinals" real, "conference_finals" real, "finals" real, "total" real );
SELECT "finals" FROM "numbers_of_moments_by_decades" WHERE "conference_finals"<12 AND "semifinals"=0 AND "total"=3;
2-18005942-2
What's the sum of the headcounts that have an n/a value of $60k to $70K?
CREATE TABLE "faculty_and_staff" ( "data" text, "headcount" real, "percent_of_total" text, "less_than_25_000" text, "25_000_to_40_000" text, "40_000_to_50_000" text, "50_000_to_60_000" text, "60_000_to_70_000" text, "70_000_to_80_000" text, "more_than_80_000" text, "mean" text );
SELECT SUM("headcount") FROM "faculty_and_staff" WHERE "60_000_to_70_000"='n/a';
2-1824186-1
What's the mean of the $70-80k ones that have 2.80%?
CREATE TABLE "faculty_and_staff" ( "data" text, "headcount" real, "percent_of_total" text, "less_than_25_000" text, "25_000_to_40_000" text, "40_000_to_50_000" text, "50_000_to_60_000" text, "60_000_to_70_000" text, "70_000_to_80_000" text, "more_than_80_000" text, "mean" text );
SELECT "mean" FROM "faculty_and_staff" WHERE "70_000_to_80_000"='2.80%';
2-1824186-1
Which have more than $80k and a total percent of 2.2%?
CREATE TABLE "faculty_and_staff" ( "data" text, "headcount" real, "percent_of_total" text, "less_than_25_000" text, "25_000_to_40_000" text, "40_000_to_50_000" text, "50_000_to_60_000" text, "60_000_to_70_000" text, "70_000_to_80_000" text, "more_than_80_000" text, "mean" text );
SELECT "more_than_80_000" FROM "faculty_and_staff" WHERE "percent_of_total"='2.2%';
2-1824186-1
What's the total percent of the $40-50K ones that have n/a?
CREATE TABLE "faculty_and_staff" ( "data" text, "headcount" real, "percent_of_total" text, "less_than_25_000" text, "25_000_to_40_000" text, "40_000_to_50_000" text, "50_000_to_60_000" text, "60_000_to_70_000" text, "70_000_to_80_000" text, "more_than_80_000" text, "mean" text );
SELECT "percent_of_total" FROM "faculty_and_staff" WHERE "40_000_to_50_000"='n/a';
2-1824186-1
Which Label has a Country of canada, and a Format of cd/digital download?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_number_s" text );
SELECT "label" FROM "release_history" WHERE "country"='canada' AND "format"='cd/digital download';
2-18208286-1
Which Format has a Date of 14 october 2008, and a Label of eagle eye media?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_number_s" text );
SELECT "format" FROM "release_history" WHERE "date"='14 october 2008' AND "label"='eagle eye media';
2-18208286-1
Which Label has a Country of united kingdom, a Date of 22 september 2008, and a Catalogue number(s) of eredv711?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_number_s" text );
SELECT "label" FROM "release_history" WHERE "country"='united kingdom' AND "date"='22 september 2008' AND "catalogue_number_s"='eredv711';
2-18208286-1
Which Country has a Catalogue number(s) of eredv711?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_number_s" text );
SELECT "country" FROM "release_history" WHERE "catalogue_number_s"='eredv711';
2-18208286-1
Which Format has a Label of eagle eye media, a Catalogue number(s) of —, and a Country of united states?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_number_s" text );
SELECT "format" FROM "release_history" WHERE "label"='eagle eye media' AND "catalogue_number_s"='—' AND "country"='united states';
2-18208286-1
Which Format has a Label of eagle records, and a Catalogue number(s) of edgcd391?
CREATE TABLE "release_history" ( "country" text, "date" text, "label" text, "format" text, "catalogue_number_s" text );
SELECT "format" FROM "release_history" WHERE "label"='eagle records' AND "catalogue_number_s"='edgcd391';
2-18208286-1
What is the Height of the Player with a Date of Birth of 1978-02-16?
CREATE TABLE "greece" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "height" FROM "greece" WHERE "date_of_birth"='1978-02-16';
2-17774593-4
What is the Name of the D Player born on 1983-07-19?
CREATE TABLE "greece" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "name" FROM "greece" WHERE "pos"='d' AND "date_of_birth"='1983-07-19';
2-17774593-4
What is Eftychia Karagianni Pos.?
CREATE TABLE "greece" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "pos" FROM "greece" WHERE "name"='eftychia karagianni';
2-17774593-4
What is the track that from lcd soundsystem?
CREATE TABLE "main_songlist" ( "track" real, "song_title" text, "artist" text, "album" text, "legends_track" text );
SELECT "track" FROM "main_songlist" WHERE "artist"='lcd soundsystem';
2-17947634-1
What is the total number of UEFA Cup(s), when Total is greater than 3?
CREATE TABLE "most_appearances" ( "player" text, "position" text, "ekstraklasa" real, "polish_cup" real, "uefa_cup" real, "total" real );
SELECT COUNT("uefa_cup") FROM "most_appearances" WHERE "total">3;
2-17694624-3
What is the lowest Polish Cup, when Position is "Midfielder", when Player is "Miroslav Radović", and when Ekstraklasa is less than 1?
CREATE TABLE "most_appearances" ( "player" text, "position" text, "ekstraklasa" real, "polish_cup" real, "uefa_cup" real, "total" real );
SELECT MIN("polish_cup") FROM "most_appearances" WHERE "position"='midfielder' AND "player"='miroslav radović' AND "ekstraklasa"<1;
2-17694624-3
What is the sum of Polish Cup, when Player is "Maciej Iwański", and when Ekstraklasa is less than 1?
CREATE TABLE "most_appearances" ( "player" text, "position" text, "ekstraklasa" real, "polish_cup" real, "uefa_cup" real, "total" real );
SELECT SUM("polish_cup") FROM "most_appearances" WHERE "player"='maciej iwański' AND "ekstraklasa"<1;
2-17694624-3
What Election has a 2nd Member of frederick knight, and a 1st Member of sir edmund lechmere, bt?
CREATE TABLE "m_ps_1832_1885" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );
SELECT "election" FROM "m_ps_1832_1885" WHERE "2nd_member"='frederick knight' AND "1st_member"='sir edmund lechmere, bt';
2-1826125-1
What 2nd Member has a 1st Party of conservative, and a 1st Member of william edward dowdeswell?
CREATE TABLE "m_ps_1832_1885" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );
SELECT "2nd_member" FROM "m_ps_1832_1885" WHERE "1st_party"='conservative' AND "1st_member"='william edward dowdeswell';
2-1826125-1
What 2nd Party has an Election of 1885?
CREATE TABLE "m_ps_1832_1885" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );
SELECT "2nd_party" FROM "m_ps_1832_1885" WHERE "election"='1885';
2-1826125-1
What 2nd Party has an Election of 1834?
CREATE TABLE "m_ps_1832_1885" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );
SELECT "2nd_party" FROM "m_ps_1832_1885" WHERE "election"='1834';
2-1826125-1
What 2nd Member has a 2nd Party of conservative, and an Election of 1853 by-election?
CREATE TABLE "m_ps_1832_1885" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );
SELECT "2nd_member" FROM "m_ps_1832_1885" WHERE "2nd_party"='conservative' AND "election"='1853 by-election';
2-1826125-1
What 2nd Member has an Election of 1833 by-election?
CREATE TABLE "m_ps_1832_1885" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text );
SELECT "2nd_member" FROM "m_ps_1832_1885" WHERE "election"='1833 by-election';
2-1826125-1
Golfer Steve Pate has what To par?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "to_par" FROM "first_round" WHERE "player"='steve pate';
2-18122130-4
What was the score when they played the Boston Patriots?
CREATE TABLE "regular_season" ( "week" real, "date" text, "opponent" text, "result" text, "game_site" text, "record" text, "attendance" real );
SELECT "result" FROM "regular_season" WHERE "opponent"='boston patriots';
2-17782590-1
How many apps for the rank of 8 in the 2012/13 season?
CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" ( "rank" real, "name" text, "season" text, "club" text, "goals" real, "apps" real, "goals_per_match" real );
SELECT MAX("apps") FROM "most_goals_in_a_la_liga_season_at_least_" WHERE "rank"=8 AND "season"='2012/13';
2-17937080-7
How many goals per match when the player has more than 33 goals and more than 38 apps?
CREATE TABLE "most_goals_in_a_la_liga_season_at_least_" ( "rank" real, "name" text, "season" text, "club" text, "goals" real, "apps" real, "goals_per_match" real );
SELECT COUNT("goals_per_match") FROM "most_goals_in_a_la_liga_season_at_least_" WHERE "goals">33 AND "apps">38;
2-17937080-7
What was the score when Nacional was the champion, River Plate was the runner-up, and the venue was Centenario?
CREATE TABLE "finals" ( "year" real, "champion" text, "runner_up" text, "score" text, "city" text, "venue" text );
SELECT "score" FROM "finals" WHERE "champion"='nacional' AND "venue"='centenario' AND "runner_up"='river plate';
2-18141438-1
Who was the champion when atlético wanderers was the runner-up?
CREATE TABLE "finals" ( "year" real, "champion" text, "runner_up" text, "score" text, "city" text, "venue" text );
SELECT "champion" FROM "finals" WHERE "runner_up"='atlético wanderers';
2-18141438-1
In which city is the San Lorenzo Centenario venue located?
CREATE TABLE "finals" ( "year" real, "champion" text, "runner_up" text, "score" text, "city" text, "venue" text );
SELECT "city" FROM "finals" WHERE "venue"='san lorenzo centenario';
2-18141438-1
The game played 31 May 2010 was played on what surface?
CREATE TABLE "singles_finals_9_4_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "singles_finals_9_4_5" WHERE "date"='31 may 2010';
2-18087075-2
What tournament was played 16 September 2012?
CREATE TABLE "singles_finals_9_4_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "tournament" FROM "singles_finals_9_4_5" WHERE "date"='16 september 2012';
2-18087075-2
What is the score of the game played 26 July 2010?
CREATE TABLE "singles_finals_9_4_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "score" FROM "singles_finals_9_4_5" WHERE "date"='26 july 2010';
2-18087075-2
The match against Paul-Henri Mathieu had what outcome?
CREATE TABLE "singles_finals_9_4_5" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "outcome" FROM "singles_finals_9_4_5" WHERE "opponent"='paul-henri mathieu';
2-18087075-2
What is South Africa's to par?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "to_par" FROM "made_the_cut" WHERE "country"='south africa';
2-18139254-2
Who had a finish of t20?
CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish" text );
SELECT "player" FROM "made_the_cut" WHERE "finish"='t20';
2-18139254-2
What is the average pjehun measured by female enrollment?
CREATE TABLE "primary_education_statistics_by_district" ( "measure" text, "bombali" real, "bonthe" real, "kailahun" real, "kambia" text, "kenema" real, "koinadugu" real, "kono" real, "moyamba" text, "port_loko" text, "pujehun" real, "tonkolili" real );
SELECT AVG("pujehun") FROM "primary_education_statistics_by_district" WHERE "measure"='female enrollment';
2-18103265-1
What is the highest pjuehun with a kenema greater than 559, a kambia of 45,653, and a tonkolili greater than 113,926?
CREATE TABLE "primary_education_statistics_by_district" ( "measure" text, "bombali" real, "bonthe" real, "kailahun" real, "kambia" text, "kenema" real, "koinadugu" real, "kono" real, "moyamba" text, "port_loko" text, "pujehun" real, "tonkolili" real );
SELECT MAX("pujehun") FROM "primary_education_statistics_by_district" WHERE "kenema">559 AND "kambia"='45,653' AND "tonkolili">'113,926';
2-18103265-1
What is the sum of the kono with a bonthe greater than 21,238?
CREATE TABLE "primary_education_statistics_by_district" ( "measure" text, "bombali" real, "bonthe" real, "kailahun" real, "kambia" text, "kenema" real, "koinadugu" real, "kono" real, "moyamba" text, "port_loko" text, "pujehun" real, "tonkolili" real );
SELECT SUM("kono") FROM "primary_education_statistics_by_district" WHERE "bonthe">'21,238';
2-18103265-1
What party is the person who was first elected in 2000 and was re-elected?
CREATE TABLE "united_states_house_of_representatives_e" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "results"='re-elected' AND "first_elected"=2000;
2-1805191-23
Which report has a Set 3 value of 21–25?
CREATE TABLE "nagano_round" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text );
SELECT "report" FROM "nagano_round" WHERE "set_3"='21–25';
2-17998533-3
What was the Time when Set 3 was 25–14?
CREATE TABLE "nagano_round" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text );
SELECT "time" FROM "nagano_round" WHERE "set_3"='25–14';
2-17998533-3
When was there a Time of 18:00, and a Set 1 of 22–25?
CREATE TABLE "nagano_round" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text, "report" text );
SELECT "date" FROM "nagano_round" WHERE "time"='18:00' AND "set_1"='22–25';
2-17998533-3
How many Totals have a CONCACAF of 0, and an MLS Cup smaller than 6?
CREATE TABLE "most_appearances" ( "name" text, "years" text, "mls_cup" real, "u_s_open_cup" real, "concacaf" real, "other" real, "total" real );
SELECT COUNT("total") FROM "most_appearances" WHERE "concacaf"=0 AND "mls_cup"<6;
2-17984330-1
Which MLS Cup has another larger than 9, and a Total smaller than 72?
CREATE TABLE "most_appearances" ( "name" text, "years" text, "mls_cup" real, "u_s_open_cup" real, "concacaf" real, "other" real, "total" real );
SELECT AVG("mls_cup") FROM "most_appearances" WHERE "other">9 AND "total"<72;
2-17984330-1
What year has a not nominated result and a nomination title of "the color of fame"?
CREATE TABLE "submissions" ( "year_ceremony" text, "original_title" text, "film_title_used_in_nomination" text, "director" text, "result" text );
SELECT "year_ceremony" FROM "submissions" WHERE "result"='not nominated' AND "film_title_used_in_nomination"='the color of fame';
2-18123274-1