question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
When edward shaw is the winner what is the date?
CREATE TABLE "changes_during_term" ( "by_election" real, "electorate" text, "date" text, "incumbent" text, "reason" text, "winner" text );
SELECT "date" FROM "changes_during_term" WHERE "winner"='Edward Shaw';
1-28898974-3
When peninsula is the electorate what is the reason?
CREATE TABLE "changes_during_term" ( "by_election" real, "electorate" text, "date" text, "incumbent" text, "reason" text, "winner" text );
SELECT "reason" FROM "changes_during_term" WHERE "electorate"='Peninsula';
1-28898974-3
When james seaton is the incumbent what is the reason?
CREATE TABLE "changes_during_term" ( "by_election" real, "electorate" text, "date" text, "incumbent" text, "reason" text, "winner" text );
SELECT "reason" FROM "changes_during_term" WHERE "incumbent"='James Seaton';
1-28898974-3
What was the handicap when the prize money was 120s?
CREATE TABLE "race_record" ( "age" real, "date" text, "track" text, "race" text, "distance_miles" text, "jockey" text, "handicap" text, "field_no_horses" text, "place" text, "time" text, "prize_money" text, "sweepstake" text, "archer_s_winnings" text );
SELECT "handicap" FROM "race_record" WHERE "prize_money"='120s';
1-2896329-1
On what date was the handicap 8 st 12 lb?
CREATE TABLE "race_record" ( "age" real, "date" text, "track" text, "race" text, "distance_miles" text, "jockey" text, "handicap" text, "field_no_horses" text, "place" text, "time" text, "prize_money" text, "sweepstake" text, "archer_s_winnings" text );
SELECT "date" FROM "race_record" WHERE "handicap"='8 st 12 lb';
1-2896329-1
On what date was the track Ballarat?
CREATE TABLE "race_record" ( "age" real, "date" text, "track" text, "race" text, "distance_miles" text, "jockey" text, "handicap" text, "field_no_horses" text, "place" text, "time" text, "prize_money" text, "sweepstake" text, "archer_s_winnings" text );
SELECT "date" FROM "race_record" WHERE "track"='Ballarat';
1-2896329-1
How many literate females(%) are there where the male(%) is 51.66
CREATE TABLE "list_of_talukas_in_ahmednagar_district_b" ( "taluka_name" text, "population_2001_census" real, "pct_of_district_population" text, "male" real, "male_pct" text, "female" real, "female_pct" text, "sex_ratio" real, "literacy" real, "literacy_pct" text, "literate_male" real, "literate_...
SELECT "literate_female_pct" FROM "list_of_talukas_in_ahmednagar_district_b" WHERE "male_pct"='51.66';
1-28939145-2
How many literate males are there in the taluka name nevasa?
CREATE TABLE "list_of_talukas_in_ahmednagar_district_b" ( "taluka_name" text, "population_2001_census" real, "pct_of_district_population" text, "male" real, "male_pct" text, "female" real, "female_pct" text, "sex_ratio" real, "literacy" real, "literacy_pct" text, "literate_male" real, "literate_...
SELECT MAX("literate_male") FROM "list_of_talukas_in_ahmednagar_district_b" WHERE "taluka_name"='Nevasa';
1-28939145-2
How many literate male (%) are there in the district that has a population of 3.28?
CREATE TABLE "list_of_talukas_in_ahmednagar_district_b" ( "taluka_name" text, "population_2001_census" real, "pct_of_district_population" text, "male" real, "male_pct" text, "female" real, "female_pct" text, "sex_ratio" real, "literacy" real, "literacy_pct" text, "literate_male" real, "literate_...
SELECT COUNT("literate_male_pct") FROM "list_of_talukas_in_ahmednagar_district_b" WHERE "pct_of_district_population"='3.28';
1-28939145-2
how many literate males are there that has a district population of 6.65?
CREATE TABLE "list_of_talukas_in_ahmednagar_district_b" ( "taluka_name" text, "population_2001_census" real, "pct_of_district_population" text, "male" real, "male_pct" text, "female" real, "female_pct" text, "sex_ratio" real, "literacy" real, "literacy_pct" text, "literate_male" real, "literate_...
SELECT "literate_male" FROM "list_of_talukas_in_ahmednagar_district_b" WHERE "pct_of_district_population"='6.65';
1-28939145-2
How many males are in the group that has an amount of 139361
CREATE TABLE "list_of_talukas_in_ahmednagar_district_b" ( "taluka_name" text, "population_2001_census" real, "pct_of_district_population" text, "male" real, "male_pct" text, "female" real, "female_pct" text, "sex_ratio" real, "literacy" real, "literacy_pct" text, "literate_male" real, "literate_...
SELECT "male" FROM "list_of_talukas_in_ahmednagar_district_b" WHERE "female"=139361;
1-28939145-2
List all the runners-up on 16 October 2012?
CREATE TABLE "series_overview" ( "series" real, "premiere" text, "finale" text, "runners_up" text, "winner" text );
SELECT "runners_up" FROM "series_overview" WHERE "finale"='16 October 2012';
1-28962227-1
What is the date when Miranda Gore Browne was runner-up?
CREATE TABLE "series_overview" ( "series" real, "premiere" text, "finale" text, "runners_up" text, "winner" text );
SELECT "finale" FROM "series_overview" WHERE "runners_up"='Miranda Gore Browne';
1-28962227-1
What is the date of the finale where Holly Bell was runner-up?
CREATE TABLE "series_overview" ( "series" real, "premiere" text, "finale" text, "runners_up" text, "winner" text );
SELECT "finale" FROM "series_overview" WHERE "runners_up"='Holly Bell';
1-28962227-1
What is the premiere of the season where Holly Bell was the runner-up?
CREATE TABLE "series_overview" ( "series" real, "premiere" text, "finale" text, "runners_up" text, "winner" text );
SELECT "premiere" FROM "series_overview" WHERE "runners_up"='Holly Bell';
1-28962227-1
How many runners-up were there when Joanne Wheatley won?
CREATE TABLE "series_overview" ( "series" real, "premiere" text, "finale" text, "runners_up" text, "winner" text );
SELECT COUNT("runners_up") FROM "series_overview" WHERE "winner"='Joanne Wheatley';
1-28962227-1
Who won the season for which Brendan Lynch is the runner-up?
CREATE TABLE "series_overview" ( "series" real, "premiere" text, "finale" text, "runners_up" text, "winner" text );
SELECT "winner" FROM "series_overview" WHERE "runners_up"='Brendan Lynch';
1-28962227-1
What is the pick # when the new jersey devils is the nhl team?
CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "pick_num" FROM "round_three" WHERE "nhl_team"='New Jersey Devils';
1-2897457-3
Which college/junior/team has defence as the position with canada as the nationality and the pick # is less than 61.0?
CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "college_junior_club_team" FROM "round_three" WHERE "position"='Defence' AND "nationality"='Canada' AND "pick_num"<61.0;
1-2897457-3
Which nhl team has kris draper as the player?
CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "nhl_team" FROM "round_three" WHERE "player"='Kris Draper';
1-2897457-3
Which position has new Jersey Devils as the nhl team?
CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "position" FROM "round_three" WHERE "nhl_team"='New Jersey Devils';
1-2897457-3
Which college/junior/club team has jim mathieson as the player?
CREATE TABLE "round_three" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "college_junior_club_team" FROM "round_three" WHERE "player"='Jim Mathieson';
1-2897457-3
What is the series number of "the fallen star"?
CREATE TABLE "table1_28967275_2" ( "episode_num" real, "series_num" real, "episode_title" text, "original_air_date" text, "production_code" real );
SELECT "series_num" FROM "table1_28967275_2" WHERE "episode_title"='\"The Fallen Star\"';
1-28967275-2
What is the production code of the episode with series #8?
CREATE TABLE "table1_28967275_2" ( "episode_num" real, "series_num" real, "episode_title" text, "original_air_date" text, "production_code" real );
SELECT "production_code" FROM "table1_28967275_2" WHERE "series_num"=8;
1-28967275-2
How many episodes are titled "the suspension"?
CREATE TABLE "table1_28967275_2" ( "episode_num" real, "series_num" real, "episode_title" text, "original_air_date" text, "production_code" real );
SELECT COUNT("episode_num") FROM "table1_28967275_2" WHERE "episode_title"='\"The Suspension\"';
1-28967275-2
What is the title of the episode with series number 14?
CREATE TABLE "table1_28967275_2" ( "episode_num" real, "series_num" real, "episode_title" text, "original_air_date" text, "production_code" real );
SELECT "episode_title" FROM "table1_28967275_2" WHERE "series_num"=14;
1-28967275-2
What is the original airdate of episode #31?
CREATE TABLE "table1_28967275_2" ( "episode_num" real, "series_num" real, "episode_title" text, "original_air_date" text, "production_code" real );
SELECT "original_air_date" FROM "table1_28967275_2" WHERE "episode_num"=31;
1-28967275-2
Who was drafted to the Vancouver Canucks?
CREATE TABLE "round_eight" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "player" FROM "round_eight" WHERE "nhl_team"='Vancouver Canucks';
1-2897457-8
How many figures are provided for the team when the position drafted is center?
CREATE TABLE "round_eight" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT COUNT("nhl_team") FROM "round_eight" WHERE "position"='Center';
1-2897457-8
What was the pick number when Paul Krake was selected?
CREATE TABLE "round_eight" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT MIN("pick_num") FROM "round_eight" WHERE "player"='Paul Krake';
1-2897457-8
What pick number did the New York Rangers have?
CREATE TABLE "round_eight" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "pick_num" FROM "round_eight" WHERE "nhl_team"='New York Rangers';
1-2897457-8
What pick number was the Boston Bruins selection for defence?
CREATE TABLE "round_eight" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "pick_num" FROM "round_eight" WHERE "position"='Defence' AND "nhl_team"='Boston Bruins';
1-2897457-8
Which player is pick 64?
CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "player" FROM "round_four" WHERE "pick_num"=64;
1-2897457-4
Which player is the centre for the Detroit Red Wings?
CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "player" FROM "round_four" WHERE "position"='Centre' AND "nhl_team"='Detroit Red Wings';
1-2897457-4
How many positions drafted for the Minnesota North Stars?
CREATE TABLE "round_four" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT COUNT("position") FROM "round_four" WHERE "nhl_team"='Minnesota North Stars';
1-2897457-4
What position did Roseau High School (USHS-MN) play?
CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "position" FROM "round_seven" WHERE "college_junior_club_team"='Roseau High School (USHS-MN)';
1-2897457-7
What are Scott Zygulski's pick numbers?
CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "pick_num" FROM "round_seven" WHERE "player"='Scott Zygulski';
1-2897457-7
Which country is pick# 136 from?
CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT "nationality" FROM "round_seven" WHERE "pick_num"=136;
1-2897457-7
How many nationalities does Alex Nikolic come from?
CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT COUNT("nationality") FROM "round_seven" WHERE "player"='Alex Nikolic';
1-2897457-7
How many NHL teams have a pick number of 128?
CREATE TABLE "round_seven" ( "pick_num" real, "player" text, "position" text, "nationality" text, "nhl_team" text, "college_junior_club_team" text );
SELECT COUNT("nhl_team") FROM "round_seven" WHERE "pick_num"=128;
1-2897457-7
Name the opponents for anabel medina garrigues
CREATE TABLE "doubles_7_3_4" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT COUNT("opponents") FROM "doubles_7_3_4" WHERE "partner"='Anabel Medina Garrigues';
1-28979895-4
Name the parter for w/o
CREATE TABLE "doubles_7_3_4" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "partner" FROM "doubles_7_3_4" WHERE "score"='w/o';
1-28979895-4
Which of the networks originate in Xalapa?
CREATE TABLE "regional_broadcast_television_networks" ( "network" text, "flagship" text, "programming" text, "region" text, "origin" text, "owner" text );
SELECT "network" FROM "regional_broadcast_television_networks" WHERE "origin"='Xalapa';
1-2899987-2
What are all the programs on the Soy Guerrero network?
CREATE TABLE "regional_broadcast_television_networks" ( "network" text, "flagship" text, "programming" text, "region" text, "origin" text, "owner" text );
SELECT "programming" FROM "regional_broadcast_television_networks" WHERE "network"='Soy Guerrero';
1-2899987-2
Which owners originate in Mexico City?
CREATE TABLE "regional_broadcast_television_networks" ( "network" text, "flagship" text, "programming" text, "region" text, "origin" text, "owner" text );
SELECT "owner" FROM "regional_broadcast_television_networks" WHERE "origin"='Mexico City';
1-2899987-2
Which network serves the Guerrero region
CREATE TABLE "regional_broadcast_television_networks" ( "network" text, "flagship" text, "programming" text, "region" text, "origin" text, "owner" text );
SELECT "network" FROM "regional_broadcast_television_networks" WHERE "region"='Guerrero';
1-2899987-2
Which regions are owned by estado de tabasco?
CREATE TABLE "regional_broadcast_television_networks" ( "network" text, "flagship" text, "programming" text, "region" text, "origin" text, "owner" text );
SELECT "region" FROM "regional_broadcast_television_networks" WHERE "owner"='Estado de Tabasco';
1-2899987-2
What subdivision names (RU) have a code of by-hr?
CREATE TABLE "current_codes" ( "code" text, "subdivision_name_be_bgn_pcgn" text, "subdivision_name_be_gost" text, "subdivision_name_ru_bgn_pcgn" text, "subdivision_name_ru_gost" text, "subdivision_category" text );
SELECT "subdivision_name_ru_bgn_pcgn" FROM "current_codes" WHERE "code"='BY-HR';
1-290017-1
What cods have a subdivision name (RU) of Grodnenskaya Oblast'?
CREATE TABLE "current_codes" ( "code" text, "subdivision_name_be_bgn_pcgn" text, "subdivision_name_be_gost" text, "subdivision_name_ru_bgn_pcgn" text, "subdivision_name_ru_gost" text, "subdivision_category" text );
SELECT "code" FROM "current_codes" WHERE "subdivision_name_ru_bgn_pcgn"='Grodnenskaya oblast''';
1-290017-1
What are the subdivision names (RU) where the subdivision name (BE) is Hrodzenskaya Voblasts'?
CREATE TABLE "current_codes" ( "code" text, "subdivision_name_be_bgn_pcgn" text, "subdivision_name_be_gost" text, "subdivision_name_ru_bgn_pcgn" text, "subdivision_name_ru_gost" text, "subdivision_category" text );
SELECT "subdivision_name_ru_gost" FROM "current_codes" WHERE "subdivision_name_be_bgn_pcgn"='Hrodzenskaya voblasts''';
1-290017-1
What is the subdivision name (BE) where subdivision name (RU) (BGN) is Grodnenskaya Oblast'?
CREATE TABLE "current_codes" ( "code" text, "subdivision_name_be_bgn_pcgn" text, "subdivision_name_be_gost" text, "subdivision_name_ru_bgn_pcgn" text, "subdivision_name_ru_gost" text, "subdivision_category" text );
SELECT "subdivision_name_be_bgn_pcgn" FROM "current_codes" WHERE "subdivision_name_ru_bgn_pcgn"='Grodnenskaya oblast''';
1-290017-1
Which codes have subdivision names (BE) (BGN) of Homyel'skaya Voblasts'?
CREATE TABLE "current_codes" ( "code" text, "subdivision_name_be_bgn_pcgn" text, "subdivision_name_be_gost" text, "subdivision_name_ru_bgn_pcgn" text, "subdivision_name_ru_gost" text, "subdivision_category" text );
SELECT "code" FROM "current_codes" WHERE "subdivision_name_be_bgn_pcgn"='Homyel''skaya voblasts''';
1-290017-1
Name the into service for dh1
CREATE TABLE "history" ( "number" text, "serial_number" real, "into_service" text, "withdrawn" text, "scrapped" text );
SELECT "into_service" FROM "history" WHERE "number"='DH1';
1-29002641-1
Name the withdrawn for example and serial number 579
CREATE TABLE "history" ( "number" text, "serial_number" real, "into_service" text, "withdrawn" text, "scrapped" text );
SELECT "withdrawn" FROM "history" WHERE "into_service"='Example' AND "serial_number"=579;
1-29002641-1
Name the into service for dh2
CREATE TABLE "history" ( "number" text, "serial_number" real, "into_service" text, "withdrawn" text, "scrapped" text );
SELECT "into_service" FROM "history" WHERE "number"='DH2';
1-29002641-1
Name the most serial number for feb 1994
CREATE TABLE "history" ( "number" text, "serial_number" real, "into_service" text, "withdrawn" text, "scrapped" text );
SELECT MAX("serial_number") FROM "history" WHERE "scrapped"='Feb 1994';
1-29002641-1
Name the number for 2004 scapped
CREATE TABLE "history" ( "number" text, "serial_number" real, "into_service" text, "withdrawn" text, "scrapped" text );
SELECT "number" FROM "history" WHERE "scrapped"='2004';
1-29002641-1
Name the into service for dh1
CREATE TABLE "history" ( "number" text, "serial_number" real, "into_service" text, "withdrawn" text, "scrapped" text );
SELECT "into_service" FROM "history" WHERE "number"='DH1';
1-29002641-1
How many month names are there for the tenth numbered month?
CREATE TABLE "the_year" ( "month_sequence" real, "numbered_month" text, "month_name" text, "regular_year" text, "defective_year" real, "excessive_year" real );
SELECT COUNT("month_name") FROM "the_year" WHERE "numbered_month"='Tenth';
1-28985631-1
What is the defective year for the eighth numbered month?
CREATE TABLE "the_year" ( "month_sequence" real, "numbered_month" text, "month_name" text, "regular_year" text, "defective_year" real, "excessive_year" real );
SELECT "defective_year" FROM "the_year" WHERE "numbered_month"='Eighth';
1-28985631-1
What is the month sequence for the month name of av?
CREATE TABLE "the_year" ( "month_sequence" real, "numbered_month" text, "month_name" text, "regular_year" text, "defective_year" real, "excessive_year" real );
SELECT MIN("month_sequence") FROM "the_year" WHERE "month_name"='Av';
1-28985631-1
What is the defective year for the regular year of 29 days and month sequence of 2?
CREATE TABLE "the_year" ( "month_sequence" real, "numbered_month" text, "month_name" text, "regular_year" text, "defective_year" real, "excessive_year" real );
SELECT MAX("defective_year") FROM "the_year" WHERE "regular_year"='29 days' AND "month_sequence"=2;
1-28985631-1
When 4.5 is the rating (18-49) what is the air date?
CREATE TABLE "u_s_nielsen_ratings" ( "episode" real, "first_air_date" text, "rating_18_49" text, "share_18_49" real, "viewers_millions" text, "rank_timeslot" text );
SELECT "first_air_date" FROM "u_s_nielsen_ratings" WHERE "rating_18_49"='4.5';
1-28980706-4
When 13 is the share (18-49) what is the rank (timeslot)?
CREATE TABLE "u_s_nielsen_ratings" ( "episode" real, "first_air_date" text, "rating_18_49" text, "share_18_49" real, "viewers_millions" text, "rank_timeslot" text );
SELECT "rank_timeslot" FROM "u_s_nielsen_ratings" WHERE "share_18_49"=13;
1-28980706-4
When 11 is the episode what is the air date?
CREATE TABLE "u_s_nielsen_ratings" ( "episode" real, "first_air_date" text, "rating_18_49" text, "share_18_49" real, "viewers_millions" text, "rank_timeslot" text );
SELECT "first_air_date" FROM "u_s_nielsen_ratings" WHERE "episode"=11;
1-28980706-4
When there are 10.02 million viewers what is the rating (18-49)?
CREATE TABLE "u_s_nielsen_ratings" ( "episode" real, "first_air_date" text, "rating_18_49" text, "share_18_49" real, "viewers_millions" text, "rank_timeslot" text );
SELECT "rating_18_49" FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='10.02';
1-28980706-4
When there are 9.28 million viewers what is the share (18-49)?
CREATE TABLE "u_s_nielsen_ratings" ( "episode" real, "first_air_date" text, "rating_18_49" text, "share_18_49" real, "viewers_millions" text, "rank_timeslot" text );
SELECT "share_18_49" FROM "u_s_nielsen_ratings" WHERE "viewers_millions"='9.28';
1-28980706-4
When 4 is the episode what is the air date?
CREATE TABLE "u_s_nielsen_ratings" ( "episode" real, "first_air_date" text, "rating_18_49" text, "share_18_49" real, "viewers_millions" text, "rank_timeslot" text );
SELECT "first_air_date" FROM "u_s_nielsen_ratings" WHERE "episode"=4;
1-28980706-4
How many different results were there for the scores 6–7 (2–7) , 6–2, 7–6 (7–3)?
CREATE TABLE "singles_21_10_titles_11_runners_up" ( "result" text, "no" real, "date" text, "category" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT COUNT("result") FROM "singles_21_10_titles_11_runners_up" WHERE "score"='6–7 (2–7) , 6–2, 7–6 (7–3)';
1-29026564-9
Who was the writer for episode 3?
CREATE TABLE "episode_information" ( "episode" real, "title" text, "writer" text, "director" text, "original_airdate" text, "ratings_kanto" text );
SELECT "writer" FROM "episode_information" WHERE "episode"=3;
1-29039942-1
What was the original airdate for the episode written by daisuke habara and directed by akimitsu sasaki
CREATE TABLE "episode_information" ( "episode" real, "title" text, "writer" text, "director" text, "original_airdate" text, "ratings_kanto" text );
SELECT "original_airdate" FROM "episode_information" WHERE "writer"='Daisuke Habara' AND "director"='Akimitsu Sasaki';
1-29039942-1
What episode did tomoyuki furumaya
CREATE TABLE "episode_information" ( "episode" real, "title" text, "writer" text, "director" text, "original_airdate" text, "ratings_kanto" text );
SELECT "title" FROM "episode_information" WHERE "director"='Tomoyuki Furumaya';
1-29039942-1
What is the earliest round where collingswood lost by 36 points?
CREATE TABLE "regular_home_and_away_season" ( "round" real, "date" text, "opponent" text, "home_away" text, "score_collingwoods_score_is_in_bold" text, "result_includes_margin" text, "venue" text, "position_on_ladder" text );
SELECT MIN("round") FROM "regular_home_and_away_season" WHERE "result_includes_margin"='Lost by 36 points';
1-29033869-3
What was the score on saturday, 26 june 7:10pm?
CREATE TABLE "regular_home_and_away_season" ( "round" real, "date" text, "opponent" text, "home_away" text, "score_collingwoods_score_is_in_bold" text, "result_includes_margin" text, "venue" text, "position_on_ladder" text );
SELECT "score_collingwoods_score_is_in_bold" FROM "regular_home_and_away_season" WHERE "date"='Saturday, 26 June 7:10pm';
1-29033869-3
What is the round number of the round against melbourne on saturday, 4 april 2:10pm?
CREATE TABLE "regular_home_and_away_season" ( "round" real, "date" text, "opponent" text, "home_away" text, "score_collingwoods_score_is_in_bold" text, "result_includes_margin" text, "venue" text, "position_on_ladder" text );
SELECT MIN("round") FROM "regular_home_and_away_season" WHERE "opponent"='Melbourne' AND "date"='Saturday, 4 April 2:10pm';
1-29033869-3
Which venue did collingsworth play essendon in when they had the 3rd position on the ladder?
CREATE TABLE "regular_home_and_away_season" ( "round" real, "date" text, "opponent" text, "home_away" text, "score_collingwoods_score_is_in_bold" text, "result_includes_margin" text, "venue" text, "position_on_ladder" text );
SELECT "venue" FROM "regular_home_and_away_season" WHERE "opponent"='Essendon' AND "position_on_ladder"='3rd';
1-29033869-3
Was the round where they were in 6th at home or away?
CREATE TABLE "regular_home_and_away_season" ( "round" real, "date" text, "opponent" text, "home_away" text, "score_collingwoods_score_is_in_bold" text, "result_includes_margin" text, "venue" text, "position_on_ladder" text );
SELECT "home_away" FROM "regular_home_and_away_season" WHERE "position_on_ladder"='6th';
1-29033869-3
What was the previous school for the forward with a height of ft5in (m)?
CREATE TABLE "roster" ( "name" text, "num" real, "position" text, "height" text, "weight_lb" real, "year" text, "hometown" text, "previous_school" text );
SELECT "previous_school" FROM "roster" WHERE "height"='ft5in (m)' AND "position"='Forward';
1-29050051-3
What is the lowest listed number for a player?
CREATE TABLE "roster" ( "name" text, "num" real, "position" text, "height" text, "weight_lb" real, "year" text, "hometown" text, "previous_school" text );
SELECT MIN("num") FROM "roster";
1-29050051-3
Who previously attended south kent school / brentwood hs?
CREATE TABLE "roster" ( "name" text, "num" real, "position" text, "height" text, "weight_lb" real, "year" text, "hometown" text, "previous_school" text );
SELECT "name" FROM "roster" WHERE "previous_school"='South Kent School / Brentwood HS';
1-29050051-3
What is the highest number a guard from brophy college prep wore?
CREATE TABLE "roster" ( "name" text, "num" real, "position" text, "height" text, "weight_lb" real, "year" text, "hometown" text, "previous_school" text );
SELECT MAX("num") FROM "roster" WHERE "position"='Guard' AND "previous_school"='Brophy College Prep';
1-29050051-3
How many directed by entries have UK viewership over 6.16 million?
CREATE TABLE "table1_29063233_1" ( "no_overall" real, "no_for_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "uk_viewers_million" text );
SELECT COUNT("directed_by") FROM "table1_29063233_1" WHERE "uk_viewers_million"='6.16';
1-29063233-1
Who directed the episode with a UK viewership of exactly 5.77 million?
CREATE TABLE "table1_29063233_1" ( "no_overall" real, "no_for_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "uk_viewers_million" text );
SELECT "directed_by" FROM "table1_29063233_1" WHERE "uk_viewers_million"='5.77';
1-29063233-1
What was the airdate of the episode with a UK viewership of 6.02 million?
CREATE TABLE "table1_29063233_1" ( "no_overall" real, "no_for_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "uk_viewers_million" text );
SELECT "original_air_date" FROM "table1_29063233_1" WHERE "uk_viewers_million"='6.02';
1-29063233-1
Who directed the episode with UK viewership of 6.09 million?
CREATE TABLE "table1_29063233_1" ( "no_overall" real, "no_for_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "uk_viewers_million" text );
SELECT "directed_by" FROM "table1_29063233_1" WHERE "uk_viewers_million"='6.09';
1-29063233-1
Name the general classification for mauricio soler
CREATE TABLE "leadership_classification" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text );
SELECT "general_classification" FROM "leadership_classification" WHERE "winner"='Mauricio Soler';
1-29077342-19
Name the general classification for steven kruijswijk
CREATE TABLE "leadership_classification" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text );
SELECT "general_classification" FROM "leadership_classification" WHERE "winner"='Steven Kruijswijk';
1-29077342-19
Name the points classification for levi leipheimer
CREATE TABLE "leadership_classification" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text );
SELECT "points_classification" FROM "leadership_classification" WHERE "general_classification"='Levi Leipheimer';
1-29077342-19
Name the mountains classification for rabobank and damiano cunego
CREATE TABLE "leadership_classification" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text );
SELECT "mountains_classification" FROM "leadership_classification" WHERE "team_classification"='Rabobank' AND "general_classification"='Damiano Cunego';
1-29077342-19
Name the team classification for thomas de gendt
CREATE TABLE "leadership_classification" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "sprints_classification" text, "team_classification" text );
SELECT "team_classification" FROM "leadership_classification" WHERE "winner"='Thomas De Gendt';
1-29077342-19
What is listed in built for when the original number is 24d?
CREATE TABLE "class_34_500_ge_type_u26_c" ( "ge_dl_works_no" real, "year_built" text, "built_for" text, "original_no" text, "new_owner" text, "new_no" text );
SELECT "built_for" FROM "class_34_500_ge_type_u26_c" WHERE "original_no"='24D';
1-29071587-1
What is the original air date when the title is "be prepared"?
CREATE TABLE "table1_29102612_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real, "u_s_viewers_millions" text );
SELECT "original_air_date" FROM "table1_29102612_1" WHERE "title"='\"Be Prepared\"';
1-29102612-1
What is the season # when ther are 5.3 million U.S viewers?
CREATE TABLE "table1_29102612_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" real, "u_s_viewers_millions" text );
SELECT MAX("season_num") FROM "table1_29102612_1" WHERE "u_s_viewers_millions"='5.3';
1-29102612-1
What dat did "The changeling" originally air?
CREATE TABLE "table1_29106680_1" ( "no_overall" real, "no_for_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "uk_viewers_million" text );
SELECT "original_air_date" FROM "table1_29106680_1" WHERE "title"='\"The Changeling\"';
1-29106680-1
What date did "the eye of the phoenix" originally air?
CREATE TABLE "table1_29106680_1" ( "no_overall" real, "no_for_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "uk_viewers_million" text );
SELECT "original_air_date" FROM "table1_29106680_1" WHERE "title"='\"The Eye of the Phoenix\"';
1-29106680-1
What episode number of the series is "the coming of arthur (part 1)"?
CREATE TABLE "table1_29106680_1" ( "no_overall" real, "no_for_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "uk_viewers_million" text );
SELECT "no_for_series" FROM "table1_29106680_1" WHERE "title"='\"The Coming of Arthur (Part 1)\"';
1-29106680-1
What are the titles of episodes written by Eric Trueheart?
CREATE TABLE "table1_29087004_3" ( "series_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "united_states_original_airdate" text, "canada_original_airdate" text );
SELECT "title" FROM "table1_29087004_3" WHERE "written_by"='Eric Trueheart';
1-29087004-3
What is the highest numbered episode where the title is "The Ruff Ruff Bunch"?
CREATE TABLE "table1_29087004_3" ( "series_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "united_states_original_airdate" text, "canada_original_airdate" text );
SELECT MAX("series_num") FROM "table1_29087004_3" WHERE "title"='\"The Ruff Ruff Bunch\"';
1-29087004-3
Who were the writers of episode/s first aired in the US on June 9, 2012?
CREATE TABLE "table1_29087004_3" ( "series_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "united_states_original_airdate" text, "canada_original_airdate" text );
SELECT "written_by" FROM "table1_29087004_3" WHERE "united_states_original_airdate"='June 9, 2012';
1-29087004-3
When was the episode titled "The Fraud Princess" first aired in the United States?
CREATE TABLE "table1_29087004_3" ( "series_num" real, "production_code" real, "title" text, "directed_by" text, "written_by" text, "united_states_original_airdate" text, "canada_original_airdate" text );
SELECT "united_states_original_airdate" FROM "table1_29087004_3" WHERE "title"='\"The Fraud Princess\"';
1-29087004-3