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 title when the rank is less than 17 and the worldwide gross is $299,288,605?
CREATE TABLE "highest_grossing_films_of_1997" ( "rank" real, "title" text, "studio" text, "director" text, "worldwide_gross" text );
SELECT "title" FROM "highest_grossing_films_of_1997" WHERE "rank"<17 AND "worldwide_gross"='$299,288,605';
2-169572-1
what is the highest rank for director john woo?
CREATE TABLE "highest_grossing_films_of_1997" ( "rank" real, "title" text, "studio" text, "director" text, "worldwide_gross" text );
SELECT MAX("rank") FROM "highest_grossing_films_of_1997" WHERE "director"='john woo';
2-169572-1
what is the title for director p.j. hogan?
CREATE TABLE "highest_grossing_films_of_1997" ( "rank" real, "title" text, "studio" text, "director" text, "worldwide_gross" text );
SELECT "title" FROM "highest_grossing_films_of_1997" WHERE "director"='p.j. hogan';
2-169572-1
What date was the pyramid location?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "date" FROM "game_log" WHERE "location"='the pyramid';
2-17622423-8
What date was the opponent the Portland Trail Blazers?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "date" FROM "game_log" WHERE "opponent"='portland trail blazers';
2-17622423-8
What is the record for the opponent the Cleveland Cavaliers?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "record" FROM "game_log" WHERE "opponent"='cleveland cavaliers';
2-17622423-8
What was the second qualification time for Dale Coyne Racing with a best of 1:03.757?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text );
SELECT "qual_2" FROM "qualifying_results" WHERE "team"='dale coyne racing' AND "best"='1:03.757';
2-16686322-1
What was the second qualification time with a first qualification time of 1:02.813?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text );
SELECT "qual_2" FROM "qualifying_results" WHERE "qual_1"='1:02.813';
2-16686322-1
Which team has a second qualification time of 1:01.936?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text );
SELECT "team" FROM "qualifying_results" WHERE "qual_2"='1:01.936';
2-16686322-1
Who had a best time of 1:00.870?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text );
SELECT "name" FROM "qualifying_results" WHERE "best"='1:00.870';
2-16686322-1
Who had a second qualification time of 1:01.777?
CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text );
SELECT "name" FROM "qualifying_results" WHERE "qual_2"='1:01.777';
2-16686322-1
What type of 3D game was released between 2008-2011?
CREATE TABLE "free_play" ( "developer_s" text, "release_date" text, "required_os" text, "genre" text, "type" text );
SELECT "genre" FROM "free_play" WHERE "type"='3d' AND "release_date"='2008-2011';
2-17493675-2
When did Riot Games release their 3D MOBA game?
CREATE TABLE "free_play" ( "developer_s" text, "release_date" text, "required_os" text, "genre" text, "type" text );
SELECT "release_date" FROM "free_play" WHERE "type"='3d' AND "genre"='moba' AND "developer_s"='riot games';
2-17493675-2
When did Masthead Studios release their game?
CREATE TABLE "free_play" ( "developer_s" text, "release_date" text, "required_os" text, "genre" text, "type" text );
SELECT "release_date" FROM "free_play" WHERE "developer_s"='masthead studios';
2-17493675-2
What operating system was needed for 2D games?
CREATE TABLE "free_play" ( "developer_s" text, "release_date" text, "required_os" text, "genre" text, "type" text );
SELECT "required_os" FROM "free_play" WHERE "type"='2d';
2-17493675-2
What type of 3D game did Valve Corporation release?
CREATE TABLE "free_play" ( "developer_s" text, "release_date" text, "required_os" text, "genre" text, "type" text );
SELECT "genre" FROM "free_play" WHERE "type"='3d' AND "developer_s"='valve corporation';
2-17493675-2
What was the minimum operating system required by Stunlock Studios' game?
CREATE TABLE "free_play" ( "developer_s" text, "release_date" text, "required_os" text, "genre" text, "type" text );
SELECT "required_os" FROM "free_play" WHERE "developer_s"='stunlock studios';
2-17493675-2
What was the total rounds Travis Hamonic played?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT COUNT("round") FROM "draft_picks" WHERE "player"='travis hamonic';
2-17042971-13
What is the name of the ship with pit props as Cargo sunk by u-48 *?
CREATE TABLE "merchant_ships" ( "name" text, "flag" text, "cargo" text, "fate" text, "date_of_attack" text );
SELECT "name" FROM "merchant_ships" WHERE "fate"='sunk by u-48 *' AND "cargo"='pit props';
2-16814676-1
What is the Date of attack of the ship with iron ore sunk by u-101 *?
CREATE TABLE "merchant_ships" ( "name" text, "flag" text, "cargo" text, "fate" text, "date_of_attack" text );
SELECT "date_of_attack" FROM "merchant_ships" WHERE "fate"='sunk by u-101 *' AND "cargo"='iron ore';
2-16814676-1
What is the fewest points for positions with under 12 losses, goals against under 50, goal difference over 11, and under 30 played?
CREATE TABLE "group_i" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MIN("points") FROM "group_i" WHERE "losses"<12 AND "goals_against"<50 AND "goal_difference">11 AND "played"<30;
2-17298923-2
What is the most wins for a position with more than 30 played and a goal difference of 11?
CREATE TABLE "group_i" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT MAX("wins") FROM "group_i" WHERE "goal_difference"=11 AND "played">30;
2-17298923-2
What is the total number of played for the goals against over 44 and a goal difference of 11?
CREATE TABLE "group_i" ( "position" real, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real );
SELECT COUNT("played") FROM "group_i" WHERE "goal_difference"=11 AND "goals_against">44;
2-17298923-2
What is Time, when Round is less than 2, and when Opponent is "Valentijn Overeem"?
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 "round"<2 AND "opponent"='valentijn overeem';
2-17446308-2
What is Location, when Round is "1", and when Opponent is "Joe Slick"?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "opponent"='joe slick';
2-17446308-2
What is Event, when Opponent is "Joe Pardo"?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='joe pardo';
2-17446308-2
What is Event, when Round is "1", when Location is "New Town, North Dakota , United States" and when Time is "4:12"?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "location"='new town, north dakota , united states' AND "time"='4:12';
2-17446308-2
On what Date was the Opponent the Tennessee Titans?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "opponent"='tennessee titans';
2-17184033-2
What is the Result of the game with an Attendance of 64,104?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "attendance"='64,104';
2-17184033-2
What is the Week number with a Result of W 30-28?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT AVG("week") FROM "schedule" WHERE "result"='w 30-28';
2-17184033-2
What is the date of the game against Philadelphia Eagles?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "opponent"='philadelphia eagles';
2-17184033-2
What is the Attendance of the game September 21, 2003?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "attendance" FROM "schedule" WHERE "date"='september 21, 2003';
2-17184033-2
how many times is the total s ton less than 2,983,137 and the u.s. rank less than 102?
CREATE TABLE "tonnage_for_port_of_anchorage" ( "year" real, "u_s_rank" real, "total_s_ton" real, "domestic_s_ton" real, "foreign_total_s_ton" real, "foreign_imports_s_ton" real, "foreign_exports_s_ton" real );
SELECT COUNT("year") FROM "tonnage_for_port_of_anchorage" WHERE "total_s_ton"<'2,983,137' AND "u_s_rank"<102;
2-1645670-2
what is the average domestic s tone when the foreign imports s tone is less than 225,281 and the year is later than 2003?
CREATE TABLE "tonnage_for_port_of_anchorage" ( "year" real, "u_s_rank" real, "total_s_ton" real, "domestic_s_ton" real, "foreign_total_s_ton" real, "foreign_imports_s_ton" real, "foreign_exports_s_ton" real );
SELECT AVG("domestic_s_ton") FROM "tonnage_for_port_of_anchorage" WHERE "foreign_imports_s_ton"<'225,281' AND "year">2003;
2-1645670-2
what is the average domestic s tone when the total s tone is 2,926,536 and the foreign imports s tone is less than 464,774?
CREATE TABLE "tonnage_for_port_of_anchorage" ( "year" real, "u_s_rank" real, "total_s_ton" real, "domestic_s_ton" real, "foreign_total_s_ton" real, "foreign_imports_s_ton" real, "foreign_exports_s_ton" real );
SELECT AVG("domestic_s_ton") FROM "tonnage_for_port_of_anchorage" WHERE "total_s_ton"='2,926,536' AND "foreign_imports_s_ton"<'464,774';
2-1645670-2
what is the average foreign imports s tone when the total s tone is 3,157,247 and the foreign exports s ton is less than 358,493?
CREATE TABLE "tonnage_for_port_of_anchorage" ( "year" real, "u_s_rank" real, "total_s_ton" real, "domestic_s_ton" real, "foreign_total_s_ton" real, "foreign_imports_s_ton" real, "foreign_exports_s_ton" real );
SELECT AVG("foreign_imports_s_ton") FROM "tonnage_for_port_of_anchorage" WHERE "total_s_ton"='3,157,247' AND "foreign_exports_s_ton"<'358,493';
2-1645670-2
how many times is the U.S. Rank 102, the year earlier than 2006 and the total s ton less than 2,983,137?
CREATE TABLE "tonnage_for_port_of_anchorage" ( "year" real, "u_s_rank" real, "total_s_ton" real, "domestic_s_ton" real, "foreign_total_s_ton" real, "foreign_imports_s_ton" real, "foreign_exports_s_ton" real );
SELECT COUNT("foreign_total_s_ton") FROM "tonnage_for_port_of_anchorage" WHERE "u_s_rank"=102 AND "year"<2006 AND "total_s_ton"<'2,983,137';
2-1645670-2
what is the highest u.s. rank when the foreign total s ton is more than 703,638, the year is earlier than 2005, the foreign imports s ton is 284,347 and the foreign exports s ton is smaller than 478,317?
CREATE TABLE "tonnage_for_port_of_anchorage" ( "year" real, "u_s_rank" real, "total_s_ton" real, "domestic_s_ton" real, "foreign_total_s_ton" real, "foreign_imports_s_ton" real, "foreign_exports_s_ton" real );
SELECT MAX("u_s_rank") FROM "tonnage_for_port_of_anchorage" WHERE "foreign_total_s_ton">'703,638' AND "year"<2005 AND "foreign_imports_s_ton"='284,347' AND "foreign_exports_s_ton"<'478,317';
2-1645670-2
What position has a pick less than 20?
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 "pick"<20;
2-17100961-62
What is the number that is the lowest overall for the College of Baylor?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "college"='baylor';
2-17100961-62
What is the number that is the lowest overall for Round 6?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "round"=6;
2-17100961-62
Where was the result a win against Mike Large?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text );
SELECT "location" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "opponent"='mike large';
2-17442679-2
In what round did opponent Joe Lauzon play?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text );
SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='joe lauzon';
2-17442679-2
Who was the opponent in a week over 8 on December 4, 1960?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "opponent" FROM "schedule" WHERE "week">8 AND "date"='december 4, 1960';
2-16642141-1
Who was the opponent in a week less than 8 on October 9, 1960?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "opponent" FROM "schedule" WHERE "week"<8 AND "date"='october 9, 1960';
2-16642141-1
What was the result when 58,516 were in attendance?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "attendance"='58,516';
2-16642141-1
Who was the opponent in a week below 3 on September 23, 1960?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "opponent" FROM "schedule" WHERE "week"<3 AND "date"='september 23, 1960';
2-16642141-1
What is the biggest number of females where the males are at 28.2 with a rank greater than 5?
CREATE TABLE "suicides_per_100_000_people_per_year" ( "rank" real, "country" text, "year" real, "males" real, "females" real, "total" real );
SELECT MAX("females") FROM "suicides_per_100_000_people_per_year" WHERE "males"=28.2 AND "rank">5;
2-16231526-1
Who was the player in 1976?
CREATE TABLE "leading_money_winners_by_year" ( "year" real, "player" text, "country" text, "earnings" real, "most_wins" text );
SELECT "player" FROM "leading_money_winners_by_year" WHERE "year"=1976;
2-173345-5
When was Elaine Powell (g) of the United states picked?
CREATE TABLE "2006_chicago_sky" ( "pick" real, "player" text, "nationality" text, "new_wnba_team" text, "former_wnba_team" text, "college_country_team" text );
SELECT "pick" FROM "2006_chicago_sky" WHERE "nationality"='united states' AND "player"='elaine powell (g)';
2-17308269-5
When was there a result of w 65-20 after week 6?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text );
SELECT "date" FROM "schedule" WHERE "week">6 AND "result"='w 65-20';
2-16678254-1
What is Celta's Agg.?
CREATE TABLE "round_of_32" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "agg" FROM "round_of_32" WHERE "team_1"='celta';
2-17074170-4
What is the 2nd leg for Barcelona Team 2?
CREATE TABLE "round_of_32" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "2nd_leg" FROM "round_of_32" WHERE "team_2"='barcelona';
2-17074170-4
What is team 2 if Team 1 is Numancia?
CREATE TABLE "round_of_32" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_2" FROM "round_of_32" WHERE "team_1"='numancia';
2-17074170-4
What is the maximum Credibility/Capital to Assets Ration (Score) that has a Credibility/Capital to Assets Ration (%) bigger than 4.66, and the Banking Power/Capital Base ($ Million) is less than 2,550?
CREATE TABLE "top_5_iranian_banks_2012_ranking" ( "bank" text, "score_iran" real, "score_global" real, "banking_power_capital_base_million" real, "banking_power_capital_base_pct_change" text, "total_assets_million" real, "total_assets_score" real, "total_assets_pct_change" text, "credibility_capital_to_assets_ratio_pct" real, "credibility_capital_to_assets_ratio_score" real, "performance_return_on_capital_pct" real, "performance_return_on_capital_score" real, "return_on_assets_pct" real, "return_on_assets_score" real );
SELECT MAX("credibility_capital_to_assets_ratio_score") FROM "top_5_iranian_banks_2012_ranking" WHERE "credibility_capital_to_assets_ratio_pct">4.66 AND "banking_power_capital_base_million"<'2,550';
2-16254980-5
What is the sum of the Performance/Return on Capital (Score) when the Score (Iran) is less than 3, and the Score (Global) is 266?
CREATE TABLE "top_5_iranian_banks_2012_ranking" ( "bank" text, "score_iran" real, "score_global" real, "banking_power_capital_base_million" real, "banking_power_capital_base_pct_change" text, "total_assets_million" real, "total_assets_score" real, "total_assets_pct_change" text, "credibility_capital_to_assets_ratio_pct" real, "credibility_capital_to_assets_ratio_score" real, "performance_return_on_capital_pct" real, "performance_return_on_capital_score" real, "return_on_assets_pct" real, "return_on_assets_score" real );
SELECT COUNT("performance_return_on_capital_score") FROM "top_5_iranian_banks_2012_ranking" WHERE "score_iran"<3 AND "score_global"=266;
2-16254980-5
What Total Assets (% Change) that has Performance/Return on Capital (%) greater than 25.63, and a Performance/Return on Capital (Score) greater than 7?
CREATE TABLE "top_5_iranian_banks_2012_ranking" ( "bank" text, "score_iran" real, "score_global" real, "banking_power_capital_base_million" real, "banking_power_capital_base_pct_change" text, "total_assets_million" real, "total_assets_score" real, "total_assets_pct_change" text, "credibility_capital_to_assets_ratio_pct" real, "credibility_capital_to_assets_ratio_score" real, "performance_return_on_capital_pct" real, "performance_return_on_capital_score" real, "return_on_assets_pct" real, "return_on_assets_score" real );
SELECT "total_assets_pct_change" FROM "top_5_iranian_banks_2012_ranking" WHERE "performance_return_on_capital_pct">25.63 AND "performance_return_on_capital_score">7;
2-16254980-5
What is the NFL club of the cornerback player with a pick greater than 63?
CREATE TABLE "players_in_the_nfl" ( "player" text, "position" text, "round" real, "pick" real, "nfl_club" text );
SELECT "nfl_club" FROM "players_in_the_nfl" WHERE "pick">63 AND "position"='cornerback';
2-17249036-15
What is the total round of the tight end position player?
CREATE TABLE "players_in_the_nfl" ( "player" text, "position" text, "round" real, "pick" real, "nfl_club" text );
SELECT COUNT("round") FROM "players_in_the_nfl" WHERE "position"='tight end';
2-17249036-15
What is the pick of the NFL club buffalo bills?
CREATE TABLE "players_in_the_nfl" ( "player" text, "position" text, "round" real, "pick" real, "nfl_club" text );
SELECT "pick" FROM "players_in_the_nfl" WHERE "nfl_club"='buffalo bills';
2-17249036-15
On What Date is the Competition Semifinal that has a result of 2-1 aet?
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" ( "match" text, "date" text, "location" text, "lineup" text, "result" text, "competition" text );
SELECT "date" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='semifinal' AND "result"='2-1 aet';
2-162901-2
Which Location has a Competition of Group Stage, a Lineup of Start and a Date of 2000-09-17?
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" ( "match" text, "date" text, "location" text, "lineup" text, "result" text, "competition" text );
SELECT "location" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='group stage' AND "lineup"='start' AND "date"='2000-09-17';
2-162901-2
Which Match has a Competition of Group Stage on 2000-09-17?
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" ( "match" text, "date" text, "location" text, "lineup" text, "result" text, "competition" text );
SELECT "match" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='group stage' AND "date"='2000-09-17';
2-162901-2
Which Match played in a Location of San Francisco has a Competition of Semifinal?
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" ( "match" text, "date" text, "location" text, "lineup" text, "result" text, "competition" text );
SELECT "match" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='semifinal' AND "location"='san francisco';
2-162901-2
What Location has a Date of 1995-06-15?
CREATE TABLE "matches_and_goals_scored_at_world_cup_an" ( "match" text, "date" text, "location" text, "lineup" text, "result" text, "competition" text );
SELECT "location" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "date"='1995-06-15';
2-162901-2
What is the most points 1 when the goals against are fewer than 97, lost less than 22, 9 draws and goal difference of +28?
CREATE TABLE "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("points_1") FROM "final_table" WHERE "goals_against"<97 AND "lost"<22 AND "drawn"=9 AND "goal_difference"='+28';
2-17589003-1
What is the most points 1 when the goal difference is +28 and lost is larger than 12?
CREATE TABLE "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("points_1") FROM "final_table" WHERE "goal_difference"='+28' AND "lost">12;
2-17589003-1
What is the maximum lost with points 1 more than 58 and 66 goals against?
CREATE TABLE "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("lost") FROM "final_table" WHERE "points_1">58 AND "goals_against"=66;
2-17589003-1
What is the most goals for when there are fewer than 4 draws?
CREATE TABLE "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 "final_table" WHERE "drawn"<4;
2-17589003-1
What was the result on October 20, 2002?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "date"='october 20, 2002';
2-16352332-2
What is the Jersey Number(s) from Norfolk State?
CREATE TABLE "p" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "years" text, "from" text );
SELECT "jersey_number_s" FROM "p" WHERE "from"='norfolk state';
2-16772687-16
What is the nationality of the person with number 27?
CREATE TABLE "p" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "years" text, "from" text );
SELECT "nationality" FROM "p" WHERE "jersey_number_s"='27';
2-16772687-16
What is the nationality of the SG position?
CREATE TABLE "p" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "years" text, "from" text );
SELECT "nationality" FROM "p" WHERE "position"='sg';
2-16772687-16
What is the rank of the film directed by danny devito?
CREATE TABLE "highest_grossing_films_of_1987" ( "rank" real, "title" text, "studio" text, "director" text, "gross" text );
SELECT "rank" FROM "highest_grossing_films_of_1987" WHERE "director"='danny devito';
2-171293-1
What is the sum of the ranks for the film, eddie murphy raw?
CREATE TABLE "highest_grossing_films_of_1987" ( "rank" real, "title" text, "studio" text, "director" text, "gross" text );
SELECT SUM("rank") FROM "highest_grossing_films_of_1987" WHERE "title"='eddie murphy raw';
2-171293-1
Who directed Predator that was filmed with Fox Studio?
CREATE TABLE "highest_grossing_films_of_1987" ( "rank" real, "title" text, "studio" text, "director" text, "gross" text );
SELECT "director" FROM "highest_grossing_films_of_1987" WHERE "studio"='fox' AND "title"='predator';
2-171293-1
What is the total number of ranks that had vestron as the studio?
CREATE TABLE "highest_grossing_films_of_1987" ( "rank" real, "title" text, "studio" text, "director" text, "gross" text );
SELECT COUNT("rank") FROM "highest_grossing_films_of_1987" WHERE "studio"='vestron';
2-171293-1
Which class had Stanley Dickens as a driver?
CREATE TABLE "race_2" ( "class" text, "team" text, "driver" text, "chassis_engine" text, "laps" real );
SELECT "class" FROM "race_2" WHERE "driver"='stanley dickens';
2-16861730-2
What was the highest amount of laps for class c1 and driver Derek Bell?
CREATE TABLE "race_2" ( "class" text, "team" text, "driver" text, "chassis_engine" text, "laps" real );
SELECT MAX("laps") FROM "race_2" WHERE "class"='c1' AND "driver"='derek bell';
2-16861730-2
Where was the player born when the appearances were greater than 40 and made 17 goals?
CREATE TABLE "players" ( "nationality" text, "position" text, "gillingham_career" text, "apps" real, "goals" real );
SELECT "nationality" FROM "players" WHERE "apps">40 AND "goals"=17;
2-16454668-2
When did the mf from England play for Gillingham that made 0 goals and less than 37 appearances?
CREATE TABLE "players" ( "nationality" text, "position" text, "gillingham_career" text, "apps" real, "goals" real );
SELECT "gillingham_career" FROM "players" WHERE "goals"=0 AND "apps"<37 AND "nationality"='england' AND "position"='mf';
2-16454668-2
Who is the player with a t8 place?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "player" FROM "first_round" WHERE "place"='t8';
2-17245565-4
What is the country of player dale douglass, who has a t8 place?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "country" FROM "first_round" WHERE "place"='t8' AND "player"='dale douglass';
2-17245565-4
What is the average score of player lee trevino, who has a t8 place?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT AVG("score") FROM "first_round" WHERE "place"='t8' AND "player"='lee trevino';
2-17245565-4
What is the to par of player johnny miller, who has a t8 place?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "to_par" FROM "first_round" WHERE "place"='t8' AND "player"='johnny miller';
2-17245565-4
What is the country of player chi-chi rodríguez, who has an e to par?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "country" FROM "first_round" WHERE "to_par"='e' AND "player"='chi-chi rodríguez';
2-17245565-4
WHAT IS THE LEAGUE WITH PLAYER JOE COLBORNE?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "player"='joe colborne';
2-17120908-15
WHAT IS THE ROUND NUMBER OF NICHOLAS TREMBLAY?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT COUNT("round") FROM "draft_picks" WHERE "player"='nicholas tremblay';
2-17120908-15
WHAT IS THE POSITION OF FRANCE?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT "position" FROM "draft_picks" WHERE "nationality"='france';
2-17120908-15
WHAT IS THE ROUND FOR JAMIE ARNIEL?
CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_club_team_league" text );
SELECT COUNT("round") FROM "draft_picks" WHERE "player"='jamie arniel';
2-17120908-15
What was the score on May 12, 2008?
CREATE TABLE "chinese_taipei_national_futsal_team" ( "date" text, "venue" text, "score" text, "competition" text, "report" text );
SELECT "score" FROM "chinese_taipei_national_futsal_team" WHERE "date"='may 12, 2008';
2-17016499-10
What is the rank of the largest attendance over 101,474 played against Rice?
CREATE TABLE "largest_attendance" ( "rank" real, "date" text, "attendance" real, "opponent" text, "texas_result" text );
SELECT AVG("rank") FROM "largest_attendance" WHERE "attendance">'101,474' AND "opponent"='rice';
2-1643696-1
Who was the opponent on September 26, 2009?
CREATE TABLE "largest_attendance" ( "rank" real, "date" text, "attendance" real, "opponent" text, "texas_result" text );
SELECT "opponent" FROM "largest_attendance" WHERE "date"='september 26, 2009';
2-1643696-1
What was the average lead maragin for the dates administered of october 6, 2008?
CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text, "dates_administered" text, "democrat_mark_begich" text, "republican_ted_stevens" text, "lead_maragin" real );
SELECT AVG("lead_maragin") FROM "opinion_polling_for_the_united_states_se" WHERE "dates_administered"='october 6, 2008';
2-16751596-13
What was the poll source for october 6, 2008?
CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text, "dates_administered" text, "democrat_mark_begich" text, "republican_ted_stevens" text, "lead_maragin" real );
SELECT "poll_source" FROM "opinion_polling_for_the_united_states_se" WHERE "dates_administered"='october 6, 2008';
2-16751596-13
Who has a place of T7 and is from the United States?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "player" FROM "first_round" WHERE "place"='t7' AND "country"='united states';
2-17162268-4
What is the Rank of the Film with a Worldwide Gross of $914,691,118?
CREATE TABLE "highest_grossing_films_of_1993" ( "rank" real, "title" text, "studio" text, "director" text, "worldwide_gross" text );
SELECT "rank" FROM "highest_grossing_films_of_1993" WHERE "worldwide_gross"='$914,691,118';
2-171575-1
What is the Director of the Film The Fugitive?
CREATE TABLE "highest_grossing_films_of_1993" ( "rank" real, "title" text, "studio" text, "director" text, "worldwide_gross" text );
SELECT "director" FROM "highest_grossing_films_of_1993" WHERE "title"='the fugitive';
2-171575-1
What was the highest points on October 12, when the attendance where is over 10,701?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real );
SELECT MAX("points") FROM "game_log" WHERE "date"='october 12' AND "attendance">'10,701';
2-17190456-2
When was Montreal a visitor?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" text, "points" real );
SELECT "date" FROM "game_log" WHERE "visitor"='montreal';
2-17190456-2