question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Name the monarch for 13 october 1131
CREATE TABLE "capetian_associate_kings" ( "co_king" text, "relationship_to_monarch" text, "crowned" text, "co_kingship_ceased" text, "reason" text, "monarch" text );
SELECT "monarch" FROM "capetian_associate_kings" WHERE "co_kingship_ceased"='13 October 1131';
1-24046134-1
What was the playoff result where the league did not qualify in the Open Cup in 1998?
CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text );
SELECT "playoffs" FROM "year_by_year" WHERE "open_cup"='Did not qualify' AND "year"=1998;
1-2402864-1
What was the earliest year where USL PDL played in 3rd, Southeast season?
CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text );
SELECT MIN("year") FROM "year_by_year" WHERE "regular_season"='3rd, Southeast' AND "league"='USL PDL';
1-2402864-1
What was the Open Cup results for the year 2003?
CREATE TABLE "year_by_year" ( "year" real, "division" real, "league" text, "regular_season" text, "playoffs" text, "open_cup" text );
SELECT "open_cup" FROM "year_by_year" WHERE "year"=2003;
1-2402864-1
What is the highest total for evm votes
CREATE TABLE "results_of_the_2009_indian_general_elect" ( "sl_no" real, "name" text, "party_name" text, "postal_ballot" real, "10_thiruvottiyur" real, "11_dr_radhakrishnan_nagar" real, "12_perambur_sc" real, "13_kolathur_sc" real, "16_thiru_vi_ka_nagar" real, "17_royapuram" real, "total_evm_votes"...
SELECT MAX("total_evm_votes") FROM "results_of_the_2009_indian_general_elect";
1-24051013-3
What is DMK's total number of votes?
CREATE TABLE "results_of_the_2009_indian_general_elect" ( "sl_no" real, "name" text, "party_name" text, "postal_ballot" real, "10_thiruvottiyur" real, "11_dr_radhakrishnan_nagar" real, "12_perambur_sc" real, "13_kolathur_sc" real, "16_thiru_vi_ka_nagar" real, "17_royapuram" real, "total_evm_votes"...
SELECT "total_votes" FROM "results_of_the_2009_indian_general_elect" WHERE "party_name"='DMK';
1-24051013-3
In what episode did heat 1 take place?
CREATE TABLE "table1_24051050_1" ( "episode" real, "contest" text, "original_airdate" text, "challengers_female" text, "challengers_male" text, "events" text );
SELECT "episode" FROM "table1_24051050_1" WHERE "contest"='Heat 1';
1-24051050-1
What events took place in episode 12?
CREATE TABLE "table1_24051050_1" ( "episode" real, "contest" text, "original_airdate" text, "challengers_female" text, "challengers_male" text, "events" text );
SELECT "events" FROM "table1_24051050_1" WHERE "episode"=12;
1-24051050-1
Which female challengers featured in episode 28?
CREATE TABLE "table1_24051050_1" ( "episode" real, "contest" text, "original_airdate" text, "challengers_female" text, "challengers_male" text, "events" text );
SELECT "challengers_female" FROM "table1_24051050_1" WHERE "episode"=28;
1-24051050-1
How many players came from Los Angeles?
CREATE TABLE "2009_10_roster" ( "name" text, "number" real, "pos" text, "height" text, "weight" real, "year" text, "hometown" text, "high_school" text );
SELECT COUNT("name") FROM "2009_10_roster" WHERE "hometown"='Los Angeles';
1-24055352-1
What is the height when the player is from Los Angeles?
CREATE TABLE "2009_10_roster" ( "name" text, "number" real, "pos" text, "height" text, "weight" real, "year" text, "hometown" text, "high_school" text );
SELECT "height" FROM "2009_10_roster" WHERE "hometown"='Los Angeles';
1-24055352-1
What is Kammeon Holsey's height?
CREATE TABLE "2009_10_roster" ( "name" text, "number" real, "pos" text, "height" text, "weight" real, "year" text, "hometown" text, "high_school" text );
SELECT "height" FROM "2009_10_roster" WHERE "name"='Kammeon Holsey';
1-24055352-1
What is the high school of the player number 5?
CREATE TABLE "2009_10_roster" ( "name" text, "number" real, "pos" text, "height" text, "weight" real, "year" text, "hometown" text, "high_school" text );
SELECT "high_school" FROM "2009_10_roster" WHERE "number"=5;
1-24055352-1
What is the 12::37.35 when hengelo , netherlands is hengelo, netherlands?
CREATE TABLE "records" ( "world_record" text, "kenenisa_bekele_eth" text, "12_37_35" text, "hengelo_netherlands" text, "31_may_2004" text );
SELECT "12_37_35" FROM "records" WHERE "hengelo_netherlands"='Hengelo, Netherlands';
1-24062944-2
what is hengelo , netherlands when 31 may 2004 is 8 june 2006?
CREATE TABLE "records" ( "world_record" text, "kenenisa_bekele_eth" text, "12_37_35" text, "hengelo_netherlands" text, "31_may_2004" text );
SELECT "hengelo_netherlands" FROM "records" WHERE "31_may_2004"='8 June 2006';
1-24062944-2
what is 31 may 2004 when 12:37.35 is 13:19.43?
CREATE TABLE "records" ( "world_record" text, "kenenisa_bekele_eth" text, "12_37_35" text, "hengelo_netherlands" text, "31_may_2004" text );
SELECT "31_may_2004" FROM "records" WHERE "12_37_35"='13:19.43';
1-24062944-2
How many times is kenenisa bekele ( eth ) is marílson gomes dos santos ( bra )?
CREATE TABLE "records" ( "world_record" text, "kenenisa_bekele_eth" text, "12_37_35" text, "hengelo_netherlands" text, "31_may_2004" text );
SELECT COUNT("world_record") FROM "records" WHERE "kenenisa_bekele_eth"='Marílson Gomes dos Santos ( BRA )';
1-24062944-2
What is every entry for against with opponent Andreas Vinciguerra?
CREATE TABLE "singles_performances_4_2" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "win_lose" text, "result" text );
SELECT "against" FROM "singles_performances_4_2" WHERE "opponent"='Andreas Vinciguerra';
1-24074130-5
What is every entry for against with opponent Andreas Vinciguerra?
CREATE TABLE "singles_performances_4_2" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "win_lose" text, "result" text );
SELECT "against" FROM "singles_performances_4_2" WHERE "opponent"='Andreas Vinciguerra';
1-24074130-5
What is every surface against Sweden?
CREATE TABLE "singles_performances_4_2" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "win_lose" text, "result" text );
SELECT "surface" FROM "singles_performances_4_2" WHERE "against"='Sweden';
1-24074130-5
What is every entry in the win/lose against Sweden?
CREATE TABLE "singles_performances_4_2" ( "edition" text, "round" text, "date" text, "against" text, "surface" text, "opponent" text, "win_lose" text, "result" text );
SELECT "win_lose" FROM "singles_performances_4_2" WHERE "against"='Sweden';
1-24074130-5
How many production codes have an original airdate of November 16, 1990?
CREATE TABLE "table1_2409041_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT COUNT("production_code") FROM "table1_2409041_3" WHERE "original_air_date"='November 16, 1990';
1-2409041-3
What series number had an original airdate of March 1, 1991?
CREATE TABLE "table1_2409041_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT MIN("no_in_series") FROM "table1_2409041_3" WHERE "original_air_date"='March 1, 1991';
1-2409041-3
Who directed "Torn Between Two Lovers"?
CREATE TABLE "table1_2409041_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "directed_by" FROM "table1_2409041_3" WHERE "title"='\"Torn Between Two Lovers\"';
1-2409041-3
How many production codes were in series 39?
CREATE TABLE "table1_2409041_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT COUNT("production_code") FROM "table1_2409041_3" WHERE "no_in_series"=39;
1-2409041-3
Who wrote season 23?
CREATE TABLE "table1_2409041_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "written_by" FROM "table1_2409041_3" WHERE "no_in_season"=23;
1-2409041-3
What is the production code for episode number 86 in the series?
CREATE TABLE "table1_2409041_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT MIN("production_code") FROM "table1_2409041_5" WHERE "no_in_series"=86;
1-2409041-5
What episode number in the series is "dance to the music"?
CREATE TABLE "table1_2409041_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT MIN("no_in_series") FROM "table1_2409041_5" WHERE "title"='\"Dance to the Music\"';
1-2409041-5
What is the production code for the episode that originally aired on January 8, 1993?
CREATE TABLE "table1_2409041_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT MAX("production_code") FROM "table1_2409041_5" WHERE "original_air_date"='January 8, 1993';
1-2409041-5
Who wrote the episode that originally aired on January 15, 1993?
CREATE TABLE "table1_2409041_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "written_by" FROM "table1_2409041_5" WHERE "original_air_date"='January 15, 1993';
1-2409041-5
What is the name of episode number 77 in the series?
CREATE TABLE "table1_2409041_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "title" FROM "table1_2409041_5" WHERE "no_in_series"=77;
1-2409041-5
When 17 is the number in series who is the director?
CREATE TABLE "table1_2409041_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "directed_by" FROM "table1_2409041_2" WHERE "no_in_series"=17;
1-2409041-2
When 21 is the number in series what is the air date?
CREATE TABLE "table1_2409041_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "original_air_date" FROM "table1_2409041_2" WHERE "no_in_series"=21;
1-2409041-2
When 446004 is the production code who are the writers?
CREATE TABLE "table1_2409041_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "written_by" FROM "table1_2409041_2" WHERE "production_code"=446004;
1-2409041-2
When "body damage" is the title how many air dates are there?
CREATE TABLE "table1_2409041_2" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT COUNT("original_air_date") FROM "table1_2409041_2" WHERE "title"='\"Body Damage\"';
1-2409041-2
Who directed "what do you know?"?
CREATE TABLE "table1_2409041_9" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "directed_by" FROM "table1_2409041_9" WHERE "title"='\"What Do You Know?\"';
1-2409041-9
What was the name of the epiode written by Gary M. Goodrich?
CREATE TABLE "table1_2409041_9" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "title" FROM "table1_2409041_9" WHERE "written_by"='Gary M. Goodrich';
1-2409041-9
Who directed episode number 179 in the series?
CREATE TABLE "table1_2409041_9" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "directed_by" FROM "table1_2409041_9" WHERE "no_in_series"=179;
1-2409041-9
How many people directed "odd man in"?
CREATE TABLE "table1_2409041_9" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT COUNT("directed_by") FROM "table1_2409041_9" WHERE "title"='\"Odd Man In\"';
1-2409041-9
What's the voltage of the model with part number TT80503300?
CREATE TABLE "tillamook_0_25_m" ( "model_number" text, "frequency" text, "l1_cache" text, "fsb" text, "mult" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "s_spec_number" text );
SELECT "voltage" FROM "tillamook_0_25_m" WHERE "part_number_s"='TT80503300';
1-24096813-15
What's the frequency of the model with part number TT80503300?
CREATE TABLE "tillamook_0_25_m" ( "model_number" text, "frequency" text, "l1_cache" text, "fsb" text, "mult" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "s_spec_number" text );
SELECT "frequency" FROM "tillamook_0_25_m" WHERE "part_number_s"='TT80503300';
1-24096813-15
What's the part number of the model with TDP of 2.9 (max.4.1~5.4) w?
CREATE TABLE "tillamook_0_25_m" ( "model_number" text, "frequency" text, "l1_cache" text, "fsb" text, "mult" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "s_spec_number" text );
SELECT "part_number_s" FROM "tillamook_0_25_m" WHERE "tdp"='2.9 (Max.4.1~5.4) W';
1-24096813-15
What's the l1 cache of the model with sspec number sl2z3, sl28q (mya0)?
CREATE TABLE "tillamook_0_25_m" ( "model_number" text, "frequency" text, "l1_cache" text, "fsb" text, "mult" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "s_spec_number" text );
SELECT "l1_cache" FROM "tillamook_0_25_m" WHERE "s_spec_number"='SL2Z3, SL28Q (myA0)';
1-24096813-15
How many region 4 dates are associated with a region 2 date of July 9, 2007?
CREATE TABLE "table1_240936_2" ( "dvd_name" text, "ep_num" text, "region_1_us" text, "region_1_can" text, "region_2_uk" text, "region_2_germany" text, "region_4_australia" text );
SELECT COUNT("region_4_australia") FROM "table1_240936_2" WHERE "region_2_uk"='July 9, 2007';
1-240936-2
What is the region 1 (Canada) date associated with a region 1 (US) date of January 16, 2007?
CREATE TABLE "table1_240936_2" ( "dvd_name" text, "ep_num" text, "region_1_us" text, "region_1_can" text, "region_2_uk" text, "region_2_germany" text, "region_4_australia" text );
SELECT "region_1_can" FROM "table1_240936_2" WHERE "region_1_us"='January 16, 2007';
1-240936-2
What is the region 4 (Aus) date associated with a region 1 (US) date of January 16, 2007?
CREATE TABLE "table1_240936_2" ( "dvd_name" text, "ep_num" text, "region_1_us" text, "region_1_can" text, "region_2_uk" text, "region_2_germany" text, "region_4_australia" text );
SELECT "region_4_australia" FROM "table1_240936_2" WHERE "region_1_us"='January 16, 2007';
1-240936-2
What is the region 2 (UK) date associated with a region 4 (Aus) date of July 31, 2008?
CREATE TABLE "table1_240936_2" ( "dvd_name" text, "ep_num" text, "region_1_us" text, "region_1_can" text, "region_2_uk" text, "region_2_germany" text, "region_4_australia" text );
SELECT "region_2_uk" FROM "table1_240936_2" WHERE "region_4_australia"='July 31, 2008';
1-240936-2
What is the region 1 (Canada) date associated with a region 2 (UK) date of May 18, 2009?
CREATE TABLE "table1_240936_2" ( "dvd_name" text, "ep_num" text, "region_1_us" text, "region_1_can" text, "region_2_uk" text, "region_2_germany" text, "region_4_australia" text );
SELECT "region_1_can" FROM "table1_240936_2" WHERE "region_2_uk"='May 18, 2009';
1-240936-2
How many seasons included an episode titled "all the wrong moves"?
CREATE TABLE "table1_2409041_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT COUNT("no_in_season") FROM "table1_2409041_6" WHERE "title"='\"All the Wrong Moves\"';
1-2409041-6
Who was the director for the episode airing on September 24, 1993?
CREATE TABLE "table1_2409041_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "directed_by" FROM "table1_2409041_6" WHERE "original_air_date"='September 24, 1993';
1-2409041-6
In which series was season 18?
CREATE TABLE "table1_2409041_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT COUNT("no_in_series") FROM "table1_2409041_6" WHERE "no_in_season"=18;
1-2409041-6
Who wrote the episode "car wars"?
CREATE TABLE "table1_2409041_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "written_by" FROM "table1_2409041_6" WHERE "title"='\"Car Wars\"';
1-2409041-6
What is the title of season 2?
CREATE TABLE "table1_2409041_6" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" real );
SELECT "title" FROM "table1_2409041_6" WHERE "no_in_season"=2;
1-2409041-6
What is the brand name associated with a model name e4xxx?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "brand_name" FROM "variants" WHERE "model_list"='E4xxx';
1-24099628-1
What is the brand name associated with the model named e4xxx?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "brand_name" FROM "variants" WHERE "model_list"='E4xxx';
1-24099628-1
What is the brand name associated with the model 4x0?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "brand_name" FROM "variants" WHERE "model_list"='4x0';
1-24099628-1
What is the number of cores associated with model name e2xxx?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "cores" FROM "variants" WHERE "model_list"='E2xxx';
1-24099628-1
What is the wattage/TDP associated with model name 4x0?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "tdp" FROM "variants" WHERE "model_list"='4x0';
1-24099628-1
When the socket is bga956 and processor is penryn-3m, what is the tdp?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "tdp" FROM "variants" WHERE "socket"='BGA956' AND "processor"='Penryn-3M';
1-24100843-1
Whats the processor for p9xxx?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "processor" FROM "variants" WHERE "model_list"='P9xxx';
1-24100843-1
What's the l2 cache of the model with TDP of 5.5-10 w?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "l2_cache" FROM "variants" WHERE "tdp"='5.5-10 W';
1-24099916-1
What's the model of the processor with BGA479 socket and a 5.5 w TDP?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "model_list" FROM "variants" WHERE "socket"='BGA479' AND "tdp"='5.5 W';
1-24099916-1
What's the model of the processor with a 5.5 w TDP?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "model_list" FROM "variants" WHERE "tdp"='5.5 W';
1-24099916-1
What's the smallest number for cores of any of the processor models?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT MIN("cores") FROM "variants";
1-24099916-1
what is the model where the processor is yorkfield and the brand name is xeon?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "model_list" FROM "variants" WHERE "processor"='Yorkfield' AND "brand_name"='Xeon';
1-24101118-1
what is the socket that has a brand name of core 2 extreme?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "socket" FROM "variants" WHERE "brand_name"='Core 2 Extreme';
1-24101118-1
what is the name of the processor for model x33x0?
CREATE TABLE "variants" ( "processor" text, "brand_name" text, "model_list" text, "cores" real, "l2_cache" text, "socket" text, "tdp" text );
SELECT "processor" FROM "variants" WHERE "model_list"='X33x0';
1-24101118-1
What is the earliest number in before?
CREATE TABLE "table1_24108789_4" ( "num" text, "player" text, "country" text, "score" text, "to_par" real, "winnings" real, "after" real, "before" real );
SELECT MIN("before") FROM "table1_24108789_4";
1-24108789-4
What is the latest after when the player is Steve Stricker?
CREATE TABLE "table1_24108789_4" ( "num" text, "player" text, "country" text, "score" text, "to_par" real, "winnings" real, "after" real, "before" real );
SELECT MAX("after") FROM "table1_24108789_4" WHERE "player"='Steve Stricker';
1-24108789-4
List all before numbers when Geoff Ogilvy was playing.
CREATE TABLE "table1_24108789_4" ( "num" text, "player" text, "country" text, "score" text, "to_par" real, "winnings" real, "after" real, "before" real );
SELECT "before" FROM "table1_24108789_4" WHERE "player"='Geoff Ogilvy';
1-24108789-4
Name the least events for number 7
CREATE TABLE "reset_points" ( "num" real, "player" text, "country" text, "points" real, "reset_points" real, "events" real );
SELECT MIN("events") FROM "reset_points" WHERE "num"=7;
1-24108789-6
Name the number of events for 3031
CREATE TABLE "reset_points" ( "num" real, "player" text, "country" text, "points" real, "reset_points" real, "events" real );
SELECT COUNT("events") FROM "reset_points" WHERE "points"=3031;
1-24108789-6
Name the player for 22 events
CREATE TABLE "reset_points" ( "num" real, "player" text, "country" text, "points" real, "reset_points" real, "events" real );
SELECT "player" FROM "reset_points" WHERE "events"=22;
1-24108789-6
Name the least points for number 6
CREATE TABLE "reset_points" ( "num" real, "player" text, "country" text, "points" real, "reset_points" real, "events" real );
SELECT MIN("points") FROM "reset_points" WHERE "num"=6;
1-24108789-6
Name the most number for steve stricker
CREATE TABLE "reset_points" ( "num" real, "player" text, "country" text, "points" real, "reset_points" real, "events" real );
SELECT MAX("num") FROM "reset_points" WHERE "player"='Steve Stricker';
1-24108789-6
Name the total number of points for 800 reset
CREATE TABLE "reset_points" ( "num" real, "player" text, "country" text, "points" real, "reset_points" real, "events" real );
SELECT COUNT("points") FROM "reset_points" WHERE "reset_points"=800;
1-24108789-6
What percentage did kennedy win while coakly won 37.9%
CREATE TABLE "by_county" ( "county" text, "coakley_pct" text, "coakley_votes" real, "brown_pct" text, "brown_votes" real, "kennedy_pct" text, "kennedy_votes" real );
SELECT "kennedy_pct" FROM "by_county" WHERE "coakley_pct"='37.9%';
1-24115349-4
How many votes did kennedy win when coakley won 66.2%
CREATE TABLE "by_county" ( "county" text, "coakley_pct" text, "coakley_votes" real, "brown_pct" text, "brown_votes" real, "kennedy_pct" text, "kennedy_votes" real );
SELECT MIN("kennedy_votes") FROM "by_county" WHERE "coakley_pct"='66.2%';
1-24115349-4
What was the percentage of votes for coakley when kennedy won 1.6%
CREATE TABLE "by_county" ( "county" text, "coakley_pct" text, "coakley_votes" real, "brown_pct" text, "brown_votes" real, "kennedy_pct" text, "kennedy_votes" real );
SELECT "coakley_pct" FROM "by_county" WHERE "kennedy_pct"='1.6%';
1-24115349-4
How many votes did kennedy win when coaklely won 2139 votes?
CREATE TABLE "by_county" ( "county" text, "coakley_pct" text, "coakley_votes" real, "brown_pct" text, "brown_votes" real, "kennedy_pct" text, "kennedy_votes" real );
SELECT COUNT("kennedy_votes") FROM "by_county" WHERE "coakley_votes"=2139;
1-24115349-4
How many locations did the team play at on week 7?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text );
SELECT COUNT("location") FROM "schedule" WHERE "week"=7;
1-24123547-2
What was the result of the games VS the Lions?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text );
SELECT "final_score" FROM "schedule" WHERE "opponent"='Lions';
1-24123547-2
Name the number of dates for alouettes
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text );
SELECT COUNT("date") FROM "schedule" WHERE "opponent"='Alouettes';
1-24126518-2
Name the least attendance for l 36–1
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text );
SELECT MIN("attendance") FROM "schedule" WHERE "final_score"='L 36–1';
1-24126518-2
Name the final score for exhibition stadium for september 10
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text );
SELECT "final_score" FROM "schedule" WHERE "location"='Exhibition Stadium' AND "date"='September 10';
1-24126518-2
Name the number of record for week 11
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text );
SELECT COUNT("record") FROM "schedule" WHERE "week"=11;
1-24126518-2
Name the opponent for week 12
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text );
SELECT "opponent" FROM "schedule" WHERE "week"=12;
1-24126606-2
Name the total number of opponent for october 3
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text );
SELECT COUNT("opponent") FROM "schedule" WHERE "date"='October 3';
1-24126606-2
Name the final score for week 5
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text );
SELECT "final_score" FROM "schedule" WHERE "week"=5;
1-24126606-2
Who directed episode 28 in the series?
CREATE TABLE "table1_24132054_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 "directed_by" FROM "table1_24132054_1" WHERE "no_in_series"=28;
1-24132054-1
Who directed "go your own way"?
CREATE TABLE "table1_24132054_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 "directed_by" FROM "table1_24132054_1" WHERE "title"='\"Go Your Own Way\"';
1-24132054-1
What episode in the season was "easy as pie"?
CREATE TABLE "table1_24132054_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 MIN("no_in_season") FROM "table1_24132054_1" WHERE "title"='\"Easy as Pie\"';
1-24132054-1
What in the series number of the episode written by Lauren Gussis?
CREATE TABLE "table1_24132083_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 MIN("no_in_series") FROM "table1_24132083_1" WHERE "written_by"='Lauren Gussis';
1-24132083-1
On how many different dates did the episode directed by Marcos Siega and written by Scott Buck air for the first time?
CREATE TABLE "table1_24132083_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("original_air_date") FROM "table1_24132083_1" WHERE "directed_by"='Marcos Siega' AND "written_by"='Scott Buck';
1-24132083-1
Who was the director of the episode called "If I had a hammer"?
CREATE TABLE "table1_24132083_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 "directed_by" FROM "table1_24132083_1" WHERE "title"='\"If I Had a Hammer\"';
1-24132083-1
What's the series number of the episode written by Tim Schlattmann?
CREATE TABLE "table1_24132083_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 MIN("no_in_series") FROM "table1_24132083_1" WHERE "written_by"='Tim Schlattmann';
1-24132083-1
Who played in the semi finals matches at the Buick WCT finals?
CREATE TABLE "wct_1985" ( "date_final" text, "tournament" text, "commercial_name" text, "category" text, "prize_money_surface" text, "final_match" text, "semifinal_matches" text );
SELECT "semifinal_matches" FROM "wct_1985" WHERE "commercial_name"='Buick WCT Finals';
1-2413292-1
Name the date for l 28–15
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text );
SELECT "date" FROM "schedule" WHERE "final_score"='L 28–15';
1-24138601-2
When tiger-cats is the opponent what is the location?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text );
SELECT "location" FROM "schedule" WHERE "opponent"='Tiger-Cats';
1-24136365-2
When 4 is the week what is the location?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "location" text, "final_score" text, "attendance" real, "record" text );
SELECT "location" FROM "schedule" WHERE "week"=4;
1-24136365-2