output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "title" FROM "highest_grossing_films_of_1997" WHERE "rank"<17 AND "worldwide_gross"='$299,288,605';
## Task Generate a SQL query to answer the following question: `what is the title when the rank is less than 17 and the worldwide gross is $299,288,605?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_of_1997" ( "rank" real, ...
SELECT MAX("rank") FROM "highest_grossing_films_of_1997" WHERE "director"='john woo';
## Task Generate a SQL query to answer the following question: `what is the highest rank for director john woo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_of_1997" ( "rank" real, "title" text, "studio" text, "directo...
SELECT "title" FROM "highest_grossing_films_of_1997" WHERE "director"='p.j. hogan';
## Task Generate a SQL query to answer the following question: `what is the title for director p.j. hogan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_of_1997" ( "rank" real, "title" text, "studio" text, "director" te...
SELECT "date" FROM "game_log" WHERE "location"='the pyramid';
## Task Generate a SQL query to answer the following question: `What date was the pyramid location?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "recor...
SELECT "date" FROM "game_log" WHERE "opponent"='portland trail blazers';
## Task Generate a SQL query to answer the following question: `What date was the opponent the Portland Trail Blazers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "locat...
SELECT "record" FROM "game_log" WHERE "opponent"='cleveland cavaliers';
## Task Generate a SQL query to answer the following question: `What is the record for the opponent the Cleveland Cavaliers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, ...
SELECT "qual_2" FROM "qualifying_results" WHERE "team"='dale coyne racing' AND "best"='1:03.757';
## Task Generate a SQL query to answer the following question: `What was the second qualification time for Dale Coyne Racing with a best of 1:03.757?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, ...
SELECT "qual_2" FROM "qualifying_results" WHERE "qual_1"='1:02.813';
## Task Generate a SQL query to answer the following question: `What was the second qualification time with a first qualification time of 1:02.813?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "q...
SELECT "team" FROM "qualifying_results" WHERE "qual_2"='1:01.936';
## Task Generate a SQL query to answer the following question: `Which team has a second qualification time of 1:01.936?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text...
SELECT "name" FROM "qualifying_results" WHERE "best"='1:00.870';
## Task Generate a SQL query to answer the following question: `Who had a best time of 1:00.870?` ### Database Schema This query will run on a database whose schema is represented in this string: 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';
## Task Generate a SQL query to answer the following question: `Who had a second qualification time of 1:01.777?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "be...
SELECT "genre" FROM "free_play" WHERE "type"='3d' AND "release_date"='2008-2011';
## Task Generate a SQL query to answer the following question: `What type of 3D game was released between 2008-2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "free_play" ( "developer_s" text, "release_date" text, "required_os" text, "genr...
SELECT "release_date" FROM "free_play" WHERE "type"='3d' AND "genre"='moba' AND "developer_s"='riot games';
## Task Generate a SQL query to answer the following question: `When did Riot Games release their 3D MOBA game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "free_play" ( "developer_s" text, "release_date" text, "required_os" text, "genre" te...
SELECT "release_date" FROM "free_play" WHERE "developer_s"='masthead studios';
## Task Generate a SQL query to answer the following question: `When did Masthead Studios release their game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "free_play" ( "developer_s" text, "release_date" text, "required_os" text, "genre" text...
SELECT "required_os" FROM "free_play" WHERE "type"='2d';
## Task Generate a SQL query to answer the following question: `What operating system was needed for 2D games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "free_play" ( "developer_s" text, "release_date" text, "required_os" text, "genre" tex...
SELECT "genre" FROM "free_play" WHERE "type"='3d' AND "developer_s"='valve corporation';
## Task Generate a SQL query to answer the following question: `What type of 3D game did Valve Corporation release?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "free_play" ( "developer_s" text, "release_date" text, "required_os" text, "genre...
SELECT "required_os" FROM "free_play" WHERE "developer_s"='stunlock studios';
## Task Generate a SQL query to answer the following question: `What was the minimum operating system required by Stunlock Studios' game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "free_play" ( "developer_s" text, "release_date" text, "requi...
SELECT COUNT("round") FROM "draft_picks" WHERE "player"='travis hamonic';
## Task Generate a SQL query to answer the following question: `What was the total rounds Travis Hamonic played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, ...
SELECT "name" FROM "merchant_ships" WHERE "fate"='sunk by u-48 *' AND "cargo"='pit props';
## Task Generate a SQL query to answer the following question: `What is the name of the ship with pit props as Cargo sunk by u-48 *?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "merchant_ships" ( "name" text, "flag" text, "cargo" text, "fate...
SELECT "date_of_attack" FROM "merchant_ships" WHERE "fate"='sunk by u-101 *' AND "cargo"='iron ore';
## Task Generate a SQL query to answer the following question: `What is the Date of attack of the ship with iron ore sunk by u-101 *?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "merchant_ships" ( "name" text, "flag" text, "cargo" text, "fat...
SELECT MIN("points") FROM "group_i" WHERE "losses"<12 AND "goals_against"<50 AND "goal_difference">11 AND "played"<30;
## Task Generate a SQL query to answer the following question: `What is the fewest points for positions with under 12 losses, goals against under 50, goal difference over 11, and under 30 played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i"...
SELECT MAX("wins") FROM "group_i" WHERE "goal_difference"=11 AND "played">30;
## Task Generate a SQL query to answer the following question: `What is the most wins for a position with more than 30 played and a goal difference of 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "played" real, ...
SELECT COUNT("played") FROM "group_i" WHERE "goal_difference"=11 AND "goals_against">44;
## Task Generate a SQL query to answer the following question: `What is the total number of played for the goals against over 44 and a goal difference of 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "played" real,...
SELECT "time" FROM "mixed_martial_arts_record" WHERE "round"<2 AND "opponent"='valentijn overeem';
## Task Generate a SQL query to answer the following question: `What is Time, when Round is less than 2, and when Opponent is "Valentijn Overeem"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" tex...
SELECT "location" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "opponent"='joe slick';
## Task Generate a SQL query to answer the following question: `What is Location, when Round is "1", and when Opponent is "Joe Slick"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "oppone...
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='joe pardo';
## Task Generate a SQL query to answer the following question: `What is Event, when Opponent is "Joe Pardo"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text,...
SELECT "event" FROM "mixed_martial_arts_record" WHERE "round"=1 AND "location"='new town, north dakota , united states' AND "time"='4:12';
## Task Generate a SQL query to answer the following question: `What is Event, when Round is "1", when Location is "New Town, North Dakota , United States" and when Time is "4:12"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_reco...
SELECT "date" FROM "schedule" WHERE "opponent"='tennessee titans';
## Task Generate a SQL query to answer the following question: `On what Date was the Opponent the Tennessee Titans?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attenda...
SELECT "result" FROM "schedule" WHERE "attendance"='64,104';
## Task Generate a SQL query to answer the following question: `What is the Result of the game with an Attendance of 64,104?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, ...
SELECT AVG("week") FROM "schedule" WHERE "result"='w 30-28';
## Task Generate a SQL query to answer the following question: `What is the Week number with a Result of W 30-28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendanc...
SELECT "date" FROM "schedule" WHERE "opponent"='philadelphia eagles';
## Task Generate a SQL query to answer the following question: `What is the date of the game against Philadelphia Eagles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "a...
SELECT "attendance" FROM "schedule" WHERE "date"='september 21, 2003';
## Task Generate a SQL query to answer the following question: `What is the Attendance of the game September 21, 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "atte...
SELECT COUNT("year") FROM "tonnage_for_port_of_anchorage" WHERE "total_s_ton"<'2,983,137' AND "u_s_rank"<102;
## Task Generate a SQL query to answer the following question: `how many times is the total s ton less than 2,983,137 and the u.s. rank less than 102?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tonnage_for_port_of_anchorage" ( "year" real, "u_...
SELECT AVG("domestic_s_ton") FROM "tonnage_for_port_of_anchorage" WHERE "foreign_imports_s_ton"<'225,281' AND "year">2003;
## Task Generate a SQL query to answer the following question: `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?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tonnage_for_port_o...
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';
## Task Generate a SQL query to answer the following question: `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?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tonnage_for_port...
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';
## Task Generate a SQL query to answer the following question: `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?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tonnage_fo...
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';
## Task Generate a SQL query to answer the following question: `how many times is the U.S. Rank 102, the year earlier than 2006 and the total s ton less than 2,983,137?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tonnage_for_port_of_anchorage" ( ...
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';
## Task Generate a SQL query to answer the following question: `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?` ### Database Schema This query will run on a data...
SELECT "position" FROM "washington_redskins_draft_history" WHERE "pick"<20;
## Task Generate a SQL query to answer the following question: `What position has a pick less than 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, ...
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "college"='baylor';
## Task Generate a SQL query to answer the following question: `What is the number that is the lowest overall for the College of Baylor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real,...
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "round"=6;
## Task Generate a SQL query to answer the following question: `What is the number that is the lowest overall for Round 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" r...
SELECT "location" FROM "mixed_martial_arts_record" WHERE "res"='win' AND "opponent"='mike large';
## Task Generate a SQL query to answer the following question: `Where was the result a win against Mike Large?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" tex...
SELECT "round" FROM "mixed_martial_arts_record" WHERE "opponent"='joe lauzon';
## Task Generate a SQL query to answer the following question: `In what round did opponent Joe Lauzon play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, ...
SELECT "opponent" FROM "schedule" WHERE "week">8 AND "date"='december 4, 1960';
## Task Generate a SQL query to answer the following question: `Who was the opponent in a week over 8 on December 4, 1960?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "...
SELECT "opponent" FROM "schedule" WHERE "week"<8 AND "date"='october 9, 1960';
## Task Generate a SQL query to answer the following question: `Who was the opponent in a week less than 8 on October 9, 1960?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text,...
SELECT "result" FROM "schedule" WHERE "attendance"='58,516';
## Task Generate a SQL query to answer the following question: `What was the result when 58,516 were in attendance?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attenda...
SELECT "opponent" FROM "schedule" WHERE "week"<3 AND "date"='september 23, 1960';
## Task Generate a SQL query to answer the following question: `Who was the opponent in a week below 3 on September 23, 1960?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, ...
SELECT MAX("females") FROM "suicides_per_100_000_people_per_year" WHERE "males"=28.2 AND "rank">5;
## Task Generate a SQL query to answer the following question: `What is the biggest number of females where the males are at 28.2 with a rank greater than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "suicides_per_100_000_people_per_year" ( "ran...
SELECT "player" FROM "leading_money_winners_by_year" WHERE "year"=1976;
## Task Generate a SQL query to answer the following question: `Who was the player in 1976?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "leading_money_winners_by_year" ( "year" real, "player" text, "country" text, "earnings" real, "most_wi...
SELECT "pick" FROM "2006_chicago_sky" WHERE "nationality"='united states' AND "player"='elaine powell (g)';
## Task Generate a SQL query to answer the following question: `When was Elaine Powell (g) of the United states picked?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2006_chicago_sky" ( "pick" real, "player" text, "nationality" text, "new_wnb...
SELECT "date" FROM "schedule" WHERE "week">6 AND "result"='w 65-20';
## Task Generate a SQL query to answer the following question: `When was there a result of w 65-20 after week 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" te...
SELECT "agg" FROM "round_of_32" WHERE "team_1"='celta';
## Task Generate a SQL query to answer the following question: `What is Celta's Agg.?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_32" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); ### SQL Given the...
SELECT "2nd_leg" FROM "round_of_32" WHERE "team_2"='barcelona';
## Task Generate a SQL query to answer the following question: `What is the 2nd leg for Barcelona Team 2?` ### Database Schema This query will run on a database whose schema is represented in this string: 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';
## Task Generate a SQL query to answer the following question: `What is team 2 if Team 1 is Numancia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_of_32" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text ); #...
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';
## Task Generate a SQL query to answer the following question: `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?` ### Database Schema This query will run on a databa...
SELECT COUNT("performance_return_on_capital_score") FROM "top_5_iranian_banks_2012_ranking" WHERE "score_iran"<3 AND "score_global"=266;
## Task Generate a SQL query to answer the following question: `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?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_5_iran...
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;
## Task Generate a SQL query to answer the following question: `What Total Assets (% Change) that has Performance/Return on Capital (%) greater than 25.63, and a Performance/Return on Capital (Score) greater than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CR...
SELECT "nfl_club" FROM "players_in_the_nfl" WHERE "pick">63 AND "position"='cornerback';
## Task Generate a SQL query to answer the following question: `What is the NFL club of the cornerback player with a pick greater than 63?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_in_the_nfl" ( "player" text, "position" text, "roun...
SELECT COUNT("round") FROM "players_in_the_nfl" WHERE "position"='tight end';
## Task Generate a SQL query to answer the following question: `What is the total round of the tight end position player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_in_the_nfl" ( "player" text, "position" text, "round" real, "pick"...
SELECT "pick" FROM "players_in_the_nfl" WHERE "nfl_club"='buffalo bills';
## Task Generate a SQL query to answer the following question: `What is the pick of the NFL club buffalo bills?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players_in_the_nfl" ( "player" text, "position" text, "round" real, "pick" real, "...
SELECT "date" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='semifinal' AND "result"='2-1 aet';
## Task Generate a SQL query to answer the following question: `On What Date is the Competition Semifinal that has a result of 2-1 aet?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches_and_goals_scored_at_world_cup_an" ( "match" text, "date"...
SELECT "location" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='group stage' AND "lineup"='start' AND "date"='2000-09-17';
## Task Generate a SQL query to answer the following question: `Which Location has a Competition of Group Stage, a Lineup of Start and a Date of 2000-09-17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches_and_goals_scored_at_world_cup_an" ( "...
SELECT "match" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='group stage' AND "date"='2000-09-17';
## Task Generate a SQL query to answer the following question: `Which Match has a Competition of Group Stage on 2000-09-17?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches_and_goals_scored_at_world_cup_an" ( "match" text, "date" text, "lo...
SELECT "match" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "competition"='semifinal' AND "location"='san francisco';
## Task Generate a SQL query to answer the following question: `Which Match played in a Location of San Francisco has a Competition of Semifinal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches_and_goals_scored_at_world_cup_an" ( "match" text...
SELECT "location" FROM "matches_and_goals_scored_at_world_cup_an" WHERE "date"='1995-06-15';
## Task Generate a SQL query to answer the following question: `What Location has a Date of 1995-06-15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "matches_and_goals_scored_at_world_cup_an" ( "match" text, "date" text, "location" text, "lin...
SELECT MAX("points_1") FROM "final_table" WHERE "goals_against"<97 AND "lost"<22 AND "drawn"=9 AND "goal_difference"='+28';
## Task Generate a SQL query to answer the following question: `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?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( ...
SELECT MAX("points_1") FROM "final_table" WHERE "goal_difference"='+28' AND "lost">12;
## Task Generate a SQL query to answer the following question: `What is the most points 1 when the goal difference is +28 and lost is larger than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "team" text, "pl...
SELECT MAX("lost") FROM "final_table" WHERE "points_1">58 AND "goals_against"=66;
## Task Generate a SQL query to answer the following question: `What is the maximum lost with points 1 more than 58 and 66 goals against?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, ...
SELECT MAX("goals_for") FROM "final_table" WHERE "drawn"<4;
## Task Generate a SQL query to answer the following question: `What is the most goals for when there are fewer than 4 draws?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "team" text, "played" real, "drawn" re...
SELECT "result" FROM "schedule" WHERE "date"='october 20, 2002';
## Task Generate a SQL query to answer the following question: `What was the result on October 20, 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "tv_time" text, "...
SELECT "jersey_number_s" FROM "p" WHERE "from"='norfolk state';
## Task Generate a SQL query to answer the following question: `What is the Jersey Number(s) from Norfolk State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, ...
SELECT "nationality" FROM "p" WHERE "jersey_number_s"='27';
## Task Generate a SQL query to answer the following question: `What is the nationality of the person with number 27?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p" ( "player" text, "nationality" text, "jersey_number_s" text, "position" tex...
SELECT "nationality" FROM "p" WHERE "position"='sg';
## Task Generate a SQL query to answer the following question: `What is the nationality of the SG position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "p" ( "player" text, "nationality" text, "jersey_number_s" text, "position" text, "year...
SELECT "rank" FROM "highest_grossing_films_of_1987" WHERE "director"='danny devito';
## Task Generate a SQL query to answer the following question: `What is the rank of the film directed by danny devito?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_of_1987" ( "rank" real, "title" text, "studio" text, "...
SELECT SUM("rank") FROM "highest_grossing_films_of_1987" WHERE "title"='eddie murphy raw';
## Task Generate a SQL query to answer the following question: `What is the sum of the ranks for the film, eddie murphy raw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_of_1987" ( "rank" real, "title" text, "studio" tex...
SELECT "director" FROM "highest_grossing_films_of_1987" WHERE "studio"='fox' AND "title"='predator';
## Task Generate a SQL query to answer the following question: `Who directed Predator that was filmed with Fox Studio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_of_1987" ( "rank" real, "title" text, "studio" text, "...
SELECT COUNT("rank") FROM "highest_grossing_films_of_1987" WHERE "studio"='vestron';
## Task Generate a SQL query to answer the following question: `What is the total number of ranks that had vestron as the studio?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_of_1987" ( "rank" real, "title" text, "studio...
SELECT "class" FROM "race_2" WHERE "driver"='stanley dickens';
## Task Generate a SQL query to answer the following question: `Which class had Stanley Dickens as a driver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_2" ( "class" text, "team" text, "driver" text, "chassis_engine" text, "laps" rea...
SELECT MAX("laps") FROM "race_2" WHERE "class"='c1' AND "driver"='derek bell';
## Task Generate a SQL query to answer the following question: `What was the highest amount of laps for class c1 and driver Derek Bell?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_2" ( "class" text, "team" text, "driver" text, "chassis...
SELECT "nationality" FROM "players" WHERE "apps">40 AND "goals"=17;
## Task Generate a SQL query to answer the following question: `Where was the player born when the appearances were greater than 40 and made 17 goals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players" ( "nationality" text, "position" text, ...
SELECT "gillingham_career" FROM "players" WHERE "goals"=0 AND "apps"<37 AND "nationality"='england' AND "position"='mf';
## Task Generate a SQL query to answer the following question: `When did the mf from England play for Gillingham that made 0 goals and less than 37 appearances?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players" ( "nationality" text, "positio...
SELECT "player" FROM "first_round" WHERE "place"='t8';
## Task Generate a SQL query to answer the following question: `Who is the player with a t8 place?` ### Database Schema This query will run on a database whose schema is represented in this string: 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';
## Task Generate a SQL query to answer the following question: `What is the country of player dale douglass, who has a t8 place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score"...
SELECT AVG("score") FROM "first_round" WHERE "place"='t8' AND "player"='lee trevino';
## Task Generate a SQL query to answer the following question: `What is the average score of player lee trevino, who has a t8 place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "sc...
SELECT "to_par" FROM "first_round" WHERE "place"='t8' AND "player"='johnny miller';
## Task Generate a SQL query to answer the following question: `What is the to par of player johnny miller, who has a t8 place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" ...
SELECT "country" FROM "first_round" WHERE "to_par"='e' AND "player"='chi-chi rodríguez';
## Task Generate a SQL query to answer the following question: `What is the country of player chi-chi rodríguez, who has an e to par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "s...
SELECT "college_junior_club_team_league" FROM "draft_picks" WHERE "player"='joe colborne';
## Task Generate a SQL query to answer the following question: `WHAT IS THE LEAGUE WITH PLAYER JOE COLBORNE?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "col...
SELECT COUNT("round") FROM "draft_picks" WHERE "player"='nicholas tremblay';
## Task Generate a SQL query to answer the following question: `WHAT IS THE ROUND NUMBER OF NICHOLAS TREMBLAY?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "c...
SELECT "position" FROM "draft_picks" WHERE "nationality"='france';
## Task Generate a SQL query to answer the following question: `WHAT IS THE POSITION OF FRANCE?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_junior_c...
SELECT COUNT("round") FROM "draft_picks" WHERE "player"='jamie arniel';
## Task Generate a SQL query to answer the following question: `WHAT IS THE ROUND FOR JAMIE ARNIEL?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "player" text, "position" text, "nationality" text, "college_juni...
SELECT "score" FROM "chinese_taipei_national_futsal_team" WHERE "date"='may 12, 2008';
## Task Generate a SQL query to answer the following question: `What was the score on May 12, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chinese_taipei_national_futsal_team" ( "date" text, "venue" text, "score" text, "competition" te...
SELECT AVG("rank") FROM "largest_attendance" WHERE "attendance">'101,474' AND "opponent"='rice';
## Task Generate a SQL query to answer the following question: `What is the rank of the largest attendance over 101,474 played against Rice?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_attendance" ( "rank" real, "date" text, "attendan...
SELECT "opponent" FROM "largest_attendance" WHERE "date"='september 26, 2009';
## Task Generate a SQL query to answer the following question: `Who was the opponent on September 26, 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "largest_attendance" ( "rank" real, "date" text, "attendance" real, "opponent" text, "t...
SELECT AVG("lead_maragin") FROM "opinion_polling_for_the_united_states_se" WHERE "dates_administered"='october 6, 2008';
## Task Generate a SQL query to answer the following question: `What was the average lead maragin for the dates administered of october 6, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source"...
SELECT "poll_source" FROM "opinion_polling_for_the_united_states_se" WHERE "dates_administered"='october 6, 2008';
## Task Generate a SQL query to answer the following question: `What was the poll source for october 6, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text, "dates_administered" text,...
SELECT "player" FROM "first_round" WHERE "place"='t7' AND "country"='united states';
## Task Generate a SQL query to answer the following question: `Who has a place of T7 and is from the United States?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to...
SELECT "rank" FROM "highest_grossing_films_of_1993" WHERE "worldwide_gross"='$914,691,118';
## Task Generate a SQL query to answer the following question: `What is the Rank of the Film with a Worldwide Gross of $914,691,118?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_of_1993" ( "rank" real, "title" text, "stu...
SELECT "director" FROM "highest_grossing_films_of_1993" WHERE "title"='the fugitive';
## Task Generate a SQL query to answer the following question: `What is the Director of the Film The Fugitive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_grossing_films_of_1993" ( "rank" real, "title" text, "studio" text, "director...
SELECT MAX("points") FROM "game_log" WHERE "date"='october 12' AND "attendance">'10,701';
## Task Generate a SQL query to answer the following question: `What was the highest points on October 12, when the attendance where is over 10,701?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" ...
SELECT "date" FROM "game_log" WHERE "visitor"='montreal';
## Task Generate a SQL query to answer the following question: `When was Montreal a visitor?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "attendance" real, "record" tex...