instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
Name the first elected for texas 6 district
SELECT First elected FROM table WHERE District = Texas 6
Translate the following into a SQL query
Name the incumbent for texas 22 district
SELECT Incumbent FROM table WHERE District = Texas 22
Translate the following into a SQL query
How did the election in the Florida 14 district end?
SELECT Results FROM table WHERE District = Florida 14
Translate the following into a SQL query
Who's the incumbent of Florida 12 district?
SELECT Incumbent FROM table WHERE District = Florida 12
Translate the following into a SQL query
Who is the incumbent of Florida 9?
SELECT Incumbent FROM table WHERE District = Florida 9
Translate the following into a SQL query
Who's the incumbent in Florida 6?
SELECT Incumbent FROM table WHERE District = Florida 6
Translate the following into a SQL query
What party does Bill McCollum belong to?
SELECT Party FROM table WHERE Incumbent = Bill McCollum
Translate the following into a SQL query
What are the results in the county with Peter Deutsch as a candidate?
SELECT Results FROM table WHERE Incumbent = Peter Deutsch
Translate the following into a SQL query
How did the election end for Robert Wexler?
SELECT Results FROM table WHERE Incumbent = Robert Wexler
Translate the following into a SQL query
What party was the winner in the district Maryland 6?
SELECT Party FROM table WHERE District = Maryland 6
Translate the following into a SQL query
Who run for office in district Maryland 3?
SELECT Candidates FROM table WHERE District = Maryland 3
Translate the following into a SQL query
List the candidates in district Maryland 1 where the republican party won.
SELECT Candidates FROM table WHERE Party = Republican AND District = Maryland 1
Translate the following into a SQL query
When did the elections take place in district Maryland 2?
SELECT MIN First elected FROM table WHERE District = Maryland 2
Translate the following into a SQL query
What party is Frank Lobiondo a member of?
SELECT Party FROM table WHERE Incumbent = Frank LoBiondo
Translate the following into a SQL query
Who were the candidates in the district whose incumbent is Bill Pascrell?
SELECT Candidates FROM table WHERE Incumbent = Bill Pascrell
Translate the following into a SQL query
What is the party of the district incumbent Jim Saxton?
SELECT Party FROM table WHERE Incumbent = Jim Saxton
Translate the following into a SQL query
What party is John McHugh a member of?
SELECT Party FROM table WHERE Incumbent = John McHugh
Translate the following into a SQL query
What's the party elected in the district that first elected in 1990?
SELECT Party FROM table WHERE First elected = 1990
Translate the following into a SQL query
What's the first elected year of the district that Ed Towns is an incumbent of?
SELECT First elected FROM table WHERE Incumbent = Ed Towns
Translate the following into a SQL query
How many elections have resulted in retired democratic hold?
SELECT COUNT Party FROM table WHERE Results = Retired Democratic hold
Translate the following into a SQL query
What were the candidates in the district that first elected in 1980?
SELECT Candidates FROM table WHERE First elected = 1980
Translate the following into a SQL query
When was Chaka Fattah first elected in the Pennsylvania 2 district?
SELECT First elected FROM table WHERE District = Pennsylvania 2
Translate the following into a SQL query
How many incumbents were first elected in 1984?
SELECT COUNT Incumbent FROM table WHERE First elected = 1984
Translate the following into a SQL query
When was incumbent Bud Shuster first elected?
SELECT First elected FROM table WHERE Incumbent = Bud Shuster
Translate the following into a SQL query
How many candidates ran in the election where Mike Doyle was the incumbent?
SELECT COUNT Candidates FROM table WHERE Incumbent = Mike Doyle
Translate the following into a SQL query
Incumbent Tim Holden belonged to what party?
SELECT Party FROM table WHERE Incumbent = Tim Holden
Translate the following into a SQL query
In what district was Tim Holden the incumbent?
SELECT District FROM table WHERE Incumbent = Tim Holden
Translate the following into a SQL query
Which incumbent was first elected in 1984?
SELECT Incumbent FROM table WHERE First elected = 1984
Translate the following into a SQL query
When was the incumbent in the Tennessee 4 district first elected?
SELECT First elected FROM table WHERE District = Tennessee 4
Translate the following into a SQL query
Who are the candidates in the Tennessee 3 district election?
SELECT Candidates FROM table WHERE District = Tennessee 3
Translate the following into a SQL query
What year was Bob Clement first elected?
SELECT MIN First elected FROM table WHERE Incumbent = Bob Clement
Translate the following into a SQL query
List all the candidates for the seat where the incumbent is Sam Gibbons?
SELECT Candidates FROM table WHERE Incumbent = Sam Gibbons
Translate the following into a SQL query
Who were the candidates in district Wisconsin 4?
SELECT Candidates FROM table WHERE District = Wisconsin 4
Translate the following into a SQL query
Who's the incumbent in the district that first elected in 1969?
SELECT Incumbent FROM table WHERE First elected = 1969
Translate the following into a SQL query
Who's the incumbent of district Wisconsin 5?
SELECT Incumbent FROM table WHERE District = Wisconsin 5
Translate the following into a SQL query
How many districts does gary condit represent?
SELECT COUNT District FROM table WHERE Incumbent = Gary Condit
Translate the following into a SQL query
What party was first elected in 1974?
SELECT Party FROM table WHERE First elected = 1974
Translate the following into a SQL query
What district is bill thomas from?
SELECT District FROM table WHERE Incumbent = Bill Thomas
Translate the following into a SQL query
What district is bill thomas from?
SELECT District FROM table WHERE Incumbent = Bill Thomas
Translate the following into a SQL query
Who was the incumbent of district Georgia 2?
SELECT Incumbent FROM table WHERE District = Georgia 2
Translate the following into a SQL query
What district is Mac Collins an incumbent in?
SELECT District FROM table WHERE Incumbent = Mac Collins
Translate the following into a SQL query
What's the first elected year of the district who's been the last one to do so?
SELECT MAX First elected FROM table
Translate the following into a SQL query
Who were the candidates in the district where Charlie Norwood is the incumbent?
SELECT Candidates FROM table WHERE Incumbent = Charlie Norwood
Translate the following into a SQL query
Which result did the Republican have with the incumbent, Billy Tauzin?
SELECT Result FROM table WHERE Party = Republican AND Incumbent = Billy Tauzin
Translate the following into a SQL query
How many districts was Robert Livingston incumbent in?
SELECT COUNT District FROM table WHERE Incumbent = Robert Livingston
Translate the following into a SQL query
What is the first election year listed?
SELECT MIN First elected FROM table
Translate the following into a SQL query
List all results in elections with Richard Baker as the incumbent.
SELECT Result FROM table WHERE Incumbent = Richard Baker
Translate the following into a SQL query
how many party with district being washington 7
SELECT COUNT Party FROM table WHERE District = Washington 7
Translate the following into a SQL query
what's the latest first elected year
SELECT MAX First elected FROM table
Translate the following into a SQL query
what's the result with district being washington 7
SELECT Result FROM table WHERE District = Washington 7
Translate the following into a SQL query
what being the minimum first elected with district being washington 7
SELECT MIN First elected FROM table WHERE District = Washington 7
Translate the following into a SQL query
what's the result for first elected in 1948 , 1964
SELECT Result FROM table WHERE First elected = 1948 , 1964
Translate the following into a SQL query
what's the first elected with district illinois 18
SELECT First elected FROM table WHERE District = Illinois 18
Translate the following into a SQL query
what's the party with candidates  jerry weller (r) 51.77% clem balanoff (d) 48.23%
SELECT Party FROM table WHERE Candidates = Jerry Weller (R) 51.77% Clem Balanoff (D) 48.23%
Translate the following into a SQL query
what's the party for the first elected in 1980
SELECT Party FROM table WHERE First elected = 1980
Translate the following into a SQL query
what's the result with district illinois 15
SELECT Result FROM table WHERE District = Illinois 15
Translate the following into a SQL query
what's the total number of candidates for first elected in 1948 , 1964
SELECT COUNT Candidates FROM table WHERE First elected = 1948 , 1964
Translate the following into a SQL query
Name thedistrict for 1994
SELECT District FROM table WHERE First elected = 1994
Translate the following into a SQL query
Name the result for New York 11
SELECT Result FROM table WHERE District = New York 11
Translate the following into a SQL query
Name the number of first elected for new york 11
SELECT COUNT First elected FROM table WHERE District = New York 11
Translate the following into a SQL query
Name the first elected for new york 1
SELECT COUNT First elected FROM table WHERE District = New York 1
Translate the following into a SQL query
What year was Larry combest elected
SELECT First elected FROM table WHERE Incumbent = Larry Combest
Translate the following into a SQL query
To what district does Bill Hefner belong?
SELECT District FROM table WHERE Incumbent = Bill Hefner
Translate the following into a SQL query
Who ran unsuccessfully against Bill Hefner?
SELECT Opponent FROM table WHERE Incumbent = Bill Hefner
Translate the following into a SQL query
How many districts are respresented by Alex McMillan?
SELECT COUNT Status FROM table WHERE Incumbent = Alex McMillan
Translate the following into a SQL query
What party is Sanford Bishop a member of?
SELECT Party FROM table WHERE Incumbent = Sanford Bishop
Translate the following into a SQL query
What party won in the district Georgia7?
SELECT Party FROM table WHERE District = Georgia7
Translate the following into a SQL query
What's Georgia5's first elected year?
SELECT MAX First elected FROM table WHERE District = Georgia5
Translate the following into a SQL query
Who opposed Marty Meehan in each election?
SELECT Opponent FROM table WHERE Incumbent = Marty Meehan
Translate the following into a SQL query
Who are the opponents in Massachusetts5 district?
SELECT Opponent FROM table WHERE District = Massachusetts5
Translate the following into a SQL query
What parties are represented in Massachusetts4 district?
SELECT Party FROM table WHERE District = Massachusetts4
Translate the following into a SQL query
Who is the incumbent in district Massachusetts7?
SELECT Incumbent FROM table WHERE District = Massachusetts7
Translate the following into a SQL query
how many first elected with district being new york2
SELECT COUNT First elected FROM table WHERE District = New York2
Translate the following into a SQL query
how many district with candidates being eliot l. engel (d) 85.2% martin richman (r) 14.8%
SELECT COUNT District FROM table WHERE Candidates = Eliot L. Engel (D) 85.2% Martin Richman (R) 14.8%
Translate the following into a SQL query
how many candidates with party being democratic and dbeingtrict being new york5
SELECT COUNT Candidates FROM table WHERE Party = Democratic AND District = New York5
Translate the following into a SQL query
how many first elected with result being re-elected and incumbent being gary ackerman redistricted from the 7th district
SELECT COUNT First elected FROM table WHERE Result = Re-elected AND Incumbent = Gary Ackerman Redistricted from the 7th district
Translate the following into a SQL query
What party does ron klink represent?
SELECT Party FROM table WHERE Incumbent = Ron Klink
Translate the following into a SQL query
Who was in the election that was for incumbent bud shuster's seat?
SELECT Opponent FROM table WHERE Incumbent = Bud Shuster
Translate the following into a SQL query
What district had someone first elected in 1982?
SELECT District FROM table WHERE First elected = 1982
Translate the following into a SQL query
How many republican incumbents first elected in 1974?
SELECT COUNT Incumbent FROM table WHERE Party = Republican AND First elected = 1974
Translate the following into a SQL query
What was the result of the election where william f. goodling was the incumbent?
SELECT Status FROM table WHERE Incumbent = William F. Goodling
Translate the following into a SQL query
What party did incumbent Howard Coble belong to?
SELECT Party FROM table WHERE Incumbent = Howard Coble
Translate the following into a SQL query
What party did incumbent Stephen L. Neal belong to?
SELECT Party FROM table WHERE Incumbent = Stephen L. Neal
Translate the following into a SQL query
In how many districts was the democratic incumbent elected in 1974?
SELECT COUNT District FROM table WHERE Party = Democratic AND Elected = 1974
Translate the following into a SQL query
What year was incumbent Martin Lancaster elected?
SELECT MIN Elected FROM table WHERE Incumbent = Martin Lancaster
Translate the following into a SQL query
What are the locations where the year of election is 1980?
SELECT District FROM table WHERE Elected = 1980
Translate the following into a SQL query
What location is Vin Weber from?
SELECT District FROM table WHERE Incumbent = Vin Weber
Translate the following into a SQL query
What is Larry Combest's district?
SELECT District FROM table WHERE Incumbent = Larry Combest
Translate the following into a SQL query
What is the status of incumbent Charles Stenholm?
SELECT Status FROM table WHERE Incumbent = Charles Stenholm
Translate the following into a SQL query
How many incumbents represent district California 34?
SELECT COUNT Incumbent FROM table WHERE District = California 34
Translate the following into a SQL query
What is the elected status of the Democratic party in 1989?
SELECT Status FROM table WHERE Party = Democratic AND Elected = 1989
Translate the following into a SQL query
Who are the opponents in district California 9?
SELECT Opponent FROM table WHERE District = California 9
Translate the following into a SQL query
Who are the incumbents elected in 1974?
SELECT Incumbent FROM table WHERE Elected = 1974
Translate the following into a SQL query
Which incumbent was first elected in 1958?
SELECT Incumbent FROM table WHERE First elected = 1958
Translate the following into a SQL query
Who are all the candidates who ran in the district where Ralph Regula is the incumbent?
SELECT Candidates FROM table WHERE Incumbent = Ralph Regula
Translate the following into a SQL query
Which party does Del Latta belong to?
SELECT Party FROM table WHERE Incumbent = Del Latta
Translate the following into a SQL query
Which party does Tom Luken belong to?
SELECT Party FROM table WHERE Incumbent = Tom Luken
Translate the following into a SQL query
Who were all the candidates when incumbent was Tim Valentine?
SELECT Candidates FROM table WHERE Incumbent = Tim Valentine
Translate the following into a SQL query
Name the incumbent for first elected 1958
SELECT Incumbent FROM table WHERE First elected = 1958
Translate the following into a SQL query
What is the district for 1952?
SELECT District FROM table WHERE First elected = 1952