question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What ranking is the structure with 01.0 87 floors?
CREATE TABLE "tallest_buildings_and_structures" ( "rank" text, "name" text, "height_metres_ft" text, "floors" text, "year" real );
SELECT "rank" FROM "tallest_buildings_and_structures" WHERE "floors"='01.0 87';
2-180342-1
What is the highest Attendance, when Date is "Oct. 26"?
CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "raiders_points" real, "opponents" real, "raiders_first_downs" real, "record" text, "attendance" real );
SELECT MAX("attendance") FROM "schedule" WHERE "date"='oct. 26';
2-18207285-2
What is the lowest Opponents, when Raiders Poinsts is greater than 38, and when Attendance is greater than 51,267?
CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "raiders_points" real, "opponents" real, "raiders_first_downs" real, "record" text, "attendance" real );
SELECT MIN("opponents") FROM "schedule" WHERE "raiders_points">38 AND "attendance">'51,267';
2-18207285-2
What is the total number of Opponents, when Raiders Points is "42", when Attendance is less than 52,505?
CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "raiders_points" real, "opponents" real, "raiders_first_downs" real, "record" text, "attendance" real );
SELECT COUNT("opponents") FROM "schedule" WHERE "raiders_points"=42 AND "attendance"<'52,505';
2-18207285-2
What is the total number of Raiders First Downs, when Date is "Nov. 2", and when Raiders Points is greater than 42?
CREATE TABLE "schedule" ( "game" real, "date" text, "opponent" text, "result" text, "raiders_points" real, "opponents" real, "raiders_first_downs" real, "record" text, "attendance" real );
SELECT COUNT("raiders_first_downs") FROM "schedule" WHERE "date"='nov. 2' AND "raiders_points">42;
2-18207285-2
What is the average Tournaments, when Highest Rank is "Maegashira 1"?
CREATE TABLE "fastest_progress_to_top_division" ( "name" text, "tournaments" real, "pro_debut" text, "top_division_debut" text, "highest_rank" text );
SELECT AVG("tournaments") FROM "fastest_progress_to_top_division" WHERE "highest_rank"='maegashira 1';
2-17634218-20
What is Top Division Debut, when Tournaments is "12", and when Name is "Yamamotoyama"?
CREATE TABLE "fastest_progress_to_top_division" ( "name" text, "tournaments" real, "pro_debut" text, "top_division_debut" text, "highest_rank" text );
SELECT "top_division_debut" FROM "fastest_progress_to_top_division" WHERE "tournaments"=12 AND "name"='yamamotoyama';
2-17634218-20
What is the lowest Tournaments, when Name is "Baruto"?
CREATE TABLE "fastest_progress_to_top_division" ( "name" text, "tournaments" real, "pro_debut" text, "top_division_debut" text, "highest_rank" text );
SELECT MIN("tournaments") FROM "fastest_progress_to_top_division" WHERE "name"='baruto';
2-17634218-20
What is the highest Tournaments, when Pro Debut is "July 2002"?
CREATE TABLE "fastest_progress_to_top_division" ( "name" text, "tournaments" real, "pro_debut" text, "top_division_debut" text, "highest_rank" text );
SELECT MAX("tournaments") FROM "fastest_progress_to_top_division" WHERE "pro_debut"='july 2002';
2-17634218-20
What is Pro Debut, when Tournament is greater than 11, and when Highest Rank is "Maegashira 1"?
CREATE TABLE "fastest_progress_to_top_division" ( "name" text, "tournaments" real, "pro_debut" text, "top_division_debut" text, "highest_rank" text );
SELECT "pro_debut" FROM "fastest_progress_to_top_division" WHERE "tournaments">11 AND "highest_rank"='maegashira 1';
2-17634218-20
How many League Cup Goals have 0 as the total goals, with delroy facey as the name?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT COUNT("league_cup_goals") FROM "appearances_and_goals" WHERE "total_goals"=0 AND "name"='delroy facey';
2-17717981-1
How many total goals have 0 (3) as total apps, with league goals less than 0?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT COUNT("total_goals") FROM "appearances_and_goals" WHERE "total_apps"='0 (3)' AND "league_goals"<0;
2-17717981-1
What is the lowest league goals that have 0 as the FA Cup Apps, with 1 (3) as totals apps?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" text, "fa_cup_goals" real, "league_cup_apps" text, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT MIN("league_goals") FROM "appearances_and_goals" WHERE "fa_cup_apps"='0' AND "total_apps"='1 (3)';
2-17717981-1
What was Stockholm's score when Malmo scored 2?
CREATE TABLE "juries" ( "song" text, "international_jury" text, "lule" text, "ume" text, "sundsvall" text, "falun" text, "karlstad" text, "rebro" text, "norrk_ping" text, "g_teborg" text, "v_xj" text, "malm" text, "stockholm" text, "total" real );
SELECT "stockholm" FROM "juries" WHERE "malm"='2';
2-18353899-9
What did Vaxjo score when Karlstad scored 1?
CREATE TABLE "juries" ( "song" text, "international_jury" text, "lule" text, "ume" text, "sundsvall" text, "falun" text, "karlstad" text, "rebro" text, "norrk_ping" text, "g_teborg" text, "v_xj" text, "malm" text, "stockholm" text, "total" real );
SELECT "v_xj" FROM "juries" WHERE "karlstad"='1';
2-18353899-9
What did Sundsvall score when Falun scored 2?
CREATE TABLE "juries" ( "song" text, "international_jury" text, "lule" text, "ume" text, "sundsvall" text, "falun" text, "karlstad" text, "rebro" text, "norrk_ping" text, "g_teborg" text, "v_xj" text, "malm" text, "stockholm" text, "total" real );
SELECT "sundsvall" FROM "juries" WHERE "falun"='2';
2-18353899-9
What was the highest total when Norrkoping scored 12?
CREATE TABLE "juries" ( "song" text, "international_jury" text, "lule" text, "ume" text, "sundsvall" text, "falun" text, "karlstad" text, "rebro" text, "norrk_ping" text, "g_teborg" text, "v_xj" text, "malm" text, "stockholm" text, "total" real );
SELECT MAX("total") FROM "juries" WHERE "norrk_ping"='12';
2-18353899-9
What did Orebro score when Umea scored 2?
CREATE TABLE "juries" ( "song" text, "international_jury" text, "lule" text, "ume" text, "sundsvall" text, "falun" text, "karlstad" text, "rebro" text, "norrk_ping" text, "g_teborg" text, "v_xj" text, "malm" text, "stockholm" text, "total" real );
SELECT "rebro" FROM "juries" WHERE "ume"='2';
2-18353899-9
What was the result of the game that was attended by 80,886 people?
CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "attendance"='80,886';
2-17963395-1
What was the result of the game that was attended by 72,703 people?
CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "attendance"='72,703';
2-17963395-1
What was the result of the game that was attended by 41,650 people?
CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "attendance"='41,650';
2-17963395-1
When was the game against Indiana?
CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "opponentnum"='indiana';
2-17963395-1
Which country is Brian Henninger from, who had a score larger than 69?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT "country" FROM "first_round" WHERE "score">69 AND "player"='brian henninger';
2-18026889-4
What is Darren Clarke's total score?
CREATE TABLE "first_round" ( "place" text, "player" text, "country" text, "score" real, "to_par" text );
SELECT COUNT("score") FROM "first_round" WHERE "player"='darren clarke';
2-18026889-4
Who was the away team on 9 February 1988?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "away_team" FROM "fourth_round_proper" WHERE "date"='9 february 1988';
2-17751827-4
Who was the away team on 30 January 1988, when the home team was Everton?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "away_team" FROM "fourth_round_proper" WHERE "home_team"='everton' AND "date"='30 january 1988';
2-17751827-4
On which date was the Tie no 2?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "fourth_round_proper" WHERE "tie_no"='2';
2-17751827-4
What was the Tie no when Manchester United was the home team?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "fourth_round_proper" WHERE "home_team"='manchester united';
2-17751827-4
What was the score when the Tie no was 9?
CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "fourth_round_proper" WHERE "tie_no"='9';
2-17751827-4
Which away team goes against the home team Mauritius?
CREATE TABLE "upcoming_fixtures_and_results" ( "date" text, "tournament" text, "location" text, "home_team" text, "away_team" text );
SELECT "away_team" FROM "upcoming_fixtures_and_results" WHERE "home_team"='mauritius';
2-18177477-1
Who is the away team that goes against Team Zambia?
CREATE TABLE "upcoming_fixtures_and_results" ( "date" text, "tournament" text, "location" text, "home_team" text, "away_team" text );
SELECT "away_team" FROM "upcoming_fixtures_and_results" WHERE "home_team"='zambia';
2-18177477-1
Which away team has Tie no 3?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "away_team" FROM "fifth_round_proper" WHERE "tie_no"='3';
2-17751827-5
What is the away team playing at Everton?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "away_team" FROM "fifth_round_proper" WHERE "home_team"='everton';
2-17751827-5
What is the home team that Bradford City is playing against?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "home_team" FROM "fifth_round_proper" WHERE "away_team"='bradford city';
2-17751827-5
Which Location has a Method of decision (unanimous), and Res of win x?
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 "method"='decision (unanimous)' AND "res"='win x';
2-17677681-2
Which Round has a Time of 0:37?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "round" FROM "mixed_martial_arts_record" WHERE "time"='0:37';
2-17677681-2
Which result has a Record of 16-6?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='16-6';
2-17677681-2
What Champion had a Score of 9–1?
CREATE TABLE "1972_to_1982" ( "champion" text, "score" text, "runner_up" text, "additional_participants" text, "host_location_s" text );
SELECT "champion" FROM "1972_to_1982" WHERE "score"='9–1';
2-17751942-2
What score has 3 as the place?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "score" FROM "final_leaderboard" WHERE "place"='3';
2-18130923-3
What player has t7 as the place, with tje United States as the country?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "player" FROM "final_leaderboard" WHERE "place"='t7' AND "country"='united states';
2-18130923-3
What score has hal sutton as the player?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "score" FROM "final_leaderboard" WHERE "player"='hal sutton';
2-18130923-3
Who was the artist before 2010 with a Promotional 7" as a format?
CREATE TABLE "releases" ( "year" real, "artist" text, "title" text, "format" text, "type" text );
SELECT "artist" FROM "releases" WHERE "year"<2010 AND "format"='promotional 7\"';
2-17860517-1
Who was the artist after 2012 with CD, LP as the format?
CREATE TABLE "releases" ( "year" real, "artist" text, "title" text, "format" text, "type" text );
SELECT "artist" FROM "releases" WHERE "year">2012 AND "format"='cd, lp';
2-17860517-1
What year had a title of Die Shaolin Affen EP and EP as the type?
CREATE TABLE "releases" ( "year" real, "artist" text, "title" text, "format" text, "type" text );
SELECT AVG("year") FROM "releases" WHERE "type"='ep' AND "title"='die shaolin affen ep';
2-17860517-1
What is the title of the Misfits with a CD format?
CREATE TABLE "releases" ( "year" real, "artist" text, "title" text, "format" text, "type" text );
SELECT "title" FROM "releases" WHERE "format"='cd' AND "artist"='misfits';
2-17860517-1
What was the highest number of bronze medals for the entry with rank 2 and fewer than 3 silver medals?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("bronze") FROM "medal_table" WHERE "rank"='2' AND "silver"<3;
2-17660359-1
What is the average number of gold medals won by Brazil for entries with more than 1 bronze medal but a total smaller than 4?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("gold") FROM "medal_table" WHERE "total"<4 AND "nation"='brazil' AND "bronze">1;
2-17660359-1
What is the sum of silver medals for the entry with rank 3 and a total of 4 medals?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("silver") FROM "medal_table" WHERE "total"=4 AND "rank"='3';
2-17660359-1
What shows for 3:30 pm when 1:00 is All My Children?
CREATE TABLE "fall_2001" ( "7_00_am" text, "9_00_am" text, "10_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "2_30_pm" text, "3_30_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "3_30_pm" FROM "fall_2001" WHERE "1_00_pm"='all my children';
2-17893851-1
What shows for 3:30 pm when 2:00 pm is local programs?
CREATE TABLE "fall_2001" ( "7_00_am" text, "9_00_am" text, "10_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "2_30_pm" text, "3_30_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "6_30_pm" FROM "fall_2001" WHERE "2_00_pm"='local programs';
2-17893851-1
What shows for 3:30 pm when 1:30 pm is the bold and the beautiful?
CREATE TABLE "fall_2001" ( "7_00_am" text, "9_00_am" text, "10_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "2_30_pm" text, "3_30_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "3_30_pm" FROM "fall_2001" WHERE "1_30_pm"='the bold and the beautiful';
2-17893851-1
What shows for 3:30 pm when 1:30 pm is local programs, and a 7:00 am is local programs?
CREATE TABLE "fall_2001" ( "7_00_am" text, "9_00_am" text, "10_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "2_30_pm" text, "3_30_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "11_00_am" FROM "fall_2001" WHERE "1_30_pm"='local programs' AND "7_00_am"='local programs';
2-17893851-1
What shows for 3:30 pm when 12:30 pm is the young and the restless?
CREATE TABLE "fall_2001" ( "7_00_am" text, "9_00_am" text, "10_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "2_30_pm" text, "3_30_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "noon" FROM "fall_2001" WHERE "12_30_pm"='the young and the restless';
2-17893851-1
What shows for 3:30 pm when 2:30 pm is local programs?
CREATE TABLE "fall_2001" ( "7_00_am" text, "9_00_am" text, "10_00_am" text, "11_00_am" text, "noon" text, "12_30_pm" text, "1_00_pm" text, "1_30_pm" text, "2_00_pm" text, "2_30_pm" text, "3_30_pm" text, "4_30_pm" text, "5_00_pm" text, "6_30_pm" text );
SELECT "5_00_pm" FROM "fall_2001" WHERE "2_30_pm"='local programs';
2-17893851-1
What season had a goal of 1?
CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, "apps" text, "goals" text );
SELECT "season" FROM "statistics" WHERE "goals"='1';
2-18314300-1
What club was in Netherlands and had 22 goals?
CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, "apps" text, "goals" text );
SELECT "club" FROM "statistics" WHERE "country"='netherlands' AND "goals"='22';
2-18314300-1
What season had Belgium and 1 goal?
CREATE TABLE "statistics" ( "season" text, "club" text, "country" text, "apps" text, "goals" text );
SELECT "season" FROM "statistics" WHERE "country"='belgium' AND "goals"='1';
2-18314300-1
Which Year has a Category of best film?
CREATE TABLE "awards" ( "year" real, "nominated_work" text, "award_s" text, "category" text, "result" text );
SELECT MAX("year") FROM "awards" WHERE "category"='best film';
2-18188881-1
Who is the incumbent from the democratic party in the washington 7 district?
CREATE TABLE "washington" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT "incumbent" FROM "washington" WHERE "party"='democratic' AND "district"='washington 7';
2-1805191-48
When was the earliest incumbent dave reichert was first elected?
CREATE TABLE "washington" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT MIN("first_elected") FROM "washington" WHERE "incumbent"='dave reichert';
2-1805191-48
What is the total of the first elected year of incumbent norm dicks?
CREATE TABLE "washington" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT COUNT("first_elected") FROM "washington" WHERE "incumbent"='norm dicks';
2-1805191-48
What is the total of the first elected year of the incumbent from the washington 8 district?
CREATE TABLE "washington" ( "district" text, "incumbent" text, "party" text, "first_elected" real, "results" text );
SELECT COUNT("first_elected") FROM "washington" WHERE "district"='washington 8';
2-1805191-48
WHAT IS THE START THAT HAS A FINISH BIGGER THAN 3, FROM FORD, AFTER 1969?
CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text );
SELECT MAX("start") FROM "daytona_500_results" WHERE "finish">3 AND "manufacturer"='ford' AND "year">1969;
2-1785736-1
WHAT MANUFACTURER AFTER 1966 HAD A START SMALLER THAN 5, A WOOD TEAM AND FINISHED 35?
CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text );
SELECT "manufacturer" FROM "daytona_500_results" WHERE "year">1966 AND "start"<5 AND "team"='wood' AND "finish"=35;
2-1785736-1
WHAT WAS THE FINISH NUMBER WITH A START SMALLER THAN 20 IN 1969?
CREATE TABLE "daytona_500_results" ( "year" real, "manufacturer" text, "start" real, "finish" real, "team" text );
SELECT COUNT("finish") FROM "daytona_500_results" WHERE "start"<20 AND "year"=1969;
2-1785736-1
What is the total number of Pleasure(s), when Psychological Dependence is greater than 1.9, and when Drug is "Benzodiazepines"?
CREATE TABLE "addictive_potential" ( "drug" text, "mean" real, "pleasure" real, "psychological_dependence" real, "physical_dependence" real );
SELECT COUNT("pleasure") FROM "addictive_potential" WHERE "psychological_dependence">1.9 AND "drug"='benzodiazepines';
2-1778796-1
What is the highest Psychological Dependence, when Pleasure is less than 2.3, when Drug is "Cannabis", and when Physical Dependence is less than 0.8?
CREATE TABLE "addictive_potential" ( "drug" text, "mean" real, "pleasure" real, "psychological_dependence" real, "physical_dependence" real );
SELECT MAX("psychological_dependence") FROM "addictive_potential" WHERE "pleasure"<2.3 AND "drug"='cannabis' AND "physical_dependence"<0.8;
2-1778796-1
What is the average Mean, when Drug is "Alcohol", and when Psychological Dependence is greater than 1.9?
CREATE TABLE "addictive_potential" ( "drug" text, "mean" real, "pleasure" real, "psychological_dependence" real, "physical_dependence" real );
SELECT AVG("mean") FROM "addictive_potential" WHERE "drug"='alcohol' AND "psychological_dependence">1.9;
2-1778796-1
What is the total number of Psychological Dependence, when Pleasure is "2.3", and when Mean is less than 1.9300000000000002?
CREATE TABLE "addictive_potential" ( "drug" text, "mean" real, "pleasure" real, "psychological_dependence" real, "physical_dependence" real );
SELECT COUNT("psychological_dependence") FROM "addictive_potential" WHERE "pleasure"=2.3 AND "mean"<1.9300000000000002;
2-1778796-1
What is the sum of Pleasure, when Drug is "LSD", and when Psychological Dependence is greater than 1.1?
CREATE TABLE "addictive_potential" ( "drug" text, "mean" real, "pleasure" real, "psychological_dependence" real, "physical_dependence" real );
SELECT SUM("pleasure") FROM "addictive_potential" WHERE "drug"='lsd' AND "psychological_dependence">1.1;
2-1778796-1
What Country's team is Rajasthan Royals at the 2008 Indian Premier League?
CREATE TABLE "qualified_teams" ( "team" text, "country" text, "domestic_tournament" text, "position" text, "group" text );
SELECT "country" FROM "qualified_teams" WHERE "domestic_tournament"='2008 indian premier league' AND "team"='rajasthan royals';
2-17838162-2
What is the Domestic Tournament with Chennai Super Kings Team?
CREATE TABLE "qualified_teams" ( "team" text, "country" text, "domestic_tournament" text, "position" text, "group" text );
SELECT "domestic_tournament" FROM "qualified_teams" WHERE "team"='chennai super kings';
2-17838162-2
What is the Dolphins Group?
CREATE TABLE "qualified_teams" ( "team" text, "country" text, "domestic_tournament" text, "position" text, "group" text );
SELECT "group" FROM "qualified_teams" WHERE "team"='dolphins';
2-17838162-2
Who is the player that won in the year 1978?
CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real );
SELECT "player" FROM "missed_the_cut" WHERE "year_s_won"='1978';
2-18112814-2
What is the Country of the Player with a Score of 73-71-76-70=290?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "country" FROM "final_leaderboard" WHERE "score"='73-71-76-70=290';
2-18007230-2
What is Lawson Little's Money ($) amount?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "money" FROM "final_leaderboard" WHERE "player"='lawson little';
2-18007230-2
What is the Money ($) amount of the Player with a To par of e?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "money" FROM "final_leaderboard" WHERE "to_par"='e';
2-18007230-2
What Country has a Player with Playoff Money with a Score of 72-69-73-73=287?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "country" FROM "final_leaderboard" WHERE "money"='playoff' AND "score"='72-69-73-73=287';
2-18007230-2
What is Ben Hogan's Place?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "place" FROM "final_leaderboard" WHERE "player"='ben hogan';
2-18007230-2
What is the Place of the Player with a Score of 73-75-71-73=292?
CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "place" FROM "final_leaderboard" WHERE "score"='73-75-71-73=292';
2-18007230-2
How many byes when there are 11 wins and fewer than 5 losses?
CREATE TABLE "2012_ladder" ( "central_murray" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT SUM("byes") FROM "2012_ladder" WHERE "wins"=11 AND "losses"<5;
2-17982176-8
How many losses when there are less than 0 wins?
CREATE TABLE "2012_ladder" ( "central_murray" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT COUNT("losses") FROM "2012_ladder" WHERE "wins"<0;
2-17982176-8
What are the most againsts with more than 11 losses and central murray is Nyah Nyah West Utd?
CREATE TABLE "2012_ladder" ( "central_murray" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MAX("against") FROM "2012_ladder" WHERE "central_murray"='nyah nyah west utd' AND "losses">11;
2-17982176-8
What is the To par of the player with Money of 7,750 or more?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" real );
SELECT "to_par" FROM "final_round" WHERE "money">'7,750';
2-18169093-6
who is the provider when up (up to kbit/s) is 1180?
CREATE TABLE "germany" ( "dsl_type" text, "provider" text, "resale" text, "down_up_to_kbit_s" real, "up_up_to_kbit_s" real );
SELECT "provider" FROM "germany" WHERE "up_up_to_kbit_s"=1180;
2-1773908-3
what is the highest down (up to kbits/s) when resale is yes, up ( up to kbit/s) is 1180 and provider is 1&1?
CREATE TABLE "germany" ( "dsl_type" text, "provider" text, "resale" text, "down_up_to_kbit_s" real, "up_up_to_kbit_s" real );
SELECT MAX("down_up_to_kbit_s") FROM "germany" WHERE "resale"='yes' AND "up_up_to_kbit_s"=1180 AND "provider"='1&1';
2-1773908-3
what is the resale when the down (up to kbit/s) is 24000?
CREATE TABLE "germany" ( "dsl_type" text, "provider" text, "resale" text, "down_up_to_kbit_s" real, "up_up_to_kbit_s" real );
SELECT "resale" FROM "germany" WHERE "down_up_to_kbit_s"=24000;
2-1773908-3
What is the average down (up to kbit/s) when the provider is willy.tel and the up (kbit/s) is more than 1984?
CREATE TABLE "germany" ( "dsl_type" text, "provider" text, "resale" text, "down_up_to_kbit_s" real, "up_up_to_kbit_s" real );
SELECT AVG("down_up_to_kbit_s") FROM "germany" WHERE "provider"='willy.tel' AND "up_up_to_kbit_s">1984;
2-1773908-3
How many totals have a Gold larger than 0, and a Bronze smaller than 0?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("total") FROM "medal_table" WHERE "gold">0 AND "bronze"<0;
2-17873606-7
Which Total has a Bronze larger than 1, and a Gold larger than 0?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("total") FROM "medal_table" WHERE "bronze">1 AND "gold">0;
2-17873606-7
What country is Eugene McDowell from?
CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text );
SELECT "nationality" FROM "draft_picks" WHERE "player"='eugene mcdowell';
2-17741140-1
When was Mario Elie picked in a round before 7?
CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text );
SELECT MAX("pick") FROM "draft_picks" WHERE "player"='mario elie' AND "round"<7;
2-17741140-1
In what round did someone from North Carolina State get picked larger than 91?
CREATE TABLE "draft_picks" ( "round" real, "pick" real, "player" text, "nationality" text, "school_club_team" text );
SELECT COUNT("round") FROM "draft_picks" WHERE "school_club_team"='north carolina state' AND "pick">91;
2-17741140-1
Which Results have a Category of the best new actor in lead role(female)?
CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "show" text, "character" text, "results" text );
SELECT "results" FROM "awards" WHERE "category"='best new actor in lead role(female)';
2-17926280-4
What was the category in 2008?
CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "show" text, "character" text, "results" text );
SELECT "category" FROM "awards" WHERE "year"=2008;
2-17926280-4
Which Character has a Category of favourite naya sadasya?
CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "show" text, "character" text, "results" text );
SELECT "character" FROM "awards" WHERE "category"='favourite naya sadasya';
2-17926280-4
Which Show has an Award of indian television academy awards?
CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "show" text, "character" text, "results" text );
SELECT "show" FROM "awards" WHERE "award"='indian television academy awards';
2-17926280-4
What award was won after 2008?
CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "show" text, "character" text, "results" text );
SELECT "award" FROM "awards" WHERE "year">2008;
2-17926280-4
On what Date did the massacre result with 21 Injured?
CREATE TABLE "school_massacres" ( "perpetrator" text, "date" text, "year" real, "location" text, "country" text, "killed" real, "injured" text, "additional_notes" text );
SELECT "date" FROM "school_massacres" WHERE "injured"='21';
2-17794738-8
What is City / State, when Winner is "Rohan Onslow", and when Circuit is "Oran Park Raceway"?
CREATE TABLE "race_calendar" ( "circuit" text, "city_state" text, "date" text, "winner" text, "team" text );
SELECT "city_state" FROM "race_calendar" WHERE "winner"='rohan onslow' AND "circuit"='oran park raceway';
2-17677697-2