question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
How many different popular vote counts were there for the candidate Rick Perry?
CREATE TABLE "table1_20246201_9" ( "candidate" text, "office" text, "home_state" text, "popular_vote" real, "states_first_place" real, "states_second_place" real, "states_third_place" text );
SELECT COUNT("popular_vote") FROM "table1_20246201_9" WHERE "candidate"='Rick Perry';
1-20246201-9
Which office has 1 New Hampshire as a third place state?
CREATE TABLE "table1_20246201_9" ( "candidate" text, "office" text, "home_state" text, "popular_vote" real, "states_first_place" real, "states_second_place" real, "states_third_place" text );
SELECT "office" FROM "table1_20246201_9" WHERE "states_third_place"='1 New Hampshire';
1-20246201-9
How many different popular vote counts are there for Rick Perry?
CREATE TABLE "table1_20246201_9" ( "candidate" text, "office" text, "home_state" text, "popular_vote" real, "states_first_place" real, "states_second_place" real, "states_third_place" text );
SELECT COUNT("popular_vote") FROM "table1_20246201_9" WHERE "candidate"='Rick Perry';
1-20246201-9
What office is Jon Huntsman a candidate for?
CREATE TABLE "table1_20246201_9" ( "candidate" text, "office" text, "home_state" text, "popular_vote" real, "states_first_place" real, "states_second_place" real, "states_third_place" text );
SELECT "office" FROM "table1_20246201_9" WHERE "candidate"='Jon Huntsman';
1-20246201-9
How many states-first place are there for the office of Governor?
CREATE TABLE "table1_20246201_9" ( "candidate" text, "office" text, "home_state" text, "popular_vote" real, "states_first_place" real, "states_second_place" real, "states_third_place" text );
SELECT COUNT("states_first_place") FROM "table1_20246201_9" WHERE "office"='Governor';
1-20246201-9
Name the competition for australia 13, new zealand 40, drawn 3
CREATE TABLE "post_war_1946_1974" ( "date" text, "venue" text, "home_team" text, "score" text, "away_team" text, "competition" text, "winner" text, "head_to_head" text );
SELECT "competition" FROM "post_war_1946_1974" WHERE "head_to_head"='Australia 13, New Zealand 40, Drawn 3';
1-20251343-4
Name the explanation by rank is 10
CREATE TABLE "table1_2026548_1" ( "rank_by_time_in_office" real, "order_in_office" real, "vice_president" text, "length_of_term_in_days" real, "explanation" text );
SELECT "explanation" FROM "table1_2026548_1" WHERE "rank_by_time_in_office"=10;
1-2026548-1
Name the order in office for spiro agnew
CREATE TABLE "table1_2026548_1" ( "rank_by_time_in_office" real, "order_in_office" real, "vice_president" text, "length_of_term_in_days" real, "explanation" text );
SELECT "order_in_office" FROM "table1_2026548_1" WHERE "vice_president"='Spiro Agnew';
1-2026548-1
Name the explanation for alben w. barkley
CREATE TABLE "table1_2026548_1" ( "rank_by_time_in_office" real, "order_in_office" real, "vice_president" text, "length_of_term_in_days" real, "explanation" text );
SELECT "explanation" FROM "table1_2026548_1" WHERE "vice_president"='Alben W. Barkley';
1-2026548-1
What percentage of people voted for Obama in Burlington?
CREATE TABLE "by_county" ( "county" text, "obama_pct" text, "obama_num" real, "mc_cain_pct" text, "mc_cain_num" real, "others_pct" text, "others_num" real );
SELECT "obama_pct" FROM "by_county" WHERE "county"='Burlington';
1-20278716-2
What percentage of voters choise McCain in Burlington?
CREATE TABLE "by_county" ( "county" text, "obama_pct" text, "obama_num" real, "mc_cain_pct" text, "mc_cain_num" real, "others_pct" text, "others_num" real );
SELECT "mc_cain_pct" FROM "by_county" WHERE "county"='Burlington';
1-20278716-2
What percentage of voters voted for a third party in the county that had 802 third party voters?
CREATE TABLE "by_county" ( "county" text, "obama_pct" text, "obama_num" real, "mc_cain_pct" text, "mc_cain_num" real, "others_pct" text, "others_num" real );
SELECT "others_pct" FROM "by_county" WHERE "others_num"=802;
1-20278716-2
What percentage of voters chose McCain in the county where 1.1% of voters voted third party?
CREATE TABLE "by_county" ( "county" text, "obama_pct" text, "obama_num" real, "mc_cain_pct" text, "mc_cain_num" real, "others_pct" text, "others_num" real );
SELECT "mc_cain_pct" FROM "by_county" WHERE "others_pct"='1.1%';
1-20278716-2
What percentage of voters chose McCain in the county where 2.1% of voters voted third party?
CREATE TABLE "by_county" ( "county" text, "obama_pct" text, "obama_num" real, "mc_cain_pct" text, "mc_cain_num" real, "others_pct" text, "others_num" real );
SELECT "mc_cain_pct" FROM "by_county" WHERE "others_pct"='2.1%';
1-20278716-2
What county had 915 third party voters?
CREATE TABLE "by_county" ( "county" text, "obama_pct" text, "obama_num" real, "mc_cain_pct" text, "mc_cain_num" real, "others_pct" text, "others_num" real );
SELECT "county" FROM "by_county" WHERE "others_num"=915;
1-20278716-2
Name the ply (uk, nz, au) for fingering
CREATE TABLE "table1_20297668_1" ( "standard_yarn_weight_system" text, "yarn_type_us" text, "ply_uk_nz_au" text, "m_100g" text, "wraps_per_inch_wpi" text );
SELECT "ply_uk_nz_au" FROM "table1_20297668_1" WHERE "yarn_type_us"='Fingering';
1-20297668-1
Name the wraps per inch for 120-240
CREATE TABLE "table1_20297668_1" ( "standard_yarn_weight_system" text, "yarn_type_us" text, "ply_uk_nz_au" text, "m_100g" text, "wraps_per_inch_wpi" text );
SELECT "wraps_per_inch_wpi" FROM "table1_20297668_1" WHERE "m_100g"='120-240';
1-20297668-1
Name the ply uk, nz, au for wraps per inch 7 wpi
CREATE TABLE "table1_20297668_1" ( "standard_yarn_weight_system" text, "yarn_type_us" text, "ply_uk_nz_au" text, "m_100g" text, "wraps_per_inch_wpi" text );
SELECT "ply_uk_nz_au" FROM "table1_20297668_1" WHERE "wraps_per_inch_wpi"='7 wpi';
1-20297668-1
Name the yarn type for standard yarn weight system for 3 or light
CREATE TABLE "table1_20297668_1" ( "standard_yarn_weight_system" text, "yarn_type_us" text, "ply_uk_nz_au" text, "m_100g" text, "wraps_per_inch_wpi" text );
SELECT "yarn_type_us" FROM "table1_20297668_1" WHERE "standard_yarn_weight_system"='3 or Light';
1-20297668-1
Name the standard yarn weight system for 7 wpi
CREATE TABLE "table1_20297668_1" ( "standard_yarn_weight_system" text, "yarn_type_us" text, "ply_uk_nz_au" text, "m_100g" text, "wraps_per_inch_wpi" text );
SELECT "standard_yarn_weight_system" FROM "table1_20297668_1" WHERE "wraps_per_inch_wpi"='7 wpi';
1-20297668-1
Name the standard yarn weight system for 9 wpi
CREATE TABLE "table1_20297668_1" ( "standard_yarn_weight_system" text, "yarn_type_us" text, "ply_uk_nz_au" text, "m_100g" text, "wraps_per_inch_wpi" text );
SELECT "standard_yarn_weight_system" FROM "table1_20297668_1" WHERE "wraps_per_inch_wpi"='9 wpi';
1-20297668-1
Name the overall nt points for 2nd m 127.5
CREATE TABLE "kuopio" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_nt_points" text, "overall_wc_points_rank" text );
SELECT "overall_nt_points" FROM "kuopio" WHERE "2nd_m"='127.5';
1-20312599-23
when 1st (m) is 218.0, what were all of the over wc points (rank)?
CREATE TABLE "oberstdorf" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text );
SELECT "overall_wc_points_rank" FROM "oberstdorf" WHERE "1st_m"='218.0';
1-20312599-21
when 1st (m) is 212.5 what are the overall wc points (rank)?
CREATE TABLE "oberstdorf" ( "rank" real, "name" text, "nationality" text, "1st_m" text, "2nd_m" text, "points" text, "overall_wc_points_rank" text );
SELECT "overall_wc_points_rank" FROM "oberstdorf" WHERE "1st_m"='212.5';
1-20312599-21
When was the motor gear of the LMS 1946 no. 1901 model fitted?
CREATE TABLE "details" ( "lms_1932_3_no" real, "lms_1946_no" real, "br_no" real, "date_built" text, "date_motor_gear_fitted" text, "withdrawn" text );
SELECT "date_motor_gear_fitted" FROM "details" WHERE "lms_1946_no"=1901;
1-2030453-1
how many matches did wayne mardle play
CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text );
SELECT COUNT("played") FROM "statistics" WHERE "player"='Wayne Mardle';
1-20301877-2
what is the 3-dart average of raymond van barneveld
CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text );
SELECT "3_dart_average" FROM "statistics" WHERE "player"='Raymond van Barneveld';
1-20301877-2
How many different results are there for the season with a 4-3 conference record?
CREATE TABLE "division_championships" ( "season" real, "division" text, "coach" text, "overall_record" text, "conference_record" text, "result" text, "attendance" real );
SELECT COUNT("result") FROM "division_championships" WHERE "conference_record"='4-3';
1-20319085-2
Who coached the team in the season with a 6-1 conference record?
CREATE TABLE "division_championships" ( "season" real, "division" text, "coach" text, "overall_record" text, "conference_record" text, "result" text, "attendance" real );
SELECT "coach" FROM "division_championships" WHERE "conference_record"='6-1';
1-20319085-2
How many different conference records are there for season 2006?
CREATE TABLE "division_championships" ( "season" real, "division" text, "coach" text, "overall_record" text, "conference_record" text, "result" text, "attendance" real );
SELECT COUNT("conference_record") FROM "division_championships" WHERE "season"=2006;
1-20319085-2
How did the season with 7-2 conference record ed?
CREATE TABLE "division_championships" ( "season" real, "division" text, "coach" text, "overall_record" text, "conference_record" text, "result" text, "attendance" real );
SELECT "result" FROM "division_championships" WHERE "conference_record"='7-2';
1-20319085-2
In what season was the conference record 4-3?
CREATE TABLE "division_championships" ( "season" real, "division" text, "coach" text, "overall_record" text, "conference_record" text, "result" text, "attendance" real );
SELECT MIN("season") FROM "division_championships" WHERE "conference_record"='4-3';
1-20319085-2
What is the highest number of third place runners up held by any of the countries competing in the Mr. International competition?.
CREATE TABLE "by_country_tally" ( "rank" real, "country_territory" text, "mister_international" real, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "semifinalists" real, "total" real );
SELECT MAX("3rd_runner_up") FROM "by_country_tally";
1-20325360-2
The country, competing in the Mr. International competition, that holds a rank of 3, has how many 2nd runners up?
CREATE TABLE "by_country_tally" ( "rank" real, "country_territory" text, "mister_international" real, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "semifinalists" real, "total" real );
SELECT COUNT("2nd_runner_up") FROM "by_country_tally" WHERE "rank"=3;
1-20325360-2
For the country that holds a rank of 2, in the Mr. International Competition, what is the total number of competitors listed as 2nd runner ups?
CREATE TABLE "by_country_tally" ( "rank" real, "country_territory" text, "mister_international" real, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "semifinalists" real, "total" real );
SELECT COUNT("2nd_runner_up") FROM "by_country_tally" WHERE "rank"=2;
1-20325360-2
How many competitors in total, for the Mr. International competition, does Brazil have?
CREATE TABLE "by_country_tally" ( "rank" real, "country_territory" text, "mister_international" real, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "semifinalists" real, "total" real );
SELECT MAX("total") FROM "by_country_tally" WHERE "country_territory"='Brazil';
1-20325360-2
How many games did the player with 3-dart average of 66.86 play?
CREATE TABLE "women_s" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text );
SELECT "played" FROM "women_s" WHERE "3_dart_average"='66.86';
1-20351295-2
What's the 100+ score of the player with 6 won legs?
CREATE TABLE "women_s" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text );
SELECT MAX("100") FROM "women_s" WHERE "legs_won"=6;
1-20351295-2
What player has a 3-dart average of 75.76?
CREATE TABLE "women_s" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text );
SELECT "player" FROM "women_s" WHERE "3_dart_average"='75.76';
1-20351295-2
What's Trina Gulliver's high checkout?
CREATE TABLE "women_s" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text );
SELECT "high_checkout" FROM "women_s" WHERE "player"='Trina Gulliver';
1-20351295-2
How many legs has the player with high checkout of 80 won?
CREATE TABLE "women_s" ( "player" text, "played" real, "sets_won" real, "sets_lost" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text );
SELECT "legs_won" FROM "women_s" WHERE "high_checkout"=80;
1-20351295-2
Name the sanskrit word and meaning for aquarius
CREATE TABLE "kollam_era_calendar" ( "malayalam_name" text, "transliteration" text, "concurrent_gregorian_months" text, "sanskrit_word_and_meaning" text, "zodiac_sign" text );
SELECT "sanskrit_word_and_meaning" FROM "kollam_era_calendar" WHERE "zodiac_sign"='Aquarius';
1-20354-7
Name the zodiac for കന്നി
CREATE TABLE "kollam_era_calendar" ( "malayalam_name" text, "transliteration" text, "concurrent_gregorian_months" text, "sanskrit_word_and_meaning" text, "zodiac_sign" text );
SELECT "zodiac_sign" FROM "kollam_era_calendar" WHERE "malayalam_name"='കന്നി';
1-20354-7
Name the malayalam name for leo
CREATE TABLE "kollam_era_calendar" ( "malayalam_name" text, "transliteration" text, "concurrent_gregorian_months" text, "sanskrit_word_and_meaning" text, "zodiac_sign" text );
SELECT "malayalam_name" FROM "kollam_era_calendar" WHERE "zodiac_sign"='Leo';
1-20354-7
Name the transliteration for ചിങ്ങം
CREATE TABLE "kollam_era_calendar" ( "malayalam_name" text, "transliteration" text, "concurrent_gregorian_months" text, "sanskrit_word_and_meaning" text, "zodiac_sign" text );
SELECT "transliteration" FROM "kollam_era_calendar" WHERE "malayalam_name"='ചിങ്ങം';
1-20354-7
How many votes did McCain get in the county where Obama got 50.7% of the votes?
CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "total" real );
SELECT MAX("mc_cainnum") FROM "by_county" WHERE "obamapct"='50.7%';
1-20350118-1
Where did McCain get 20226 votes?
CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "total" real );
SELECT "county" FROM "by_county" WHERE "mc_cainnum"=20226;
1-20350118-1
How many people voted in Cabarrus county?
CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "total" real );
SELECT MIN("total") FROM "by_county" WHERE "county"='Cabarrus';
1-20350118-1
How many different results were there for the number of votes fro Obama in the county where he got 27.8% of the votes?
CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "total" real );
SELECT COUNT("obamanum") FROM "by_county" WHERE "obamapct"='27.8%';
1-20350118-1
How many episodes directed by ben jones and written by paul dini?
CREATE TABLE "table1_20360535_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "television_order" text );
SELECT COUNT("no") FROM "table1_20360535_3" WHERE "directed_by"='Ben Jones' AND "written_by"='Paul Dini';
1-20360535-3
What is the title of S02E01?
CREATE TABLE "table1_20360535_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "television_order" text );
SELECT "title" FROM "table1_20360535_3" WHERE "television_order"='S02E01';
1-20360535-3
What TV order is written by gail simone?
CREATE TABLE "table1_20360535_3" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real, "television_order" text );
SELECT "television_order" FROM "table1_20360535_3" WHERE "written_by"='Gail Simone';
1-20360535-3
who won mens doubles when zhou mi won womens singles
CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );
SELECT "mens_doubles" FROM "past_winners" WHERE "womens_singles"='Zhou Mi';
1-20361783-1
who won mixed doubles when zhou mi won womens singles
CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );
SELECT "mixed_doubles" FROM "past_winners" WHERE "womens_singles"='Zhou Mi';
1-20361783-1
state the earliest year li xuerui won womens singles
CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );
SELECT MIN("year") FROM "past_winners" WHERE "womens_singles"='Li Xuerui';
1-20361783-1
state the earliest year li xuerui won womens singles
CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );
SELECT MIN("year") FROM "past_winners" WHERE "womens_singles"='Li Xuerui';
1-20361783-1
who won womens doubles in 2010
CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );
SELECT "womens_doubles" FROM "past_winners" WHERE "year"=2010;
1-20361783-1
who won mixed doubles when wang yihan won womens singles
CREATE TABLE "past_winners" ( "year" real, "mens_singles" text, "womens_singles" text, "mens_doubles" text, "womens_doubles" text, "mixed_doubles" text );
SELECT "mixed_doubles" FROM "past_winners" WHERE "womens_singles"='Wang Yihan';
1-20361783-1
How many county councils for the communist party of norway
CREATE TABLE "non_parliamentary_parties" ( "english_party_name" text, "norwegian_party_name" text, "associated_ideology" text, "current_leader" text, "international_affiliation" text, "2013_parliamentary_election" text, "county_councils_2011" real );
SELECT MAX("county_councils_2011") FROM "non_parliamentary_parties" WHERE "english_party_name"='Communist Party of Norway';
1-203802-2
What percent of the parliamentary election did the pensioners party receive
CREATE TABLE "non_parliamentary_parties" ( "english_party_name" text, "norwegian_party_name" text, "associated_ideology" text, "current_leader" text, "international_affiliation" text, "2013_parliamentary_election" text, "county_councils_2011" real );
SELECT "2013_parliamentary_election" FROM "non_parliamentary_parties" WHERE "english_party_name"='Pensioners Party';
1-203802-2
How many parties are named the Center Alliance
CREATE TABLE "non_parliamentary_parties" ( "english_party_name" text, "norwegian_party_name" text, "associated_ideology" text, "current_leader" text, "international_affiliation" text, "2013_parliamentary_election" text, "county_councils_2011" real );
SELECT COUNT("2013_parliamentary_election") FROM "non_parliamentary_parties" WHERE "english_party_name"='Center Alliance';
1-203802-2
Name the most withdrawn for 37 lstr no.
CREATE TABLE "list_of_locomotives" ( "ltsr_no" real, "ltsr_name" text, "builder" text, "built" real, "mr_no" real, "lms_1930_no" real, "br_no" real, "withdrawn" real );
SELECT MAX("withdrawn") FROM "list_of_locomotives" WHERE "ltsr_no"=37;
1-20391799-1
how many won 83 points for?
CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text );
SELECT "won" FROM "2008_2009_table" WHERE "points_for"='83';
1-20396710-1
which club is listed when bonus points is bonus points
CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text );
SELECT "club" FROM "2008_2009_table" WHERE "bonus_points"='Bonus Points';
1-20396710-1
when the points for is 139 is points difference?
CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text );
SELECT COUNT("points_difference") FROM "2008_2009_table" WHERE "points_for"='139';
1-20396710-1
when points against is points again, which are the drawn?
CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text );
SELECT "drawn" FROM "2008_2009_table" WHERE "points_against"='Points against';
1-20396710-1
when points for is 39 what is the total number of drawn
CREATE TABLE "2008_2009_table" ( "club" text, "played" text, "won" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "points_difference" text, "bonus_points" text, "points" text );
SELECT "drawn" FROM "2008_2009_table" WHERE "points_for"='39';
1-20396710-1
what is the mccain % where obama got 19.3%
CREATE TABLE "by_county" ( "county" text, "mc_cain_num" real, "mc_cain_pct" text, "obama_num" real, "obama_pct" text );
SELECT "mc_cain_pct" FROM "by_county" WHERE "obama_pct"='19.3%';
1-20424014-1
what is the highest mccain # where obama got 33.7%
CREATE TABLE "by_county" ( "county" text, "mc_cain_num" real, "mc_cain_pct" text, "obama_num" real, "obama_pct" text );
SELECT MAX("mc_cain_num") FROM "by_county" WHERE "obama_pct"='33.7%';
1-20424014-1
where did obama get 39.8%
CREATE TABLE "by_county" ( "county" text, "mc_cain_num" real, "mc_cain_pct" text, "obama_num" real, "obama_pct" text );
SELECT "county" FROM "by_county" WHERE "obama_pct"='39.8%';
1-20424014-1
what is the obama # in carson city
CREATE TABLE "by_county" ( "county" text, "mc_cain_num" real, "mc_cain_pct" text, "obama_num" real, "obama_pct" text );
SELECT "obama_num" FROM "by_county" WHERE "county"='Carson City';
1-20424014-1
where did obama get 41.3%
CREATE TABLE "by_county" ( "county" text, "mc_cain_num" real, "mc_cain_pct" text, "obama_num" real, "obama_pct" text );
SELECT "county" FROM "by_county" WHERE "obama_pct"='41.3%';
1-20424014-1
Name the number of season for team bruichladdich
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );
SELECT COUNT("season") FROM "career_summary" WHERE "team"='Team Bruichladdich';
1-20398823-1
Name the least podiums for 49 points
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );
SELECT MIN("podiums") FROM "career_summary" WHERE "points"='49';
1-20398823-1
Name the least f/laps
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );
SELECT MIN("f_laps") FROM "career_summary";
1-20398823-1
Namet he season for wins being 0 and 20 races
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );
SELECT "season" FROM "career_summary" WHERE "wins"=0 AND "races"=20;
1-20398823-1
Name the least podiums for 0 wins and 2005 season for 321 points
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text );
SELECT MIN("podiums") FROM "career_summary" WHERE "wins"=0 AND "season"=2005 AND "points"='321';
1-20398823-1
What is the Spanish title of the film whose title used in nomination was Ogu and Mampato in Rapa Nui?
CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "spanish_title" text, "director" text, "result" text );
SELECT "spanish_title" FROM "submissions" WHERE "film_title_used_in_nomination"='Ogu and Mampato in Rapa Nui';
1-20404716-1
Who was the director of the film that was not nominated and had the Spanish title of play?
CREATE TABLE "submissions" ( "year_ceremony" text, "film_title_used_in_nomination" text, "spanish_title" text, "director" text, "result" text );
SELECT "director" FROM "submissions" WHERE "result"='Not Nominated' AND "spanish_title"='Play';
1-20404716-1
How many couples have an average of 25.3?
CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text );
SELECT COUNT("couple") FROM "average_score_chart" WHERE "average"='25.3';
1-20424140-3
How many different numbers of total dances are there for the couple ranked at number 6?
CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text );
SELECT COUNT("number_of_dances") FROM "average_score_chart" WHERE "place"=6;
1-20424140-3
What couple has an average of 17.2?
CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text );
SELECT "couple" FROM "average_score_chart" WHERE "average"='17.2';
1-20424140-3
What's the minimal number of dances a couple has danced?
CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text );
SELECT MIN("number_of_dances") FROM "average_score_chart";
1-20424140-3
What's the highest number a couple has ranked at?
CREATE TABLE "average_score_chart" ( "rank_by_average" real, "place" real, "couple" text, "total_points" real, "number_of_dances" real, "average" text );
SELECT MAX("place") FROM "average_score_chart";
1-20424140-3
How many crops were damaged when the public property damage was 1,03,049.60?
CREATE TABLE "total_affected_and_damaged_in_bihar_due_" ( "year" real, "district" real, "blocks" real, "panchayat" real, "village" real, "human_in_lakh" text, "animal_in_lakh" text, "total_area_in_lakh_ha" text, "cropped_area_in_lakh_ha" text, "crop_damaged_in_lakh_inr" text, "house_affected" real, "public_property_damaged_in_lakh_inr" text );
SELECT "crop_damaged_in_lakh_inr" FROM "total_affected_and_damaged_in_bihar_due_" WHERE "public_property_damaged_in_lakh_inr"='1,03,049.60';
1-20403667-2
What is the panchayat when the public property damage was 1,03,049.60
CREATE TABLE "total_affected_and_damaged_in_bihar_due_" ( "year" real, "district" real, "blocks" real, "panchayat" real, "village" real, "human_in_lakh" text, "animal_in_lakh" text, "total_area_in_lakh_ha" text, "cropped_area_in_lakh_ha" text, "crop_damaged_in_lakh_inr" text, "house_affected" real, "public_property_damaged_in_lakh_inr" text );
SELECT MAX("panchayat") FROM "total_affected_and_damaged_in_bihar_due_" WHERE "public_property_damaged_in_lakh_inr"='1,03,049.60';
1-20403667-2
What is the largest village that had 103279 houses affected?
CREATE TABLE "total_affected_and_damaged_in_bihar_due_" ( "year" real, "district" real, "blocks" real, "panchayat" real, "village" real, "human_in_lakh" text, "animal_in_lakh" text, "total_area_in_lakh_ha" text, "cropped_area_in_lakh_ha" text, "crop_damaged_in_lakh_inr" text, "house_affected" real, "public_property_damaged_in_lakh_inr" text );
SELECT MAX("village") FROM "total_affected_and_damaged_in_bihar_due_" WHERE "house_affected"=103279;
1-20403667-2
What is the smallest district that had 33.25 in animals
CREATE TABLE "total_affected_and_damaged_in_bihar_due_" ( "year" real, "district" real, "blocks" real, "panchayat" real, "village" real, "human_in_lakh" text, "animal_in_lakh" text, "total_area_in_lakh_ha" text, "cropped_area_in_lakh_ha" text, "crop_damaged_in_lakh_inr" text, "house_affected" real, "public_property_damaged_in_lakh_inr" text );
SELECT MIN("district") FROM "total_affected_and_damaged_in_bihar_due_" WHERE "animal_in_lakh"='33.25';
1-20403667-2
How many districts had crib damage of 1,164.50?
CREATE TABLE "total_affected_and_damaged_in_bihar_due_" ( "year" real, "district" real, "blocks" real, "panchayat" real, "village" real, "human_in_lakh" text, "animal_in_lakh" text, "total_area_in_lakh_ha" text, "cropped_area_in_lakh_ha" text, "crop_damaged_in_lakh_inr" text, "house_affected" real, "public_property_damaged_in_lakh_inr" text );
SELECT COUNT("district") FROM "total_affected_and_damaged_in_bihar_due_" WHERE "crop_damaged_in_lakh_inr"='1,164.50';
1-20403667-2
Where did Obama get 37.1%?
CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "others" real, "total" real );
SELECT "county" FROM "by_county" WHERE "obamapct"='37.1%';
1-20453681-1
What's the county where McCain got 60.6% and Obama got 37.3%?
CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "others" real, "total" real );
SELECT "county" FROM "by_county" WHERE "mc_cainpct"='60.6%' AND "obamapct"='37.3%';
1-20453681-1
What's the number of McCain votes in the county where Obama got 35.7% and others got 1.9% of the votes?
CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "others" real, "total" real );
SELECT MIN("mc_cainnum") FROM "by_county" WHERE "obamapct"='35.7%' AND "otherspct"='1.9%';
1-20453681-1
How many votes did Obama get in Geauga?
CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "others" real, "total" real );
SELECT "obamanum" FROM "by_county" WHERE "county"='Geauga';
1-20453681-1
How many people voted for others in the county where McCain got 65.5% of the votes?
CREATE TABLE "by_county" ( "county" text, "obamapct" text, "obamanum" real, "mc_cainpct" text, "mc_cainnum" real, "otherspct" text, "others" real, "total" real );
SELECT "others" FROM "by_county" WHERE "mc_cainpct"='65.5%';
1-20453681-1
How many players had 6 180s?
CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text );
SELECT COUNT("player") FROM "statistics" WHERE "180s"=6;
1-20463779-22
How many 140+ did Gary Anderson have?
CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text );
SELECT "140" FROM "statistics" WHERE "player"='Gary Anderson';
1-20463779-22
What is Phil Taylor's 3-dart average?
CREATE TABLE "statistics" ( "player" text, "played" real, "legs_won" real, "legs_lost" real, "100" real, "140" real, "180s" real, "high_checkout" real, "3_dart_average" text );
SELECT "3_dart_average" FROM "statistics" WHERE "player"='Phil Taylor';
1-20463779-22
Who is the guest 3 in the show where guest 4 is Jill Douglas?
CREATE TABLE "season_2006_07" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text );
SELECT "guest_3" FROM "season_2006_07" WHERE "guest_4"='Jill Douglas';
1-20466963-4
Who is the guest 2 in the episode where guest 4 is Iyare Igiehon and guest 3 is John Oliver?
CREATE TABLE "season_2006_07" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text );
SELECT "guest_2" FROM "season_2006_07" WHERE "guest_4"='Iyare Igiehon' AND "guest_3"='John Oliver';
1-20466963-4
Who is the guest 1 in the episode where guest 4 is Jill Douglas?
CREATE TABLE "season_2006_07" ( "date" text, "presenter" text, "guest_1" text, "guest_2" text, "guest_3" text, "guest_4" text );
SELECT "guest_1" FROM "season_2006_07" WHERE "guest_4"='Jill Douglas';
1-20466963-4