question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What round has mathieu garon as the player?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text );
SELECT "round" FROM "draft_picks" WHERE "player"='mathieu garon';
2-14028980-7
What nationality has a position of left wing, and a round greater than 4, with mattia baldi as the player?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text );
SELECT "nationality" FROM "draft_picks" WHERE "position"='left wing' AND "round">4 AND "player"='mattia baldi';
2-14028980-7
How many rounds have goalie as the position?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team" text );
SELECT SUM("round") FROM "draft_picks" WHERE "position"='goalie';
2-14028980-7
Which Competition has a Date of may 2, 1993?
CREATE TABLE "international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text );
SELECT "competition" FROM "international_goals" WHERE "date"='may 2, 1993';
2-1513512-1
Which Result has a Goal larger than 6, and a Score of 1–0, and a Competition of friendly, and a Date of may 31, 1998?
CREATE TABLE "international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text );
SELECT "result" FROM "international_goals" WHERE "goal">6 AND "score"='1–0' AND "competition"='friendly' AND "date"='may 31, 1998';
2-1513512-1
What was the score on april 4, 1993?
CREATE TABLE "international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text );
SELECT "score" FROM "international_goals" WHERE "date"='april 4, 1993';
2-1513512-1
What is listed for the 3 credits that also has a 2 credits of 99.7%?
CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" text, "2_credits" text, "3_credits" text, "4_credits" text, "5_credits" text );
SELECT "3_credits" FROM "deuces_wild" WHERE "2_credits"='99.7%';
2-148535-2
What's the listed Hand has 3 credits of 6?
CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" text, "2_credits" text, "3_credits" text, "4_credits" text, "5_credits" text );
SELECT "hand" FROM "deuces_wild" WHERE "3_credits"='6';
2-148535-2
What is listed for the 4 credits that has 5 credits of 125?
CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" text, "2_credits" text, "3_credits" text, "4_credits" text, "5_credits" text );
SELECT "4_credits" FROM "deuces_wild" WHERE "5_credits"='125';
2-148535-2
What is listed for 5 credits that has 1 credit of 300?
CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" text, "2_credits" text, "3_credits" text, "4_credits" text, "5_credits" text );
SELECT "5_credits" FROM "deuces_wild" WHERE "1_credit"='300';
2-148535-2
What's the 1 credit with a Hand of Theoretical Return?
CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" text, "2_credits" text, "3_credits" text, "4_credits" text, "5_credits" text );
SELECT "1_credit" FROM "deuces_wild" WHERE "hand"='theoretical return';
2-148535-2
What is listed for the Hand that has a 1 credit of 1?
CREATE TABLE "deuces_wild" ( "hand" text, "1_credit" text, "2_credits" text, "3_credits" text, "4_credits" text, "5_credits" text );
SELECT "hand" FROM "deuces_wild" WHERE "1_credit"='1';
2-148535-2
What is the games number when the Position was wr, and a Number larger than 17?
CREATE TABLE "alabama" ( "position" text, "number" real, "name" text, "height" text, "weight" text, "class" text, "hometown" text, "games" real );
SELECT COUNT("games") FROM "alabama" WHERE "position"='wr' AND "number">17;
2-14624447-32
What is the number when the height shows 6'6"', and a Games number smaller than 4?
CREATE TABLE "alabama" ( "position" text, "number" real, "name" text, "height" text, "weight" text, "class" text, "hometown" text, "games" real );
SELECT AVG("number") FROM "alabama" WHERE "height"='6''6\"''' AND "games"<4;
2-14624447-32
What is the class for the position of lg?
CREATE TABLE "alabama" ( "position" text, "number" real, "name" text, "height" text, "weight" text, "class" text, "hometown" text, "games" real );
SELECT "class" FROM "alabama" WHERE "position"='lg';
2-14624447-32
What is the highest weight for the Farnley Stakes race?
CREATE TABLE "2001_02_season_as_a_five_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text );
SELECT MAX("weight_kg") FROM "2001_02_season_as_a_five_year_old" WHERE "race"='farnley stakes';
2-1358608-3
What time is associated with the event that happened in Tokyo, Japan, ending in a draw, with 3 rounds?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "date" text, "round" real, "time" text, "location" text );
SELECT "time" FROM "mixed_martial_arts_record" WHERE "location"='tokyo, japan' AND "round"=3 AND "res"='draw';
2-13707648-2
Which 2012 has a 2007 of 0 / 4?
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_sr" text, "career_w...
SELECT "2012" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2007"='0 / 4';
2-15003163-4
Which 2011 has a Career Win-Loss of 7–10?
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_sr" text, "career_w...
SELECT "2011" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "career_win_loss"='7–10';
2-15003163-4
Which 1998 has a 2002 of 2–4?
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_sr" text, "career_w...
SELECT "1998" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2002"='2–4';
2-15003163-4
Which 2002 has a 2008 of 3–3?
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_sr" text, "career_w...
SELECT "2002" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2008"='3–3';
2-15003163-4
Which 2003 has a 2012 of 1r, and a 2008 of 1r?
CREATE TABLE "grand_slam_men_s_doubles_performance_tim" ( "tournament" text, "1998" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "career_sr" text, "career_w...
SELECT "2003" FROM "grand_slam_men_s_doubles_performance_tim" WHERE "2012"='1r' AND "2008"='1r';
2-15003163-4
What club is robert gallery a part of
CREATE TABLE "team_players_in_the_nfl" ( "player" text, "position" text, "round" real, "pick" real, "nfl_club" text );
SELECT "nfl_club" FROM "team_players_in_the_nfl" WHERE "player"='robert gallery';
2-13798027-2
How many attendance numbers had more than 15 games, and sellouts of more than 8 in the 2011-12 season?
CREATE TABLE "cintas_center" ( "season" text, "record" text, "pct" real, "games" real, "attendance" real, "average" real, "sellouts" real );
SELECT COUNT("attendance") FROM "cintas_center" WHERE "games">15 AND "sellouts">8 AND "season"='2011-12';
2-14594528-2
What's the mean attendance number when the record is 12-4 and the average is less than 10,027?
CREATE TABLE "cintas_center" ( "season" text, "record" text, "pct" real, "games" real, "attendance" real, "average" real, "sellouts" real );
SELECT AVG("attendance") FROM "cintas_center" WHERE "record"='12-4' AND "average"<'10,027';
2-14594528-2
What is the full amount of averages when the sellouts are less than 14, the season is 2011-12, and attendance is less than 162,474?
CREATE TABLE "cintas_center" ( "season" text, "record" text, "pct" real, "games" real, "attendance" real, "average" real, "sellouts" real );
SELECT COUNT("average") FROM "cintas_center" WHERE "sellouts"<14 AND "season"='2011-12' AND "attendance"<'162,474';
2-14594528-2
What medal was awarded in the men's freestyle 52 kg?
CREATE TABLE "list_of_medalists" ( "medal" text, "name" text, "games" text, "sport" text, "event" text );
SELECT "medal" FROM "list_of_medalists" WHERE "event"='men''s freestyle 52 kg';
2-14938152-4
Events smaller than 1 had what highest cuts made?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MAX("cuts_made") FROM "summary" WHERE "events"<1;
2-13965339-3
What position was played with a Difference of - 5, and a Played larger than 14?
CREATE TABLE "campeonato_brasileiro_s_rie_c" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT AVG("position") FROM "campeonato_brasileiro_s_rie_c" WHERE "difference"='- 5' AND "played">14;
2-15206839-3
How many games lost associated with under 14 played?
CREATE TABLE "campeonato_brasileiro_s_rie_c" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT COUNT("lost") FROM "campeonato_brasileiro_s_rie_c" WHERE "played"<14;
2-15206839-3
How many games against for team guarani with under 3 draws?
CREATE TABLE "campeonato_brasileiro_s_rie_c" ( "position" real, "team" text, "points" real, "played" real, "drawn" real, "lost" real, "against" real, "difference" text );
SELECT SUM("against") FROM "campeonato_brasileiro_s_rie_c" WHERE "team"='guarani' AND "drawn"<3;
2-15206839-3
What Congress had less than 23 cosponsors and had June 30, 2005 as the date of introduction of the bill?
CREATE TABLE "legislative_history" ( "congress" text, "bill_number_s" text, "date_introduced" text, "sponsor_s" text, "num_of_cosponsors" real, "latest_status" text );
SELECT "congress" FROM "legislative_history" WHERE "num_of_cosponsors"<23 AND "date_introduced"='june 30, 2005';
2-13829540-1
Who sponsored the bill introduced on June 9, 2011?
CREATE TABLE "legislative_history" ( "congress" text, "bill_number_s" text, "date_introduced" text, "sponsor_s" text, "num_of_cosponsors" real, "latest_status" text );
SELECT "sponsor_s" FROM "legislative_history" WHERE "date_introduced"='june 9, 2011';
2-13829540-1
Who sponsored the bill that was introduced on June 2, 2009?
CREATE TABLE "legislative_history" ( "congress" text, "bill_number_s" text, "date_introduced" text, "sponsor_s" text, "num_of_cosponsors" real, "latest_status" text );
SELECT "sponsor_s" FROM "legislative_history" WHERE "date_introduced"='june 2, 2009';
2-13829540-1
What is the Outcome of the Melbourne Tournament?
CREATE TABLE "doubles_12_6_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "outcome" FROM "doubles_12_6_6" WHERE "tournament"='melbourne';
2-15095718-9
In what Tournament was Janet Young a Partner?
CREATE TABLE "doubles_12_6_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "tournament" FROM "doubles_12_6_6" WHERE "partner"='janet young';
2-15095718-9
What was the Outcome of the match with a Score of w/o?
CREATE TABLE "doubles_12_6_6" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "outcome" FROM "doubles_12_6_6" WHERE "score"='w/o';
2-15095718-9
Which Date has a Result of win, and a Streak of won 2, and 76ers points of 96, and a Record of 20-50?
CREATE TABLE "season_schedule" ( "game" real, "date" text, "opponent" text, "result" text, "76ers_points" real, "opponent_points" real, "record" text, "streak" text );
SELECT "date" FROM "season_schedule" WHERE "result"='win' AND "streak"='won 2' AND "76ers_points"=96 AND "record"='20-50';
2-14828511-3
Which Date has a Streak of lost 1, and 76ers points smaller than 94, and a Game larger than 13, and a Record of 14-40?
CREATE TABLE "season_schedule" ( "game" real, "date" text, "opponent" text, "result" text, "76ers_points" real, "opponent_points" real, "record" text, "streak" text );
SELECT "date" FROM "season_schedule" WHERE "streak"='lost 1' AND "76ers_points"<94 AND "game">13 AND "record"='14-40';
2-14828511-3
Which school or club team has a pick of 139?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );
SELECT "school_club_team" FROM "nfl_draft" WHERE "pick"=139;
2-15093704-1
What is the pick number for the player playing tackle position, and a round less than 15?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );
SELECT SUM("pick") FROM "nfl_draft" WHERE "position"='tackle' AND "round"<15;
2-15093704-1
Which school of club team has a pick of 46?
CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "school_club_team" text );
SELECT "school_club_team" FROM "nfl_draft" WHERE "pick"=46;
2-15093704-1
Who got 59.486 for Qual 2?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text );
SELECT "name" FROM "qualifying_results" WHERE "qual_2"='59.486';
2-14727389-1
Who got 59.578 for Qual 1?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text );
SELECT "name" FROM "qualifying_results" WHERE "qual_1"='59.578';
2-14727389-1
What team was Andrew Ranger in?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text );
SELECT "team" FROM "qualifying_results" WHERE "name"='andrew ranger';
2-14727389-1
What team has 59.372 for qual 1?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text );
SELECT "team" FROM "qualifying_results" WHERE "qual_1"='59.372';
2-14727389-1
What did Alex Tagliani get for Qual 1?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text );
SELECT "qual_1" FROM "qualifying_results" WHERE "name"='alex tagliani';
2-14727389-1
What was the result of the game on November 7, 1999?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "date"='november 7, 1999';
2-14609698-2
When was the game before week 15 with the result of bye?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "week"<15 AND "result"='bye';
2-14609698-2
Who is the writer of Wallace & Gromit: A Close Shave, a short film from before 2008?
CREATE TABLE "film" ( "year" real, "title" text, "director" text, "writer" text, "notes" text );
SELECT "writer" FROM "film" WHERE "year"<2008 AND "notes"='short film' AND "title"='wallace & gromit: a close shave';
2-149052-1
What notes did the creature comforts film have?
CREATE TABLE "film" ( "year" real, "title" text, "director" text, "writer" text, "notes" text );
SELECT "notes" FROM "film" WHERE "title"='creature comforts';
2-149052-1
Who is the director of Wallace & Gromit: The Curse of the Were-Rabbit?
CREATE TABLE "film" ( "year" real, "title" text, "director" text, "writer" text, "notes" text );
SELECT "director" FROM "film" WHERE "title"='wallace & gromit: the curse of the were-rabbit';
2-149052-1
What is the earliest year of Wallace & Gromit: The Curse of the Were-Rabbit?
CREATE TABLE "film" ( "year" real, "title" text, "director" text, "writer" text, "notes" text );
SELECT MIN("year") FROM "film" WHERE "title"='wallace & gromit: the curse of the were-rabbit';
2-149052-1
what was the length of the game on may 19
CREATE TABLE "schedule" ( "race" text, "length" text, "class" text, "circuit" text, "date" text );
SELECT "length" FROM "schedule" WHERE "date"='may 19';
2-13643154-1
March of 26 has what lowest game?
CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text );
SELECT MIN("game") FROM "schedule_and_results" WHERE "march"=26;
2-13912739-7
March of 29 involves what highest scoring game?
CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text );
SELECT MAX("game") FROM "schedule_and_results" WHERE "march"=29;
2-13912739-7
Game larger than 76, and a March larger than 26 involves what score?
CREATE TABLE "schedule_and_results" ( "game" real, "march" real, "opponent" text, "score" text, "record" text );
SELECT "score" FROM "schedule_and_results" WHERE "game">76 AND "march">26;
2-13912739-7
What was the time when the laps were smaller than 66 and the grid was 15?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "time_retired" FROM "race" WHERE "laps"<66 AND "grid"=15;
2-14233507-2
What was the grid for anthony davidson when the laps were less than 8?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("grid") FROM "race" WHERE "driver"='anthony davidson' AND "laps"<8;
2-14233507-2
What team did carlos cardus drive for in 1983 when he got less than 21 points?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real );
SELECT "team" FROM "motorcycle_grand_prix_results" WHERE "points"<21 AND "year"=1983;
2-14862565-3
What is the sum of the points when Carlos drove for repsol honda in 8th place?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real );
SELECT SUM("points") FROM "motorcycle_grand_prix_results" WHERE "team"='repsol honda' AND "rank"='8th';
2-14862565-3
What is the average points won when Carlos had 0 wins?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real );
SELECT AVG("points") FROM "motorcycle_grand_prix_results" WHERE "wins"<0;
2-14862565-3
What is the highest year that Carlos drove for repsol honda and had less than 4 wins and less than 162 points?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "rank" text, "wins" real );
SELECT MAX("year") FROM "motorcycle_grand_prix_results" WHERE "team"='repsol honda' AND "wins"<4 AND "points"<162;
2-14862565-3
What is the total number of goals from 24 tries and 96 or greater points?
CREATE TABLE "castleford_tigers_career" ( "year" text, "team" text, "apps" real, "tries" real, "goals" real, "points" real );
SELECT SUM("goals") FROM "castleford_tigers_career" WHERE "tries"=24 AND "points">96;
2-14979029-1
What year has tries less than 24 and 0 points?
CREATE TABLE "castleford_tigers_career" ( "year" text, "team" text, "apps" real, "tries" real, "goals" real, "points" real );
SELECT "year" FROM "castleford_tigers_career" WHERE "tries"<24 AND "points"=0;
2-14979029-1
What Game has a Location of Philadelphia Spectrum and an Opponent of New York Knicks?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "game" FROM "game_log" WHERE "location"='philadelphia spectrum' AND "opponent"='new york knicks';
2-14828499-10
What Game has a Location of Philadelphia Spectrum and a Date of April 1?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "game" FROM "game_log" WHERE "location"='philadelphia spectrum' AND "date"='april 1';
2-14828499-10
What is the segment for Netflix episode S08E04?
CREATE TABLE "season_15_2010" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "segment_a" FROM "season_15_2010" WHERE "netflix"='s08e04';
2-15187735-15
What is the Netflix episode for series episode 15-01?
CREATE TABLE "season_15_2010" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "netflix" FROM "season_15_2010" WHERE "series_ep"='15-01';
2-15187735-15
What is the segment A for the episode with Children's Ride-on Cars for segment D?
CREATE TABLE "season_15_2010" ( "series_ep" text, "episode" real, "netflix" text, "segment_a" text, "segment_b" text, "segment_c" text, "segment_d" text );
SELECT "segment_a" FROM "season_15_2010" WHERE "segment_d"='children''s ride-on cars';
2-15187735-15
What is the earliest year with fewer than 5 wins and 89 points?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT MIN("year") FROM "motorcycle_grand_prix_results" WHERE "wins"<5 AND "points"=89;
2-14860663-4
When is the most recent year with more than 27 points and more than 5 wins?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT MAX("year") FROM "motorcycle_grand_prix_results" WHERE "points">27 AND "wins">5;
2-14860663-4
What are the sum of points in 1989 with 0 wins?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT SUM("points") FROM "motorcycle_grand_prix_results" WHERE "wins"=0 AND "year"=1989;
2-14860663-4
Which class has fewer than 89 points and the Honda team later than 1987?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT "class" FROM "motorcycle_grand_prix_results" WHERE "points"<89 AND "team"='honda' AND "year">1987;
2-14860663-4
How many points are there later than 1992?
CREATE TABLE "motorcycle_grand_prix_results" ( "year" real, "class" text, "team" text, "points" real, "wins" real );
SELECT COUNT("points") FROM "motorcycle_grand_prix_results" WHERE "year">1992;
2-14860663-4
Where was the event on June 10?
CREATE TABLE "2011_in_sports" ( "date" text, "event" text, "location" text, "attendance" text, "ppv_buyrate" text );
SELECT "location" FROM "2011_in_sports" WHERE "date"='june 10';
2-13965070-2
What event was in New Orleans, Louisiana, USA?
CREATE TABLE "2011_in_sports" ( "date" text, "event" text, "location" text, "attendance" text, "ppv_buyrate" text );
SELECT "event" FROM "2011_in_sports" WHERE "location"='new orleans, louisiana, usa';
2-13965070-2
On September 10 during Strikeforce: Heavyweight Grand Prix Semifinals, what was the PPV buyrate?
CREATE TABLE "2011_in_sports" ( "date" text, "event" text, "location" text, "attendance" text, "ppv_buyrate" text );
SELECT "ppv_buyrate" FROM "2011_in_sports" WHERE "date"='september 10' AND "event"='strikeforce: heavyweight grand prix semifinals';
2-13965070-2
How many points are there on november 7?
CREATE TABLE "regular_season" ( "game" real, "november" real, "opponent" text, "score" text, "record" text, "points" real );
SELECT MAX("points") FROM "regular_season" WHERE "november"=7;
2-14293527-3
What was the score in the game where the Blazers were the home team?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "score" FROM "march" WHERE "home"='blazers';
2-14677944-7
How many people attended the game that had the Clippers as visiting team?
CREATE TABLE "march" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "attendance" FROM "march" WHERE "visitor"='clippers';
2-14677944-7
Which team has a car # before 99, a Toyota, and is driven by Mike Skinner?
CREATE TABLE "qwik_liner_las_vegas_350" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text );
SELECT "team" FROM "qwik_liner_las_vegas_350" WHERE "car_num"<99 AND "make"='toyota' AND "driver"='mike skinner';
2-14292964-22
What is the lowest position for driver Kyle Busch?
CREATE TABLE "qwik_liner_las_vegas_350" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text );
SELECT MIN("pos") FROM "qwik_liner_las_vegas_350" WHERE "driver"='kyle busch';
2-14292964-22
Who is the team of the Chevrolet, and has a position less than 7, for car # 88?
CREATE TABLE "qwik_liner_las_vegas_350" ( "pos" real, "car_num" real, "driver" text, "make" text, "team" text );
SELECT "team" FROM "qwik_liner_las_vegas_350" WHERE "make"='chevrolet' AND "pos"<7 AND "car_num"=88;
2-14292964-22
Which Film has a Result of nominated, and a Year of 2001?
CREATE TABLE "c_sar_awards" ( "year" real, "group" text, "award" text, "film" text, "result" text );
SELECT "film" FROM "c_sar_awards" WHERE "result"='nominated' AND "year"=2001;
2-145320-1
Which Award has a Group of césar awards, and a Result of nominated, and a Year larger than 2001, and a Film of 8 women (8 femmes)?
CREATE TABLE "c_sar_awards" ( "year" real, "group" text, "award" text, "film" text, "result" text );
SELECT "award" FROM "c_sar_awards" WHERE "group"='césar awards' AND "result"='nominated' AND "year">2001 AND "film"='8 women (8 femmes)';
2-145320-1
Which Year has a Group of césar awards, and a Result of nominated, and an Award of the best actress, and a Film of 8 women (8 femmes)?
CREATE TABLE "c_sar_awards" ( "year" real, "group" text, "award" text, "film" text, "result" text );
SELECT AVG("year") FROM "c_sar_awards" WHERE "group"='césar awards' AND "result"='nominated' AND "award"='best actress' AND "film"='8 women (8 femmes)';
2-145320-1
Which Award has a Result of nominated, and a Year of 2003?
CREATE TABLE "c_sar_awards" ( "year" real, "group" text, "award" text, "film" text, "result" text );
SELECT "award" FROM "c_sar_awards" WHERE "result"='nominated' AND "year"=2003;
2-145320-1
Which Result has a Year larger than 2003, and an Award of best supporting actress?
CREATE TABLE "c_sar_awards" ( "year" real, "group" text, "award" text, "film" text, "result" text );
SELECT "result" FROM "c_sar_awards" WHERE "year">2003 AND "award"='best supporting actress';
2-145320-1
Name the total number of valid poll with seats more than 4 and candidates more than 9
CREATE TABLE "voting_details" ( "constituency" text, "electorate" real, "turnout" text, "spoilt" text, "valid_poll" real, "quota" text, "seats" real, "candidates" real );
SELECT COUNT("valid_poll") FROM "voting_details" WHERE "seats">4 AND "candidates">9;
2-13564562-2
Name the least valid poll for munster
CREATE TABLE "voting_details" ( "constituency" text, "electorate" real, "turnout" text, "spoilt" text, "valid_poll" real, "quota" text, "seats" real, "candidates" real );
SELECT MIN("valid_poll") FROM "voting_details" WHERE "constituency"='munster';
2-13564562-2
Name the average valid poll for seats less than 3
CREATE TABLE "voting_details" ( "constituency" text, "electorate" real, "turnout" text, "spoilt" text, "valid_poll" real, "quota" text, "seats" real, "candidates" real );
SELECT AVG("valid_poll") FROM "voting_details" WHERE "seats"<3;
2-13564562-2
Which Catalog has a Format of 12" maxi, and a Region of france?
CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text );
SELECT "catalog" FROM "release_history" WHERE "format"='12\" maxi' AND "region"='france';
2-15188879-1
Which Label has a Format of 7" single, and a Date of 1988?
CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text );
SELECT "label" FROM "release_history" WHERE "format"='7\" single' AND "date"='1988';
2-15188879-1
Which Label has a Region of germany, and a Format of 12" maxi?
CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text );
SELECT "label" FROM "release_history" WHERE "region"='germany' AND "format"='12\" maxi';
2-15188879-1
Which Label has a Region of canada?
CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text );
SELECT "label" FROM "release_history" WHERE "region"='canada';
2-15188879-1
Which Date has a Catalog of 887 195-2, and a Format of cd maxi?
CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "catalog"='887 195-2' AND "format"='cd maxi';
2-15188879-1
Which Date has a Region of france?
CREATE TABLE "release_history" ( "date" text, "label" text, "region" text, "format" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "region"='france';
2-15188879-1
Which Time has an Opponent of shamil abdurahimov?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='shamil abdurahimov';
2-14525260-2
Which Record has an Event of cage rage 23?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='cage rage 23';
2-14525260-2