question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
How many episodes had 16.03 million viewers?
CREATE TABLE "table1_11058032_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );
SELECT COUNT("no_in_series") FROM "table1_11058032_1" WHERE "u_s_viewers_millions"='16.03';
1-11058032-1
What is the number of interregnum for duration 3 months, 6 days?
CREATE TABLE "list_of_imperial_vicars_1437_1792" ( "interregnum_began" text, "interregnum_ended" text, "duration" text, "count_palatine_of_saxony" text, "count_palatine_of_the_rhine" text );
SELECT COUNT("interregnum_ended") FROM "list_of_imperial_vicars_1437_1792" WHERE "duration"='3 months, 6 days';
1-11071897-1
Who directed Episode 8?
CREATE TABLE "table1_11075747_4" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );
SELECT "directed_by" FROM "table1_11075747_4" WHERE "episode_num"=8;
1-11075747-4
Who directed the episode called "Tell-tale Heart"?
CREATE TABLE "table1_11075747_4" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );
SELECT "directed_by" FROM "table1_11075747_4" WHERE "title"='\"Tell-Tale Heart\"';
1-11075747-4
What was the original air date for Series 36?
CREATE TABLE "table1_11075747_4" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );
SELECT "original_air_date" FROM "table1_11075747_4" WHERE "series_num"=36;
1-11075747-4
Who wrote Series 38?
CREATE TABLE "table1_11075747_4" ( "series_num" real, "episode_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text );
SELECT "written_by" FROM "table1_11075747_4" WHERE "series_num"=38;
1-11075747-4
What is the percentage for manhattan 45,901?
CREATE TABLE "1973" ( "1973_democratic_initial_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );
SELECT COUNT("pct") FROM "1973" WHERE "manhattan"='45,901';
1-1108394-24
Who won the 1973 democratic initial primary for queens of 19%?
CREATE TABLE "1973" ( "1973_democratic_initial_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );
SELECT "1973_democratic_initial_primary" FROM "1973" WHERE "queens"='19%';
1-1108394-24
What is the manhattan for richmond 35%?
CREATE TABLE "1973" ( "1973_democratic_initial_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );
SELECT "manhattan" FROM "1973" WHERE "richmond_staten_is"='35%';
1-1108394-24
What is the queens where richmond staten is 42%?
CREATE TABLE "1973" ( "1973_democratic_initial_primary" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );
SELECT "queens" FROM "1973" WHERE "richmond_staten_is"='42%';
1-1108394-24
what's the party with brooklyn value of 51.0%
CREATE TABLE "1932" ( "1932_before_recount" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );
SELECT "party" FROM "1932" WHERE "brooklyn"='51.0%';
1-1108394-43
what's the brooklyn with queens value of 16.8%
CREATE TABLE "1932" ( "1932_before_recount" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );
SELECT "brooklyn" FROM "1932" WHERE "queens"='16.8%';
1-1108394-43
what is the minimum total
CREATE TABLE "1932" ( "1932_before_recount" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );
SELECT MIN("total") FROM "1932";
1-1108394-43
what's the % with total value of 249887 and queens value of 6.8%
CREATE TABLE "1932" ( "1932_before_recount" text, "party" text, "manhattan" text, "the_bronx" text, "brooklyn" text, "queens" text, "richmond_staten_is" text, "total" real, "pct" text );
SELECT "pct" FROM "1932" WHERE "total"=249887 AND "queens"='6.8%';
1-1108394-43
Which teams were in the central division and located in livonia?
CREATE TABLE "kensington_lakes_activities_association" ( "team" text, "location" text, "joined" real, "conference" text, "division" text, "previous_conference" text );
SELECT "team" FROM "kensington_lakes_activities_association" WHERE "division"='Central' AND "location"='Livonia';
1-11094950-1
Which teams are located in highland township?
CREATE TABLE "kensington_lakes_activities_association" ( "team" text, "location" text, "joined" real, "conference" text, "division" text, "previous_conference" text );
SELECT "team" FROM "kensington_lakes_activities_association" WHERE "location"='Highland Township';
1-11094950-1
What conference was the churchill chargers team in?
CREATE TABLE "kensington_lakes_activities_association" ( "team" text, "location" text, "joined" real, "conference" text, "division" text, "previous_conference" text );
SELECT "conference" FROM "kensington_lakes_activities_association" WHERE "team"='Churchill Chargers';
1-11094950-1
What was the titles of the episodes written by ken lazebnik?
CREATE TABLE "table1_11111116_7" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT "title" FROM "table1_11111116_7" WHERE "written_by"='Ken LaZebnik';
1-11111116-7
Who directed an episode that had 2.81 million U.S. viewers?
CREATE TABLE "table1_11111116_7" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT "directed_by" FROM "table1_11111116_7" WHERE "u_s_viewers_million"='2.81';
1-11111116-7
What were the names of the episodes that had 3.02 million U.S. viewers?
CREATE TABLE "table1_11111116_7" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT "title" FROM "table1_11111116_7" WHERE "u_s_viewers_million"='3.02';
1-11111116-7
What were the original air dates of the episode named "winds of war"?
CREATE TABLE "table1_11111116_7" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT "original_air_date" FROM "table1_11111116_7" WHERE "title"='\"Winds of War\"';
1-11111116-7
Who directed episodes that had 2.61 million U.S. viewers?
CREATE TABLE "table1_11111116_7" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT "directed_by" FROM "table1_11111116_7" WHERE "u_s_viewers_million"='2.61';
1-11111116-7
How many millions of U.S. viewers watched "Brace for Impact"?
CREATE TABLE "table1_11111116_8" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT "u_s_viewers_million" FROM "table1_11111116_8" WHERE "title"='\"Brace for Impact\"';
1-11111116-8
How many millions of U.S. viewers watched the episode that first aired on March 31, 2013?
CREATE TABLE "table1_11111116_8" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT "u_s_viewers_million" FROM "table1_11111116_8" WHERE "original_air_date"='March 31, 2013';
1-11111116-8
Who wrote the episodes that were viewed by 2.12 million viewers?
CREATE TABLE "table1_11111116_8" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT "written_by" FROM "table1_11111116_8" WHERE "u_s_viewers_million"='2.12';
1-11111116-8
The episode written by Rebecca Dameron aired on what date?
CREATE TABLE "table1_11111116_6" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT "original_air_date" FROM "table1_11111116_6" WHERE "written_by"='Rebecca Dameron';
1-11111116-6
Which episode in the series drew 3.6 million U.S. viewers?
CREATE TABLE "table1_11111116_6" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT MIN("no_in_series") FROM "table1_11111116_6" WHERE "u_s_viewers_million"='3.6';
1-11111116-6
Who wrote the episode that aired on April 17, 2011?
CREATE TABLE "table1_11111116_6" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT "written_by" FROM "table1_11111116_6" WHERE "original_air_date"='April 17, 2011';
1-11111116-6
How many times did episode 79 originally air?
CREATE TABLE "table1_11111116_6" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT COUNT("original_air_date") FROM "table1_11111116_6" WHERE "no_in_series"=79;
1-11111116-6
How many millions of views in the country watched "Line of Departure"?
CREATE TABLE "table1_11111116_6" ( "no_in_season" real, "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text );
SELECT "u_s_viewers_million" FROM "table1_11111116_6" WHERE "title"='\"Line of Departure\"';
1-11111116-6
What is the name of the shield winner in which the mls cup winner and mls cup runner up is colorado rapids?
CREATE TABLE "table1_11148572_1" ( "season" real, "mls_cup_winner" text, "mls_cup_runner_up" text, "mls_supporters_shield_winner" text, "mls_supporters_shield_runner_up" text );
SELECT "mls_cup_winner" FROM "table1_11148572_1" WHERE "mls_cup_runner_up"='Colorado Rapids';
1-11148572-1
What is the name of the shield winner in which the mls cup winner and mls supporters shield runner up is Chivas usa?
CREATE TABLE "table1_11148572_1" ( "season" real, "mls_cup_winner" text, "mls_cup_runner_up" text, "mls_supporters_shield_winner" text, "mls_supporters_shield_runner_up" text );
SELECT "mls_cup_winner" FROM "table1_11148572_1" WHERE "mls_supporters_shield_runner_up"='Chivas USA';
1-11148572-1
who is the of the shield winnerin which the mls cup runner-up and mls cup winner is real salt lake?
CREATE TABLE "table1_11148572_1" ( "season" real, "mls_cup_winner" text, "mls_cup_runner_up" text, "mls_supporters_shield_winner" text, "mls_supporters_shield_runner_up" text );
SELECT "mls_cup_runner_up" FROM "table1_11148572_1" WHERE "mls_cup_winner"='Real Salt Lake';
1-11148572-1
Which shield winner has the mls cup runner up and the season is 2000?
CREATE TABLE "table1_11148572_1" ( "season" real, "mls_cup_winner" text, "mls_cup_runner_up" text, "mls_supporters_shield_winner" text, "mls_supporters_shield_runner_up" text );
SELECT "mls_cup_runner_up" FROM "table1_11148572_1" WHERE "season"=2000;
1-11148572-1
League apps (sub) maximum?
CREATE TABLE "sheffield_united_career" ( "season" text, "division" text, "league_apps_sub" real, "league_goals" real, "fa_cup_apps_sub" text, "fa_cup_goals" real, "fl_cup_apps_sub" real, "fl_cup_goals" real, "other_apps" real, "other_goals" real, "total_apps_sub" text, "total_goals" real );
SELECT MAX("league_apps_sub") FROM "sheffield_united_career";
1-1112176-1
When total goals is 11 what was the league apps (sub)?
CREATE TABLE "sheffield_united_career" ( "season" text, "division" text, "league_apps_sub" real, "league_goals" real, "fa_cup_apps_sub" text, "fa_cup_goals" real, "fl_cup_apps_sub" real, "fl_cup_goals" real, "other_apps" real, "other_goals" real, "total_apps_sub" text, "total_goals" real );
SELECT MAX("league_apps_sub") FROM "sheffield_united_career" WHERE "total_goals"=11;
1-1112176-1
Which city had the charleston area convention center as its callback location
CREATE TABLE "regional_auditions" ( "episode_air_date" text, "audition_city" text, "date" text, "first_audition_venue" text, "callback_date" text, "callback_venue" text, "golden_tickets" real );
SELECT "audition_city" FROM "regional_auditions" WHERE "callback_venue"='Charleston Area Convention Center';
1-11129123-1
When did the callbacks from rancho bernardo inn air
CREATE TABLE "regional_auditions" ( "episode_air_date" text, "audition_city" text, "date" text, "first_audition_venue" text, "callback_date" text, "callback_venue" text, "golden_tickets" real );
SELECT "episode_air_date" FROM "regional_auditions" WHERE "callback_venue"='Rancho Bernardo Inn';
1-11129123-1
The station located in Albuquerque has been owned since what year?
CREATE TABLE "table1_11147852_1" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "year_of_affiliation" text, "owned_since" text );
SELECT "owned_since" FROM "table1_11147852_1" WHERE "city_of_license_market"='Albuquerque';
1-11147852-1
What channels have stations that were affiliated in 2002?
CREATE TABLE "table1_11147852_1" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "year_of_affiliation" text, "owned_since" text );
SELECT "channel_tv_dt" FROM "table1_11147852_1" WHERE "year_of_affiliation"='2002';
1-11147852-1
What market is KTFK-DT in?
CREATE TABLE "table1_11147852_1" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "year_of_affiliation" text, "owned_since" text );
SELECT "city_of_license_market" FROM "table1_11147852_1" WHERE "station"='KTFK-DT';
1-11147852-1
what's the engine where performance is 0–100km/h: 10.5s, vmax km/h (mph)
CREATE TABLE "volvo_850_quick_information_by_trim_leve" ( "trim" text, "engine" text, "turbo" text, "fuel_delivery" text, "power" text, "torque" text, "transmission" text, "performance" text );
SELECT "engine" FROM "volvo_850_quick_information_by_trim_leve" WHERE "performance"='0–100km/h: 10.5s, VMax km/h (mph)';
1-11167610-1
what's the turbo where trim is 2.0 20v
CREATE TABLE "volvo_850_quick_information_by_trim_leve" ( "trim" text, "engine" text, "turbo" text, "fuel_delivery" text, "power" text, "torque" text, "transmission" text, "performance" text );
SELECT "turbo" FROM "volvo_850_quick_information_by_trim_leve" WHERE "trim"='2.0 20v';
1-11167610-1
what's the torque where performance is 0–100km/h: 7.5s auto, vmax: km/h (mph)
CREATE TABLE "volvo_850_quick_information_by_trim_leve" ( "trim" text, "engine" text, "turbo" text, "fuel_delivery" text, "power" text, "torque" text, "transmission" text, "performance" text );
SELECT "torque" FROM "volvo_850_quick_information_by_trim_leve" WHERE "performance"='0–100km/h: 7.5s auto, VMax: km/h (mph)';
1-11167610-1
what's the transmission where turbo is yes (mitsubishi td04-16t )
CREATE TABLE "volvo_850_quick_information_by_trim_leve" ( "trim" text, "engine" text, "turbo" text, "fuel_delivery" text, "power" text, "torque" text, "transmission" text, "performance" text );
SELECT "transmission" FROM "volvo_850_quick_information_by_trim_leve" WHERE "turbo"='Yes (Mitsubishi TD04-16t )';
1-11167610-1
what's the fuel delivery where power is hp (kw) @6500 rpm
CREATE TABLE "volvo_850_quick_information_by_trim_leve" ( "trim" text, "engine" text, "turbo" text, "fuel_delivery" text, "power" text, "torque" text, "transmission" text, "performance" text );
SELECT "fuel_delivery" FROM "volvo_850_quick_information_by_trim_leve" WHERE "power"='hp (kW) @6500 rpm';
1-11167610-1
" what's the engine with turbo being yes (mitsubishi td04-15g ) "
CREATE TABLE "volvo_850_quick_information_by_trim_leve" ( "trim" text, "engine" text, "turbo" text, "fuel_delivery" text, "power" text, "torque" text, "transmission" text, "performance" text );
SELECT "engine" FROM "volvo_850_quick_information_by_trim_leve" WHERE "turbo"='Yes (Mitsubishi TD04-15g )';
1-11167610-1
What is the english title that has finale as 33 and peak as 42?
CREATE TABLE "highest_rating_drama_series_of_2007" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text );
SELECT "english_title" FROM "highest_rating_drama_series_of_2007" WHERE "finale"=33 AND "peak"=42;
1-11173827-1
What is the english title where the premiere is less than 30.0 and the finale is bigger than 36.0?
CREATE TABLE "highest_rating_drama_series_of_2007" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text );
SELECT "english_title" FROM "highest_rating_drama_series_of_2007" WHERE "premiere"<30.0 AND "finale">36.0;
1-11173827-1
What is the rank of the chinese title 緣來自有機?
CREATE TABLE "highest_rating_drama_series_of_2007" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text );
SELECT "rank" FROM "highest_rating_drama_series_of_2007" WHERE "chinese_title"='緣來自有機';
1-11173827-1
What amount is the number of hk viewers where chinese title is 十兄弟?
CREATE TABLE "highest_rating_drama_series_of_2007" ( "rank" real, "english_title" text, "chinese_title" text, "average" real, "peak" real, "premiere" real, "finale" real, "hk_viewers" text );
SELECT "hk_viewers" FROM "highest_rating_drama_series_of_2007" WHERE "chinese_title"='十兄弟';
1-11173827-1
What is the weekly rank with an air date is november 12, 2007?
CREATE TABLE "u_s_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "weekly_rank" real );
SELECT "weekly_rank" FROM "u_s_ratings" WHERE "air_date"='November 12, 2007';
1-11178271-1
What is the air date of the episode "blowback"?
CREATE TABLE "u_s_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "weekly_rank" real );
SELECT "air_date" FROM "u_s_ratings" WHERE "episode"='\"Blowback\"';
1-11178271-1
What is the lowest weekly rank with an air date of november 26, 2007?
CREATE TABLE "u_s_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "weekly_rank" real );
SELECT MIN("weekly_rank") FROM "u_s_ratings" WHERE "air_date"='November 26, 2007';
1-11178271-1
What is the episode where 18-49 has a rating/share of 3.5/9
CREATE TABLE "u_s_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "weekly_rank" real );
SELECT "episode" FROM "u_s_ratings" WHERE "18_49_rating_share"='3.5/9';
1-11178271-1
What is the viewers where the rating is 5.3?
CREATE TABLE "u_s_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "weekly_rank" real );
SELECT "viewers_m" FROM "u_s_ratings" WHERE "rating"='5.3';
1-11178271-1
What is the 18-49 rating/share where the viewers is 5.61?
CREATE TABLE "u_s_ratings" ( "num" real, "episode" text, "air_date" text, "rating" text, "share" real, "18_49_rating_share" text, "viewers_m" text, "weekly_rank" real );
SELECT "18_49_rating_share" FROM "u_s_ratings" WHERE "viewers_m"='5.61';
1-11178271-1
What is the highest of balmoor/
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT "highest" FROM "attendances" WHERE "stadium"='Balmoor';
1-11206787-5
What is the number of capacity at somerset park?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT COUNT("capacity") FROM "attendances" WHERE "stadium"='Somerset Park';
1-11206787-5
What is the minimum capacity where airdrie united is?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT MIN("capacity") FROM "attendances" WHERE "team"='Airdrie United';
1-11206787-5
What is the stadium for alloa athletic?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT "stadium" FROM "attendances" WHERE "team"='Alloa Athletic';
1-11206787-5
What is the highest of ayr united?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT MIN("highest") FROM "attendances" WHERE "team"='Ayr United';
1-11206787-5
What is the average?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT MIN("average") FROM "attendances";
1-11206787-5
When are team Galway's dates of appointment?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position" text );
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='Galway';
1-11190568-7
When are the vacancy dates for outgoing manager Damien Fox?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position" text );
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "outgoing_manager"='Damien Fox';
1-11190568-7
When is the date of vacancy of Davy Fitzgerald being a replacement?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position" text );
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "replaced_by"='Davy FitzGerald';
1-11190568-7
Which team has the outgoing manager John Meyler?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position" text );
SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='John Meyler';
1-11190568-7
How many times is 3 credits 180?
CREATE TABLE "see_also" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" text );
SELECT COUNT("1_credit") FROM "see_also" WHERE "3_credits"=180;
1-11200856-1
What is the hand for 4 credits is 1600?
CREATE TABLE "see_also" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" text );
SELECT "hand" FROM "see_also" WHERE "4_credits"=1600;
1-11200856-1
How many 3 credits are there with 5 credits of 5?
CREATE TABLE "see_also" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" text );
SELECT COUNT("3_credits") FROM "see_also" WHERE "5_credits"='5';
1-11200856-1
How many 4 credits is the hand two pair?
CREATE TABLE "see_also" ( "hand" text, "1_credit" real, "2_credits" real, "3_credits" real, "4_credits" real, "5_credits" text );
SELECT COUNT("4_credits") FROM "see_also" WHERE "hand"='Two pair';
1-11200856-1
What duration is listed for Christian de la Fuente?
CREATE TABLE "law_enforcement" ( "character" text, "position" text, "actor" text, "first_episode" text, "final_episode" text, "duration" text, "final_episode_count" real );
SELECT "duration" FROM "law_enforcement" WHERE "actor"='Christian de la Fuente';
1-11210576-3
What was the final episode for Dea Agent?
CREATE TABLE "law_enforcement" ( "character" text, "position" text, "actor" text, "first_episode" text, "final_episode" text, "duration" text, "final_episode_count" real );
SELECT "final_episode" FROM "law_enforcement" WHERE "position"='DEA Agent';
1-11210576-3
What days is greenock morton vacant?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "team"='Greenock Morton';
1-11207040-6
What are the dates of the outgoing manager colin hendry does appointments?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Colin Hendry';
1-11207040-6
What teams does jim mcinally manage?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );
SELECT "team" FROM "managerial_changes" WHERE "outgoing_manager"='Jim McInally';
1-11207040-6
What days are vacant that were replaced by john brown?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "replaced_by"='John Brown';
1-11207040-6
What manner of departure is listed with an appointment date of 13 march 2008
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='13 March 2008';
1-11206916-2
What is the date of appointment for outgoing manager Campbell Money
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Campbell Money';
1-11206916-2
What is the lowest attendance that East End Park has ever had?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT MIN("lowest") FROM "attendances" WHERE "stadium"='East End Park';
1-11207040-5
What team plays at Palmerston Park?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT "team" FROM "attendances" WHERE "stadium"='Palmerston Park';
1-11207040-5
What is the lowest attandance recorded at Cappielow?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT MIN("lowest") FROM "attendances" WHERE "stadium"='Cappielow';
1-11207040-5
What is the highest attendance at a game played by St. Johnstone?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT MAX("highest") FROM "attendances" WHERE "team"='St. Johnstone';
1-11207040-5
What is the highest attandence at a Hamilton Academical game?
CREATE TABLE "attendances" ( "team" text, "stadium" text, "capacity" real, "highest" real, "lowest" real, "average" real );
SELECT MIN("highest") FROM "attendances" WHERE "team"='Hamilton Academical';
1-11207040-5
who is the champion where semi-finalist #2 is na and location is morrisville, nc
CREATE TABLE "division_i" ( "year" text, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text );
SELECT "champion" FROM "division_i" WHERE "semi_finalist_num2"='NA' AND "location"='Morrisville, NC';
1-11214772-1
what's the score where year is 2007
CREATE TABLE "division_i" ( "year" text, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text );
SELECT "score" FROM "division_i" WHERE "year"='2007';
1-11214772-1
what is the total number of semi-finalist #2 where runner-up is east carolina
CREATE TABLE "division_i" ( "year" text, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text );
SELECT COUNT("semi_finalist_num2") FROM "division_i" WHERE "runner_up"='East Carolina';
1-11214772-1
who is the semi-finalist #1 where runner-up is elon university
CREATE TABLE "division_i" ( "year" text, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text );
SELECT "semi_finalist_num1" FROM "division_i" WHERE "runner_up"='Elon University';
1-11214772-1
who is the runner-up where year is 2004 and champion is north carolina state
CREATE TABLE "division_i" ( "year" text, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text );
SELECT "runner_up" FROM "division_i" WHERE "year"='2004' AND "champion"='North Carolina State';
1-11214772-1
who is the runner-up where location is ellenton, fl and year is 2004
CREATE TABLE "division_i" ( "year" text, "champion" text, "score" text, "runner_up" text, "location" text, "semi_finalist_num1" text, "semi_finalist_num2" text );
SELECT "runner_up" FROM "division_i" WHERE "location"='Ellenton, FL' AND "year"='2004';
1-11214772-1
what's the naturalisation by marriage with numer of jamaicans granted british citizenship being 3165
CREATE TABLE "population_and_distribution" ( "year" real, "numer_of_jamaicans_granted_british_citizenship" real, "naturalisation_by_residence" real, "naturalisation_by_marriage" real, "registration_of_a_minor_child" real, "registration_by_other_means" real );
SELECT "naturalisation_by_marriage" FROM "population_and_distribution" WHERE "numer_of_jamaicans_granted_british_citizenship"=3165;
1-11214212-1
how many numer of jamaicans granted british citizenship with naturalisation by marriage being 1060
CREATE TABLE "population_and_distribution" ( "year" real, "numer_of_jamaicans_granted_british_citizenship" real, "naturalisation_by_residence" real, "naturalisation_by_marriage" real, "registration_of_a_minor_child" real, "registration_by_other_means" real );
SELECT COUNT("numer_of_jamaicans_granted_british_citizenship") FROM "population_and_distribution" WHERE "naturalisation_by_marriage"=1060;
1-11214212-1
what's the naturalisation by marriage with regbeingtration of a minor child being 114
CREATE TABLE "population_and_distribution" ( "year" real, "numer_of_jamaicans_granted_british_citizenship" real, "naturalisation_by_residence" real, "naturalisation_by_marriage" real, "registration_of_a_minor_child" real, "registration_by_other_means" real );
SELECT "naturalisation_by_marriage" FROM "population_and_distribution" WHERE "registration_of_a_minor_child"=114;
1-11214212-1
what's the numer of jamaicans granted british citizenship with naturalisation by residence being 927
CREATE TABLE "population_and_distribution" ( "year" real, "numer_of_jamaicans_granted_british_citizenship" real, "naturalisation_by_residence" real, "naturalisation_by_marriage" real, "registration_of_a_minor_child" real, "registration_by_other_means" real );
SELECT "numer_of_jamaicans_granted_british_citizenship" FROM "population_and_distribution" WHERE "naturalisation_by_residence"=927;
1-11214212-1
what is the maximum year with registration of a minor child being 281
CREATE TABLE "population_and_distribution" ( "year" real, "numer_of_jamaicans_granted_british_citizenship" real, "naturalisation_by_residence" real, "naturalisation_by_marriage" real, "registration_of_a_minor_child" real, "registration_by_other_means" real );
SELECT MAX("year") FROM "population_and_distribution" WHERE "registration_of_a_minor_child"=281;
1-11214212-1
How many episodes had their first air date on March 6, 2008?
CREATE TABLE "table1_11220799_2" ( "episode_titles" text, "first_air_date" text, "reward" text, "immunity" text, "exiled" text, "eliminated" text, "vote" text, "finish" text );
SELECT COUNT("episode_titles") FROM "table1_11220799_2" WHERE "first_air_date"='March 6, 2008';
1-11220799-2
What were the results of episodes with the first air date of March 6, 2008?
CREATE TABLE "table1_11220799_2" ( "episode_titles" text, "first_air_date" text, "reward" text, "immunity" text, "exiled" text, "eliminated" text, "vote" text, "finish" text );
SELECT "finish" FROM "table1_11220799_2" WHERE "first_air_date"='March 6, 2008';
1-11220799-2
How many millions of viewers watched episode 15?
CREATE TABLE "table1_11230937_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );
SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "no_in_season"=15;
1-11230937-2
How many millions of viewers watched the "Throwing Heat" episode?
CREATE TABLE "table1_11230937_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );
SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "title"='\"Throwing Heat\"';
1-11230937-2
How many millions of viewers watched the episode directed by Anthony Hemingway?
CREATE TABLE "table1_11230937_2" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_millions" text );
SELECT "u_s_viewers_millions" FROM "table1_11230937_2" WHERE "directed_by"='Anthony Hemingway';
1-11230937-2