question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
|---|---|---|---|
Name the first elected for texas 6 district
|
CREATE TABLE "texas" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "first_elected" FROM "texas" WHERE "district"='Texas 6';
|
1-1341423-43
|
Name the incumbent for texas 22 district
|
CREATE TABLE "texas" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "incumbent" FROM "texas" WHERE "district"='Texas 22';
|
1-1341423-43
|
How did the election in the Florida 14 district end?
|
CREATE TABLE "florida" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "results" FROM "florida" WHERE "district"='Florida 14';
|
1-1341423-9
|
Who's the incumbent of Florida 12 district?
|
CREATE TABLE "florida" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "incumbent" FROM "florida" WHERE "district"='Florida 12';
|
1-1341423-9
|
Who is the incumbent of Florida 9?
|
CREATE TABLE "florida" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "incumbent" FROM "florida" WHERE "district"='Florida 9';
|
1-1341423-9
|
Who's the incumbent in Florida 6?
|
CREATE TABLE "florida" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "incumbent" FROM "florida" WHERE "district"='Florida 6';
|
1-1341453-11
|
What party does Bill McCollum belong to?
|
CREATE TABLE "florida" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "florida" WHERE "incumbent"='Bill McCollum';
|
1-1341453-11
|
What are the results in the county with Peter Deutsch as a candidate?
|
CREATE TABLE "florida" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "results" FROM "florida" WHERE "incumbent"='Peter Deutsch';
|
1-1341453-11
|
How did the election end for Robert Wexler?
|
CREATE TABLE "florida" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "results" FROM "florida" WHERE "incumbent"='Robert Wexler';
|
1-1341453-11
|
What party was the winner in the district Maryland 6?
|
CREATE TABLE "maryland" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "maryland" WHERE "district"='Maryland 6';
|
1-1341453-22
|
Who run for office in district Maryland 3?
|
CREATE TABLE "maryland" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "candidates" FROM "maryland" WHERE "district"='Maryland 3';
|
1-1341453-22
|
List the candidates in district Maryland 1 where the republican party won.
|
CREATE TABLE "maryland" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "candidates" FROM "maryland" WHERE "party"='Republican' AND "district"='Maryland 1';
|
1-1341453-22
|
When did the elections take place in district Maryland 2?
|
CREATE TABLE "maryland" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT MIN("first_elected") FROM "maryland" WHERE "district"='Maryland 2';
|
1-1341453-22
|
What party is Frank Lobiondo a member of?
|
CREATE TABLE "new_jersey" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "new_jersey" WHERE "incumbent"='Frank LoBiondo';
|
1-1341453-32
|
Who were the candidates in the district whose incumbent is Bill Pascrell?
|
CREATE TABLE "new_jersey" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "candidates" FROM "new_jersey" WHERE "incumbent"='Bill Pascrell';
|
1-1341453-32
|
What is the party of the district incumbent Jim Saxton?
|
CREATE TABLE "new_jersey" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "new_jersey" WHERE "incumbent"='Jim Saxton';
|
1-1341453-32
|
What party is John McHugh a member of?
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "new_york" WHERE "incumbent"='John McHugh';
|
1-1341453-34
|
What's the party elected in the district that first elected in 1990?
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "new_york" WHERE "first_elected"='1990';
|
1-1341453-34
|
What's the first elected year of the district that Ed Towns is an incumbent of?
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "first_elected" FROM "new_york" WHERE "incumbent"='Ed Towns';
|
1-1341453-34
|
How many elections have resulted in retired democratic hold?
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT COUNT("party") FROM "new_york" WHERE "results"='Retired Democratic hold';
|
1-1341453-34
|
What were the candidates in the district that first elected in 1980?
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "candidates" FROM "new_york" WHERE "first_elected"='1980';
|
1-1341453-34
|
When was Chaka Fattah first elected in the Pennsylvania 2 district?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "first_elected" FROM "pennsylvania" WHERE "district"='Pennsylvania 2';
|
1-1341453-40
|
How many incumbents were first elected in 1984?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT COUNT("incumbent") FROM "pennsylvania" WHERE "first_elected"='1984';
|
1-1341453-40
|
When was incumbent Bud Shuster first elected?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "first_elected" FROM "pennsylvania" WHERE "incumbent"='Bud Shuster';
|
1-1341453-40
|
How many candidates ran in the election where Mike Doyle was the incumbent?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT COUNT("candidates") FROM "pennsylvania" WHERE "incumbent"='Mike Doyle';
|
1-1341453-40
|
Incumbent Tim Holden belonged to what party?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "pennsylvania" WHERE "incumbent"='Tim Holden';
|
1-1341453-40
|
In what district was Tim Holden the incumbent?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"results" text,
"candidates" text
);
|
SELECT "district" FROM "pennsylvania" WHERE "incumbent"='Tim Holden';
|
1-1341453-40
|
Which incumbent was first elected in 1984?
|
CREATE TABLE "tennessee" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "incumbent" FROM "tennessee" WHERE "first_elected"=1984;
|
1-1341453-44
|
When was the incumbent in the Tennessee 4 district first elected?
|
CREATE TABLE "tennessee" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "first_elected" FROM "tennessee" WHERE "district"='Tennessee 4';
|
1-1341453-44
|
Who are the candidates in the Tennessee 3 district election?
|
CREATE TABLE "tennessee" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "candidates" FROM "tennessee" WHERE "district"='Tennessee 3';
|
1-1341453-44
|
What year was Bob Clement first elected?
|
CREATE TABLE "tennessee" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT MIN("first_elected") FROM "tennessee" WHERE "incumbent"='Bob Clement';
|
1-1341453-44
|
List all the candidates for the seat where the incumbent is Sam Gibbons?
|
CREATE TABLE "florida" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "candidates" FROM "florida" WHERE "incumbent"='Sam Gibbons';
|
1-1341472-11
|
Who were the candidates in district Wisconsin 4?
|
CREATE TABLE "wisconsin" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "candidates" FROM "wisconsin" WHERE "district"='Wisconsin 4';
|
1-1341453-51
|
Who's the incumbent in the district that first elected in 1969?
|
CREATE TABLE "wisconsin" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "incumbent" FROM "wisconsin" WHERE "first_elected"=1969;
|
1-1341453-51
|
Who's the incumbent of district Wisconsin 5?
|
CREATE TABLE "wisconsin" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "incumbent" FROM "wisconsin" WHERE "district"='Wisconsin 5';
|
1-1341453-51
|
How many districts does gary condit represent?
|
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT COUNT("district") FROM "california" WHERE "incumbent"='Gary Condit';
|
1-1341453-7
|
What party was first elected in 1974?
|
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "party" FROM "california" WHERE "first_elected"=1974;
|
1-1341453-7
|
What district is bill thomas from?
|
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "district" FROM "california" WHERE "incumbent"='Bill Thomas';
|
1-1341453-7
|
What district is bill thomas from?
|
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"results" text,
"candidates" text
);
|
SELECT "district" FROM "california" WHERE "incumbent"='Bill Thomas';
|
1-1341453-7
|
Who was the incumbent of district Georgia 2?
|
CREATE TABLE "georgia" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "incumbent" FROM "georgia" WHERE "district"='Georgia 2';
|
1-1341472-12
|
What district is Mac Collins an incumbent in?
|
CREATE TABLE "georgia" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "district" FROM "georgia" WHERE "incumbent"='Mac Collins';
|
1-1341472-12
|
What's the first elected year of the district who's been the last one to do so?
|
CREATE TABLE "georgia" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT MAX("first_elected") FROM "georgia";
|
1-1341472-12
|
Who were the candidates in the district where Charlie Norwood is the incumbent?
|
CREATE TABLE "georgia" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "candidates" FROM "georgia" WHERE "incumbent"='Charlie Norwood';
|
1-1341472-12
|
Which result did the Republican have with the incumbent, Billy Tauzin?
|
CREATE TABLE "louisiana" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "result" FROM "louisiana" WHERE "party"='Republican' AND "incumbent"='Billy Tauzin';
|
1-1341472-20
|
How many districts was Robert Livingston incumbent in?
|
CREATE TABLE "louisiana" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT COUNT("district") FROM "louisiana" WHERE "incumbent"='Robert Livingston';
|
1-1341472-20
|
What is the first election year listed?
|
CREATE TABLE "louisiana" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT MIN("first_elected") FROM "louisiana";
|
1-1341472-20
|
List all results in elections with Richard Baker as the incumbent.
|
CREATE TABLE "louisiana" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "result" FROM "louisiana" WHERE "incumbent"='Richard Baker';
|
1-1341472-20
|
how many party with district being washington 7
|
CREATE TABLE "washington" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT COUNT("party") FROM "washington" WHERE "district"='Washington 7';
|
1-1341472-49
|
what's the latest first elected year
|
CREATE TABLE "washington" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT MAX("first_elected") FROM "washington";
|
1-1341472-49
|
what's the result with district being washington 7
|
CREATE TABLE "washington" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "result" FROM "washington" WHERE "district"='Washington 7';
|
1-1341472-49
|
what being the minimum first elected with district being washington 7
|
CREATE TABLE "washington" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT MIN("first_elected") FROM "washington" WHERE "district"='Washington 7';
|
1-1341472-49
|
what's the result for first elected in 1948 , 1964
|
CREATE TABLE "illinois" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
|
SELECT "result" FROM "illinois" WHERE "first_elected"='1948 , 1964';
|
1-1341472-15
|
what's the first elected with district illinois 18
|
CREATE TABLE "illinois" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
|
SELECT "first_elected" FROM "illinois" WHERE "district"='Illinois 18';
|
1-1341472-15
|
what's the party with candidates jerry weller (r) 51.77% clem balanoff (d) 48.23%
|
CREATE TABLE "illinois" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
|
SELECT "party" FROM "illinois" WHERE "candidates"='Jerry Weller (R) 51.77% Clem Balanoff (D) 48.23%';
|
1-1341472-15
|
what's the party for the first elected in 1980
|
CREATE TABLE "illinois" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
|
SELECT "party" FROM "illinois" WHERE "first_elected"='1980';
|
1-1341472-15
|
what's the result with district illinois 15
|
CREATE TABLE "illinois" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
|
SELECT "result" FROM "illinois" WHERE "district"='Illinois 15';
|
1-1341472-15
|
what's the total number of candidates for first elected in 1948 , 1964
|
CREATE TABLE "illinois" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
|
SELECT COUNT("candidates") FROM "illinois" WHERE "first_elected"='1948 , 1964';
|
1-1341472-15
|
Name thedistrict for 1994
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "district" FROM "new_york" WHERE "first_elected"=1994;
|
1-1341472-34
|
Name the result for New York 11
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "result" FROM "new_york" WHERE "district"='New York 11';
|
1-1341472-34
|
Name the number of first elected for new york 11
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT COUNT("first_elected") FROM "new_york" WHERE "district"='New York 11';
|
1-1341472-34
|
Name the first elected for new york 1
|
CREATE TABLE "new_york" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT COUNT("first_elected") FROM "new_york" WHERE "district"='New York 1';
|
1-1341472-34
|
What year was Larry combest elected
|
CREATE TABLE "texas" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "first_elected" FROM "texas" WHERE "incumbent"='Larry Combest';
|
1-1341472-45
|
To what district does Bill Hefner belong?
|
CREATE TABLE "north_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT "district" FROM "north_carolina" WHERE "incumbent"='Bill Hefner';
|
1-1341522-36
|
Who ran unsuccessfully against Bill Hefner?
|
CREATE TABLE "north_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT "opponent" FROM "north_carolina" WHERE "incumbent"='Bill Hefner';
|
1-1341522-36
|
How many districts are respresented by Alex McMillan?
|
CREATE TABLE "north_carolina" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT COUNT("status") FROM "north_carolina" WHERE "incumbent"='Alex McMillan';
|
1-1341522-36
|
What party is Sanford Bishop a member of?
|
CREATE TABLE "georgia" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT "party" FROM "georgia" WHERE "incumbent"='Sanford Bishop';
|
1-1341522-13
|
What party won in the district Georgia7?
|
CREATE TABLE "georgia" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT "party" FROM "georgia" WHERE "district"='Georgia7';
|
1-1341522-13
|
What's Georgia5's first elected year?
|
CREATE TABLE "georgia" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT MAX("first_elected") FROM "georgia" WHERE "district"='Georgia5';
|
1-1341522-13
|
Who opposed Marty Meehan in each election?
|
CREATE TABLE "massachusetts" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT "opponent" FROM "massachusetts" WHERE "incumbent"='Marty Meehan';
|
1-1341522-24
|
Who are the opponents in Massachusetts5 district?
|
CREATE TABLE "massachusetts" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT "opponent" FROM "massachusetts" WHERE "district"='Massachusetts5';
|
1-1341522-24
|
What parties are represented in Massachusetts4 district?
|
CREATE TABLE "massachusetts" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT "party" FROM "massachusetts" WHERE "district"='Massachusetts4';
|
1-1341522-24
|
Who is the incumbent in district Massachusetts7?
|
CREATE TABLE "massachusetts" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT "incumbent" FROM "massachusetts" WHERE "district"='Massachusetts7';
|
1-1341522-24
|
how many first elected with district being new york2
|
CREATE TABLE "table1_1341549_33" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT COUNT("first_elected") FROM "table1_1341549_33" WHERE "district"='New York2';
|
1-1341549-33
|
how many district with candidates being eliot l. engel (d) 85.2% martin richman (r) 14.8%
|
CREATE TABLE "table1_1341549_33" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT COUNT("district") FROM "table1_1341549_33" WHERE "candidates"='Eliot L. Engel (D) 85.2% Martin Richman (R) 14.8%';
|
1-1341549-33
|
how many candidates with party being democratic and dbeingtrict being new york5
|
CREATE TABLE "table1_1341549_33" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT COUNT("candidates") FROM "table1_1341549_33" WHERE "party"='Democratic' AND "district"='New York5';
|
1-1341549-33
|
how many first elected with result being re-elected and incumbent being gary ackerman redistricted from the 7th district
|
CREATE TABLE "table1_1341549_33" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT COUNT("first_elected") FROM "table1_1341549_33" WHERE "result"='Re-elected' AND "incumbent"='Gary Ackerman Redistricted from the 7th district';
|
1-1341549-33
|
What party does ron klink represent?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT "party" FROM "pennsylvania" WHERE "incumbent"='Ron Klink';
|
1-1341522-41
|
Who was in the election that was for incumbent bud shuster's seat?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT "opponent" FROM "pennsylvania" WHERE "incumbent"='Bud Shuster';
|
1-1341522-41
|
What district had someone first elected in 1982?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT "district" FROM "pennsylvania" WHERE "first_elected"=1982;
|
1-1341522-41
|
How many republican incumbents first elected in 1974?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT COUNT("incumbent") FROM "pennsylvania" WHERE "party"='Republican' AND "first_elected"=1974;
|
1-1341522-41
|
What was the result of the election where william f. goodling was the incumbent?
|
CREATE TABLE "pennsylvania" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"status" text,
"opponent" text
);
|
SELECT "status" FROM "pennsylvania" WHERE "incumbent"='William F. Goodling';
|
1-1341522-41
|
What party did incumbent Howard Coble belong to?
|
CREATE TABLE "north_carolina" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"opponent" text
);
|
SELECT "party" FROM "north_carolina" WHERE "incumbent"='Howard Coble';
|
1-1341568-34
|
What party did incumbent Stephen L. Neal belong to?
|
CREATE TABLE "north_carolina" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"opponent" text
);
|
SELECT "party" FROM "north_carolina" WHERE "incumbent"='Stephen L. Neal';
|
1-1341568-34
|
In how many districts was the democratic incumbent elected in 1974?
|
CREATE TABLE "north_carolina" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"opponent" text
);
|
SELECT COUNT("district") FROM "north_carolina" WHERE "party"='Democratic' AND "elected"=1974;
|
1-1341568-34
|
What year was incumbent Martin Lancaster elected?
|
CREATE TABLE "north_carolina" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"opponent" text
);
|
SELECT MIN("elected") FROM "north_carolina" WHERE "incumbent"='Martin Lancaster';
|
1-1341568-34
|
What are the locations where the year of election is 1980?
|
CREATE TABLE "minnesota" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"opponent" text
);
|
SELECT "district" FROM "minnesota" WHERE "elected"=1980;
|
1-1341568-24
|
What location is Vin Weber from?
|
CREATE TABLE "minnesota" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"opponent" text
);
|
SELECT "district" FROM "minnesota" WHERE "incumbent"='Vin Weber';
|
1-1341568-24
|
What is Larry Combest's district?
|
CREATE TABLE "texas" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"opponent" text
);
|
SELECT "district" FROM "texas" WHERE "incumbent"='Larry Combest';
|
1-1341568-44
|
What is the status of incumbent Charles Stenholm?
|
CREATE TABLE "texas" (
"district" text,
"incumbent" text,
"party" text,
"elected" real,
"status" text,
"opponent" text
);
|
SELECT "status" FROM "texas" WHERE "incumbent"='Charles Stenholm';
|
1-1341568-44
|
How many incumbents represent district California 34?
|
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"elected" text,
"status" text,
"opponent" text
);
|
SELECT COUNT("incumbent") FROM "california" WHERE "district"='California 34';
|
1-1341568-6
|
What is the elected status of the Democratic party in 1989?
|
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"elected" text,
"status" text,
"opponent" text
);
|
SELECT "status" FROM "california" WHERE "party"='Democratic' AND "elected"='1989';
|
1-1341568-6
|
Who are the opponents in district California 9?
|
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"elected" text,
"status" text,
"opponent" text
);
|
SELECT "opponent" FROM "california" WHERE "district"='California 9';
|
1-1341568-6
|
Who are the incumbents elected in 1974?
|
CREATE TABLE "california" (
"district" text,
"incumbent" text,
"party" text,
"elected" text,
"status" text,
"opponent" text
);
|
SELECT "incumbent" FROM "california" WHERE "elected"='1974';
|
1-1341568-6
|
Which incumbent was first elected in 1958?
|
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1958;
|
1-1341577-36
|
Who are all the candidates who ran in the district where Ralph Regula is the incumbent?
|
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ralph Regula';
|
1-1341577-36
|
Which party does Del Latta belong to?
|
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Del Latta';
|
1-1341577-36
|
Which party does Tom Luken belong to?
|
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Tom Luken';
|
1-1341577-36
|
Who were all the candidates when incumbent was Tim Valentine?
|
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Tim Valentine';
|
1-1341577-34
|
Name the incumbent for first elected 1958
|
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1958;
|
1-1341577-22
|
What is the district for 1952?
|
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
|
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1952;
|
1-1341577-22
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.