question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
|---|---|---|---|
Where did they play the San Diego Chargers?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
|
SELECT "game_site" FROM "schedule" WHERE "opponent"='San Diego Chargers';
|
1-13259009-2
|
How many times during the season were the seahawks 8-6?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
|
SELECT COUNT("result") FROM "schedule" WHERE "record"='8-6';
|
1-13259019-2
|
On what day was the team playing at milwaukee county stadium?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
|
SELECT "date" FROM "schedule" WHERE "game_site"='Milwaukee County Stadium';
|
1-13259019-2
|
How many times did the team play at oakland-alameda county coliseum?
|
CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"game_site" text,
"record" text,
"attendance" real
);
|
SELECT COUNT("date") FROM "schedule" WHERE "game_site"='Oakland-Alameda County Coliseum';
|
1-13259019-2
|
Which episode was watched by 11.75 million U.S. viewers?
|
CREATE TABLE "table1_13301516_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
|
SELECT "title" FROM "table1_13301516_1" WHERE "u_s_viewers_millions"='11.75';
|
1-13301516-1
|
How many U.S. viewers, in millions, watched the episode that aired on November 13, 2007?
|
CREATE TABLE "table1_13301516_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
|
SELECT "u_s_viewers_millions" FROM "table1_13301516_1" WHERE "original_air_date"='November 13, 2007';
|
1-13301516-1
|
How many episodes originally aired on April 29, 2008?
|
CREATE TABLE "table1_13301516_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
|
SELECT COUNT("no_in_series") FROM "table1_13301516_1" WHERE "original_air_date"='April 29, 2008';
|
1-13301516-1
|
How many millions of U.S. viewers watched episode 185?
|
CREATE TABLE "table1_13301516_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
|
SELECT "u_s_viewers_millions" FROM "table1_13301516_1" WHERE "no_in_series"=185;
|
1-13301516-1
|
Who directed the episode that originally aired on January 15, 2008?
|
CREATE TABLE "table1_13301516_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"production_code" real,
"u_s_viewers_millions" text
);
|
SELECT "directed_by" FROM "table1_13301516_1" WHERE "original_air_date"='January 15, 2008';
|
1-13301516-1
|
How many players weight 95?
|
CREATE TABLE "team" (
"shirt_no" real,
"player" text,
"birth_date" text,
"weight" real,
"height" real
);
|
SELECT COUNT("player") FROM "team" WHERE "weight"=95;
|
1-13312864-1
|
What's Enrique de la Fuente's weight?
|
CREATE TABLE "team" (
"shirt_no" real,
"player" text,
"birth_date" text,
"weight" real,
"height" real
);
|
SELECT MIN("weight") FROM "team" WHERE "player"='Enrique de la Fuente';
|
1-13312864-1
|
What was the election date for H. Brent Coles?
|
CREATE TABLE "passages" (
"incumbent" text,
"reason_for_vacancy" text,
"appointed_successor" text,
"date_of_appointment" text,
"elected_successor" text,
"date_of_election" text
);
|
SELECT "date_of_election" FROM "passages" WHERE "appointed_successor"='H. Brent Coles';
|
1-1329532-2
|
What was the election date for Arthur Hodges?
|
CREATE TABLE "passages" (
"incumbent" text,
"reason_for_vacancy" text,
"appointed_successor" text,
"date_of_appointment" text,
"elected_successor" text,
"date_of_election" text
);
|
SELECT "date_of_election" FROM "passages" WHERE "elected_successor"='Arthur Hodges';
|
1-1329532-2
|
What is the country for # 8
|
CREATE TABLE "regular_season_rankings" (
"num" real,
"player" text,
"country" text,
"points" real,
"events" real,
"reset_points" real
);
|
SELECT "country" FROM "regular_season_rankings" WHERE "num"=8;
|
1-13282157-1
|
what is the country where the player is phil mickelson?
|
CREATE TABLE "regular_season_rankings" (
"num" real,
"player" text,
"country" text,
"points" real,
"events" real,
"reset_points" real
);
|
SELECT "country" FROM "regular_season_rankings" WHERE "player"='Phil Mickelson';
|
1-13282157-1
|
What is the highest reset points where the events is 23?
|
CREATE TABLE "regular_season_rankings" (
"num" real,
"player" text,
"country" text,
"points" real,
"events" real,
"reset_points" real
);
|
SELECT MAX("reset_points") FROM "regular_season_rankings" WHERE "events"=23;
|
1-13282157-1
|
What round was held at Knowsley Road, resulting in a lose.
|
CREATE TABLE "fixtures_results" (
"competition" text,
"round" text,
"opponent" text,
"result" text,
"score" text,
"home_away" text,
"venue" text,
"attendance" text,
"date" text
);
|
SELECT "round" FROM "fixtures_results" WHERE "venue"='Knowsley Road' AND "result"='Lose';
|
1-13328239-4
|
What's the score of the QF round?
|
CREATE TABLE "fixtures_results" (
"competition" text,
"round" text,
"opponent" text,
"result" text,
"score" text,
"home_away" text,
"venue" text,
"attendance" text,
"date" text
);
|
SELECT "score" FROM "fixtures_results" WHERE "round"='QF';
|
1-13328239-4
|
How many rounds ended with a score of 16-52?
|
CREATE TABLE "fixtures_results" (
"competition" text,
"round" text,
"opponent" text,
"result" text,
"score" text,
"home_away" text,
"venue" text,
"attendance" text,
"date" text
);
|
SELECT COUNT("round") FROM "fixtures_results" WHERE "score"='16-52';
|
1-13328239-4
|
Who was the opponent in round 2?
|
CREATE TABLE "fixtures_results" (
"competition" text,
"round" text,
"opponent" text,
"result" text,
"score" text,
"home_away" text,
"venue" text,
"attendance" text,
"date" text
);
|
SELECT "opponent" FROM "fixtures_results" WHERE "round"='2';
|
1-13328239-4
|
When was the game happening at Halton Stadium?
|
CREATE TABLE "fixtures_results" (
"competition" text,
"round" text,
"opponent" text,
"result" text,
"score" text,
"home_away" text,
"venue" text,
"attendance" text,
"date" text
);
|
SELECT "date" FROM "fixtures_results" WHERE "venue"='Halton Stadium';
|
1-13328239-4
|
What competition ended with a score of 38-14?
|
CREATE TABLE "fixtures_results" (
"competition" text,
"round" text,
"opponent" text,
"result" text,
"score" text,
"home_away" text,
"venue" text,
"attendance" text,
"date" text
);
|
SELECT "competition" FROM "fixtures_results" WHERE "score"='38-14';
|
1-13328239-4
|
what's the population with country being chile
|
CREATE TABLE "ethnic_distribution_in_2005_population_e" (
"country" text,
"population" real,
"native_american" text,
"whites" text,
"s_mestizo" text,
"es_mulatto" text,
"blacks" text,
"s_zambo" text,
"asians" text
);
|
SELECT "population" FROM "ethnic_distribution_in_2005_population_e" WHERE "country"='Chile';
|
1-1333612-1
|
what's the s mestizo with asians being 0.2% and whites being 74.8%
|
CREATE TABLE "ethnic_distribution_in_2005_population_e" (
"country" text,
"population" real,
"native_american" text,
"whites" text,
"s_mestizo" text,
"es_mulatto" text,
"blacks" text,
"s_zambo" text,
"asians" text
);
|
SELECT "s_mestizo" FROM "ethnic_distribution_in_2005_population_e" WHERE "asians"='0.2%' AND "whites"='74.8%';
|
1-1333612-1
|
what's the country with es mulatto being 3.5%
|
CREATE TABLE "ethnic_distribution_in_2005_population_e" (
"country" text,
"population" real,
"native_american" text,
"whites" text,
"s_mestizo" text,
"es_mulatto" text,
"blacks" text,
"s_zambo" text,
"asians" text
);
|
SELECT "country" FROM "ethnic_distribution_in_2005_population_e" WHERE "es_mulatto"='3.5%';
|
1-1333612-1
|
what's the s mestizo with population being 29461933
|
CREATE TABLE "ethnic_distribution_in_2005_population_e" (
"country" text,
"population" real,
"native_american" text,
"whites" text,
"s_mestizo" text,
"es_mulatto" text,
"blacks" text,
"s_zambo" text,
"asians" text
);
|
SELECT "s_mestizo" FROM "ethnic_distribution_in_2005_population_e" WHERE "population"=29461933;
|
1-1333612-1
|
what's the native american with es mulatto being 0.7%
|
CREATE TABLE "ethnic_distribution_in_2005_population_e" (
"country" text,
"population" real,
"native_american" text,
"whites" text,
"s_mestizo" text,
"es_mulatto" text,
"blacks" text,
"s_zambo" text,
"asians" text
);
|
SELECT "native_american" FROM "ethnic_distribution_in_2005_population_e" WHERE "es_mulatto"='0.7%';
|
1-1333612-1
|
how many native american with whites being 1.0%
|
CREATE TABLE "ethnic_distribution_in_2005_population_e" (
"country" text,
"population" real,
"native_american" text,
"whites" text,
"s_mestizo" text,
"es_mulatto" text,
"blacks" text,
"s_zambo" text,
"asians" text
);
|
SELECT COUNT("native_american") FROM "ethnic_distribution_in_2005_population_e" WHERE "whites"='1.0%';
|
1-1333612-1
|
When did the episode directed by David Duchovny originally air?
|
CREATE TABLE "table1_13336122_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
|
SELECT "original_air_date" FROM "table1_13336122_3" WHERE "directed_by"='David Duchovny';
|
1-13336122-3
|
What's the title of the episode directed by David von Ancken, with a episode number bigger than 16.0?
|
CREATE TABLE "table1_13336122_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
|
SELECT "title" FROM "table1_13336122_3" WHERE "directed_by"='David Von Ancken' AND "no_in_series">16.0;
|
1-13336122-3
|
How many episodes have been directed by David Duchovny?
|
CREATE TABLE "table1_13336122_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
|
SELECT COUNT("title") FROM "table1_13336122_3" WHERE "directed_by"='David Duchovny';
|
1-13336122-3
|
What's the smallest episode number of an episode whose number in the series is 22?
|
CREATE TABLE "table1_13336122_3" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
);
|
SELECT MIN("no_in_season") FROM "table1_13336122_3" WHERE "no_in_series"=22;
|
1-13336122-3
|
Name the number of shows when there was 2 million views
|
CREATE TABLE "table1_13336122_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
|
SELECT COUNT("u_s_viewers_million") FROM "table1_13336122_6" WHERE "no_in_season"=2;
|
1-13336122-6
|
What is the episode number for "here I go again"?
|
CREATE TABLE "table1_13336122_6" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
|
SELECT MIN("no_in_series") FROM "table1_13336122_6" WHERE "title"='\"Here I Go Again\"';
|
1-13336122-6
|
what is the original air date for the episoe written by vanessa reisen?
|
CREATE TABLE "table1_13336122_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
|
SELECT "original_air_date" FROM "table1_13336122_5" WHERE "written_by"='Vanessa Reisen';
|
1-13336122-5
|
What is the u.s. viewers (million) for the title "the recused"
|
CREATE TABLE "table1_13336122_5" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text,
"u_s_viewers_million" text
);
|
SELECT "u_s_viewers_million" FROM "table1_13336122_5" WHERE "title"='\"The Recused\"';
|
1-13336122-5
|
what is the maximum completed for delta bessborough
|
CREATE TABLE "buildings_completed_as_of_february_2011" (
"rank" real,
"building" text,
"address" text,
"height" text,
"storeys" real,
"completed" real
);
|
SELECT MAX("completed") FROM "buildings_completed_as_of_february_2011" WHERE "building"='Delta Bessborough';
|
1-13397394-1
|
what is the maximum completed for address on 410 22nd st e
|
CREATE TABLE "buildings_completed_as_of_february_2011" (
"rank" real,
"building" text,
"address" text,
"height" text,
"storeys" real,
"completed" real
);
|
SELECT "completed" FROM "buildings_completed_as_of_february_2011" WHERE "address"='410 22nd St E';
|
1-13397394-1
|
what is the total number of building for address on 201 1st avenue south
|
CREATE TABLE "buildings_completed_as_of_february_2011" (
"rank" real,
"building" text,
"address" text,
"height" text,
"storeys" real,
"completed" real
);
|
SELECT COUNT("building") FROM "buildings_completed_as_of_february_2011" WHERE "address"='201 1st Avenue South';
|
1-13397394-1
|
what are all the building with 12 storeys
|
CREATE TABLE "buildings_completed_as_of_february_2011" (
"rank" real,
"building" text,
"address" text,
"height" text,
"storeys" real,
"completed" real
);
|
SELECT "building" FROM "buildings_completed_as_of_february_2011" WHERE "storeys"=12;
|
1-13397394-1
|
what is the minimum storeys on 325 5th ave n
|
CREATE TABLE "buildings_completed_as_of_february_2011" (
"rank" real,
"building" text,
"address" text,
"height" text,
"storeys" real,
"completed" real
);
|
SELECT MIN("storeys") FROM "buildings_completed_as_of_february_2011" WHERE "address"='325 5th Ave N';
|
1-13397394-1
|
What is the region 2 for the complete fifth series?
|
CREATE TABLE "table1_1337525_1" (
"complete_series" text,
"region_1" text,
"region_2" text,
"region_4" text,
"dvd_extras_and_bonus_features" text,
"number_of_discs" real
);
|
SELECT "region_2" FROM "table1_1337525_1" WHERE "complete_series"='The Complete Fifth Series';
|
1-1337525-1
|
What is the number of region 4 for the series of the complete seventh series?
|
CREATE TABLE "table1_1337525_1" (
"complete_series" text,
"region_1" text,
"region_2" text,
"region_4" text,
"dvd_extras_and_bonus_features" text,
"number_of_discs" real
);
|
SELECT COUNT("region_4") FROM "table1_1337525_1" WHERE "complete_series"='The Complete Seventh Series';
|
1-1337525-1
|
What is the region 1 where region 4 is tba is the complete eighth series?
|
CREATE TABLE "table1_1337525_1" (
"complete_series" text,
"region_1" text,
"region_2" text,
"region_4" text,
"dvd_extras_and_bonus_features" text,
"number_of_discs" real
);
|
SELECT "region_1" FROM "table1_1337525_1" WHERE "region_4"='TBA' AND "complete_series"='The Complete Eighth Series';
|
1-1337525-1
|
Name the region 4 for the complete fifth series
|
CREATE TABLE "table1_1337525_1" (
"complete_series" text,
"region_1" text,
"region_2" text,
"region_4" text,
"dvd_extras_and_bonus_features" text,
"number_of_discs" real
);
|
SELECT "region_4" FROM "table1_1337525_1" WHERE "complete_series"='The Complete Fifth Series';
|
1-1337525-1
|
How many tries were against when the number won was 14?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "tries_against" FROM "2009_2010_table" WHERE "won"='14';
|
1-13399573-3
|
What was the number of bonus tries when there were 522 points against?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "try_bonus" FROM "2009_2010_table" WHERE "points_against"='522';
|
1-13399573-3
|
How many numbers were listed under losing bonus when there were 68 tries for?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT COUNT("losing_bonus") FROM "2009_2010_table" WHERE "tries_for"='68';
|
1-13399573-3
|
What amount of points for were there when there was 52 points?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "points_for" FROM "2009_2010_table" WHERE "points"='52';
|
1-13399573-3
|
What was the number of points against when the amount won is 10?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "points_against" FROM "2009_2010_table" WHERE "won"='10';
|
1-13399573-3
|
What is listed under try bonus when listed under Tries for is tries for?
|
CREATE TABLE "2009_2010_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "try_bonus" FROM "2009_2010_table" WHERE "tries_for"='Tries for';
|
1-13399573-3
|
What is the original date of the repeat air date of 26/01/1969?
|
CREATE TABLE "table1_13403120_1" (
"num" real,
"title" text,
"director" text,
"writer_s" text,
"originalairdate" text,
"repeatairdate_s" text,
"prod_code" text
);
|
SELECT "originalairdate" FROM "table1_13403120_1" WHERE "repeatairdate_s"='26/01/1969';
|
1-13403120-1
|
What is the repeat date of the episode that aired 22/12/1968?
|
CREATE TABLE "table1_13403120_1" (
"num" real,
"title" text,
"director" text,
"writer_s" text,
"originalairdate" text,
"repeatairdate_s" text,
"prod_code" text
);
|
SELECT "repeatairdate_s" FROM "table1_13403120_1" WHERE "originalairdate"='22/12/1968';
|
1-13403120-1
|
who is the writer of the episode with prod.code 30-17
|
CREATE TABLE "table1_13403120_1" (
"num" real,
"title" text,
"director" text,
"writer_s" text,
"originalairdate" text,
"repeatairdate_s" text,
"prod_code" text
);
|
SELECT "writer_s" FROM "table1_13403120_1" WHERE "prod_code"='30-17';
|
1-13403120-1
|
what is the prod.code of the episode with original air date 01/12/1968?
|
CREATE TABLE "table1_13403120_1" (
"num" real,
"title" text,
"director" text,
"writer_s" text,
"originalairdate" text,
"repeatairdate_s" text,
"prod_code" text
);
|
SELECT COUNT("prod_code") FROM "table1_13403120_1" WHERE "originalairdate"='01/12/1968';
|
1-13403120-1
|
In the 2008/2009 season one team had a season total points of 31, for that team how many total points were scored against them?
|
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "points_against" FROM "2008_2009_table" WHERE "points"='31';
|
1-13399573-4
|
In the 2008/2009 season one team had 1 losing bonus, How many points did that team score that year?
|
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "points_for" FROM "2008_2009_table" WHERE "losing_bonus"='1';
|
1-13399573-4
|
In the 2008/2009 season one team had 47 tries against, how many games did they win that year?
|
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "won" FROM "2008_2009_table" WHERE "tries_against"='47';
|
1-13399573-4
|
In the 2008/2009 season one team had 39 tries against, how many losing bonuses did they have that year?
|
CREATE TABLE "2008_2009_table" (
"club" text,
"played" text,
"won" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
);
|
SELECT "losing_bonus" FROM "2008_2009_table" WHERE "tries_against"='39';
|
1-13399573-4
|
Who were the candidates when ed markey was the incumbent?
|
CREATE TABLE "massachusetts" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "candidates" FROM "massachusetts" WHERE "incumbent"='Ed Markey';
|
1-1341395-22
|
How many times was the incumbent mike capuano
|
CREATE TABLE "massachusetts" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT COUNT("result") FROM "massachusetts" WHERE "incumbent"='Mike Capuano';
|
1-1341395-22
|
Who were the candidates when Barney Frank was the incumbent?
|
CREATE TABLE "massachusetts" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "candidates" FROM "massachusetts" WHERE "incumbent"='Barney Frank';
|
1-1341395-22
|
What was the earliest year someone was first elected from Massachusetts 3
|
CREATE TABLE "massachusetts" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT MIN("first_elected") FROM "massachusetts" WHERE "district"='Massachusetts 3';
|
1-1341395-22
|
What party did incumbent Albert Wynn belong to?
|
CREATE TABLE "maryland" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "maryland" WHERE "incumbent"='Albert Wynn';
|
1-1341423-20
|
What was the result of the election in the Maryland 7 district?
|
CREATE TABLE "maryland" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "results" FROM "maryland" WHERE "district"='Maryland 7';
|
1-1341423-20
|
How many candidates ran in the election where Wayne Gilchrest was the incumbent?
|
CREATE TABLE "maryland" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT COUNT("candidates") FROM "maryland" WHERE "incumbent"='Wayne Gilchrest';
|
1-1341423-20
|
What were the results in the election where Albert Wynn was the incumbent?
|
CREATE TABLE "maryland" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "results" FROM "maryland" WHERE "incumbent"='Albert Wynn';
|
1-1341423-20
|
Who were the candidates in the Maryland 5 district election?
|
CREATE TABLE "maryland" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "candidates" FROM "maryland" WHERE "district"='Maryland 5';
|
1-1341423-20
|
What district is Henry Hyde in
|
CREATE TABLE "table1_1341423_13" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "district" FROM "table1_1341423_13" WHERE "incumbent"='Henry Hyde';
|
1-1341423-13
|
What year was Luis Gutierrez election
|
CREATE TABLE "table1_1341423_13" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT MIN("first_elected") FROM "table1_1341423_13" WHERE "incumbent"='Luis Gutierrez';
|
1-1341423-13
|
Which district is Joe Moakley?
|
CREATE TABLE "massachusetts" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "district" FROM "massachusetts" WHERE "incumbent"='Joe Moakley';
|
1-1341423-21
|
What is the lowest first elected?
|
CREATE TABLE "massachusetts" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT MIN("first_elected") FROM "massachusetts";
|
1-1341423-21
|
Name the first election for john mchugh
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT COUNT("first_elected") FROM "new_york" WHERE "incumbent"='John McHugh';
|
1-1341423-32
|
Name the results for district new york 24
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "results" FROM "new_york" WHERE "district"='New York 24';
|
1-1341423-32
|
Name the district for carolyn mccarthy
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "district" FROM "new_york" WHERE "incumbent"='Carolyn McCarthy';
|
1-1341423-32
|
Name the number of party for new york 29
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT COUNT("party") FROM "new_york" WHERE "district"='New York 29';
|
1-1341423-32
|
Which party does the incumbent first elected in 1994 belong to?
|
CREATE TABLE "michigan" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "michigan" WHERE "first_elected"=1994;
|
1-1341423-22
|
How many districts have Bart Stupak as the incumbent?
|
CREATE TABLE "michigan" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT COUNT("district") FROM "michigan" WHERE "incumbent"='Bart Stupak';
|
1-1341423-22
|
Who was elected in 1972
|
CREATE TABLE "ohio" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "incumbent" FROM "ohio" WHERE "first_elected"=1972;
|
1-1341423-35
|
what is the earliest first elected with the results re-elected in the district south carolina 3?
|
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT MAX("first_elected") FROM "south_carolina" WHERE "results"='Re-elected' AND "district"='South Carolina 3';
|
1-1341423-40
|
what is the party with the incumbent jim demint?
|
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "south_carolina" WHERE "incumbent"='Jim DeMint';
|
1-1341423-40
|
what is the party for the district south carolina 4?
|
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "south_carolina" WHERE "district"='South Carolina 4';
|
1-1341423-40
|
what is the party when candidates is jim demint (r) 80%?
|
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "south_carolina" WHERE "candidates"='Jim DeMint (R) 80%';
|
1-1341423-40
|
what is the party when candidates is jim demint (r) 80%?
|
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "south_carolina" WHERE "candidates"='Jim DeMint (R) 80%';
|
1-1341423-40
|
who are the candidates when the incumbent is lindsey graham?
|
CREATE TABLE "south_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "candidates" FROM "south_carolina" WHERE "incumbent"='Lindsey Graham';
|
1-1341423-40
|
What was the results when the incumbent was ernest istook?
|
CREATE TABLE "oklahoma" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "results" FROM "oklahoma" WHERE "incumbent"='Ernest Istook';
|
1-1341423-36
|
What was the results for the district oklahoma 3?
|
CREATE TABLE "oklahoma" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "results" FROM "oklahoma" WHERE "district"='Oklahoma 3';
|
1-1341423-36
|
How many party were listed for district oklahoma 5?
|
CREATE TABLE "oklahoma" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT COUNT("party") FROM "oklahoma" WHERE "district"='Oklahoma 5';
|
1-1341423-36
|
What is the party when the candidates were ernest istook (r) 69% garland mcwatters (d) 28%?
|
CREATE TABLE "oklahoma" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "oklahoma" WHERE "candidates"='Ernest Istook (R) 69% Garland McWatters (D) 28%';
|
1-1341423-36
|
when was the first elected for districk oklahoma 1?
|
CREATE TABLE "oklahoma" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "first_elected" FROM "oklahoma" WHERE "district"='Oklahoma 1';
|
1-1341423-36
|
What were the results for the district oklahoma 5?
|
CREATE TABLE "oklahoma" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "results" FROM "oklahoma" WHERE "district"='Oklahoma 5';
|
1-1341423-36
|
How many parties is the incumbent Bob Brady a member of?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT COUNT("party") FROM "pennsylvania" WHERE "incumbent"='Bob Brady';
|
1-1341423-38
|
How many candidates were there in the district won by Joe Hoeffel?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT COUNT("candidates") FROM "pennsylvania" WHERE "incumbent"='Joe Hoeffel';
|
1-1341423-38
|
Who were the candidates in district Pennsylvania 3?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "candidates" FROM "pennsylvania" WHERE "district"='Pennsylvania 3';
|
1-1341423-38
|
What's the first elected year of the district whose incumbent is Jim Greenwood?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT MAX("first_elected") FROM "pennsylvania" WHERE "incumbent"='Jim Greenwood';
|
1-1341423-38
|
What was the result of the election featuring incumbent norman sisisky?
|
CREATE TABLE "table1_1341423_46" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "results" FROM "table1_1341423_46" WHERE "incumbent"='Norman Sisisky';
|
1-1341423-46
|
Who were the candidates in the district first elected in 1998 whose incumbent ended up being Paul Ryan?
|
CREATE TABLE "wisconsin" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "candidates" FROM "wisconsin" WHERE "first_elected"=1998 AND "incumbent"='Paul Ryan';
|
1-1341423-49
|
Who ran in the district elections won by Tom Petri?
|
CREATE TABLE "wisconsin" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "candidates" FROM "wisconsin" WHERE "incumbent"='Tom Petri';
|
1-1341423-49
|
When was the first election in the district whose incumbent is Ron Kind?
|
CREATE TABLE "wisconsin" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT MIN("first_elected") FROM "wisconsin" WHERE "incumbent"='Ron Kind';
|
1-1341423-49
|
What year was the first election in the district whose election now was won by Ron Kind?
|
CREATE TABLE "wisconsin" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT MIN("first_elected") FROM "wisconsin" WHERE "incumbent"='Ron Kind';
|
1-1341423-49
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.