instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What year was incumbent mark w. hannaford elected?
SELECT MIN First elected FROM table WHERE Incumbent = Mark W. Hannaford
Translate the following into a SQL query
what is the district where the incumbent is richard kelly?
SELECT District FROM table WHERE Incumbent = Richard Kelly
Translate the following into a SQL query
what is the result where the candidates is robert l. f. sikes (d) unopposed?
SELECT Result FROM table WHERE Candidates = Robert L. F. Sikes (D) Unopposed
Translate the following into a SQL query
who is the incumbent where the candidates is william v. chappell, jr. (d) unopposed?
SELECT Incumbent FROM table WHERE Candidates = William V. Chappell, Jr. (D) Unopposed
Translate the following into a SQL query
what is the district where the incumbent is james a. haley?
SELECT District FROM table WHERE Incumbent = James A. Haley
Translate the following into a SQL query
what is the district where the incumbent is richard kelly?
SELECT District FROM table WHERE Incumbent = Richard Kelly
Translate the following into a SQL query
who are the candidates where the district is florida 8?
SELECT Candidates FROM table WHERE District = Florida 8
Translate the following into a SQL query
what year was the first elected incumbant Sidney R. Yates?
SELECT First elected FROM table WHERE Incumbent = Sidney R. Yates
Translate the following into a SQL query
How many incumbents are there in district Louisiana 5?
SELECT COUNT Incumbent FROM table WHERE District = Louisiana 5
Translate the following into a SQL query
How many incumbents resulted in a lost renomination republican gain?
SELECT COUNT Incumbent FROM table WHERE Result = Lost renomination Republican gain
Translate the following into a SQL query
In which district is the incumbent John Breaux?
SELECT District FROM table WHERE Incumbent = John Breaux
Translate the following into a SQL query
What year was Otto Passman (d) unopposed first elected?
SELECT MAX First elected FROM table WHERE Candidates = Otto Passman (D) Unopposed
Translate the following into a SQL query
What were the results when the incumbent was John Breaux?
SELECT Result FROM table WHERE Incumbent = John Breaux
Translate the following into a SQL query
Name the candidates for texas 1
SELECT Candidates FROM table WHERE District = Texas 1
Translate the following into a SQL query
Name the incumbent for district texas 12
SELECT Incumbent FROM table WHERE District = Texas 12
Translate the following into a SQL query
Name the candidates for texas 20
SELECT Candidates FROM table WHERE District = Texas 20
Translate the following into a SQL query
what is the district with the candidates edward boland (d) unopposed?
SELECT District FROM table WHERE Candidates = Edward Boland (D) Unopposed
Translate the following into a SQL query
what is the party where the candidates are edward boland (d) unopposed?
SELECT Party FROM table WHERE Candidates = Edward Boland (D) Unopposed
Translate the following into a SQL query
what is the party where the incumbent is edward boland?
SELECT Party FROM table WHERE Incumbent = Edward Boland
Translate the following into a SQL query
How many times was the candidates paul tsongas (d) 60.6% paul w. cronin (r) 39.4%?
SELECT COUNT Incumbent FROM table WHERE Candidates = Paul Tsongas (D) 60.6% Paul W. Cronin (R) 39.4%
Translate the following into a SQL query
List all candidates in elections where the incumbent politician is Goodloe Byron.
SELECT Candidates FROM table WHERE Incumbent = Goodloe Byron
Translate the following into a SQL query
How many instances are there of party in the situation where Robert Bauman is the incumbent politician?
SELECT COUNT Party FROM table WHERE Incumbent = Robert Bauman
Translate the following into a SQL query
What is the party of the election in which Robert Bauman is the incumbent?
SELECT Party FROM table WHERE Incumbent = Robert Bauman
Translate the following into a SQL query
List all results where the voting district is Maryland 7.
SELECT Result FROM table WHERE District = Maryland 7
Translate the following into a SQL query
What are all the results where Robert Bauman is the incumbent politician?
SELECT Result FROM table WHERE Incumbent = Robert Bauman
Translate the following into a SQL query
Who were the candidates in the district won by the incumbent Del Latta?
SELECT Candidates FROM table WHERE Incumbent = Del Latta
Translate the following into a SQL query
Who were the candidates in the districts that was first elected in 1966?
SELECT Candidates FROM table WHERE First elected = 1966
Translate the following into a SQL query
Who was running for office in the California 10 district?
SELECT Candidates FROM table WHERE District = California 10
Translate the following into a SQL query
How many parties won the election in the California 23 district?
SELECT COUNT Party FROM table WHERE District = California 23
Translate the following into a SQL query
What republican candidate was first elected most recently?
SELECT MAX First elected FROM table WHERE Party = Republican
Translate the following into a SQL query
Phillip Landrum was first elected in 1952 from the ninth district of Georgia.
SELECT District FROM table WHERE First elected = 1952
Translate the following into a SQL query
What party did the incumbent from the Illinois 12 district belong to?
SELECT Party FROM table WHERE District = Illinois 12
Translate the following into a SQL query
Who was the democratic incumbent in the Illinois 11 district who was re-elected?
SELECT Incumbent FROM table WHERE Party = Democratic AND Result = Re-elected AND District = Illinois 11
Translate the following into a SQL query
Which incumbent was first elected in 1964?
SELECT Incumbent FROM table WHERE First elected = 1964
Translate the following into a SQL query
What party did the incumbent from the Illinois 1 district belong to?
SELECT Party FROM table WHERE District = Illinois 1
Translate the following into a SQL query
What candidates ran in the election with don fuqua?
SELECT Candidates FROM table WHERE Incumbent = Don Fuqua
Translate the following into a SQL query
How many incumbent candidates in the election featuring sam m. gibbons (d) unopposed?
SELECT COUNT Incumbent FROM table WHERE Candidates = Sam M. Gibbons (D) Unopposed
Translate the following into a SQL query
What is the last year that someone is first elected?
SELECT MAX First elected FROM table
Translate the following into a SQL query
Who was the incumbent in 1940?
SELECT Incumbent FROM table WHERE First elected = 1940
Translate the following into a SQL query
what is the party when the incumbent is sidney r. yates?
SELECT Party FROM table WHERE Incumbent = Sidney R. Yates
Translate the following into a SQL query
what was the year first elected for district illinois 7?
SELECT MAX First elected FROM table WHERE District = Illinois 7
Translate the following into a SQL query
how many times was the candidates phil crane (r) 58.0% edward a. warman (d) 42.0%?
SELECT COUNT Incumbent FROM table WHERE Candidates = Phil Crane (R) 58.0% Edward A. Warman (D) 42.0%
Translate the following into a SQL query
how many times was it the district illinois 18?
SELECT COUNT Candidates FROM table WHERE District = Illinois 18
Translate the following into a SQL query
who were the candidates when the incumbent was ed derwinski?
SELECT Candidates FROM table WHERE Incumbent = Ed Derwinski
Translate the following into a SQL query
When was the first elected when the party was republican and the candidate were robert h. michel (r) 66.1% rosa lee fox (d) 33.9%?
SELECT MIN First elected FROM table WHERE Party = Republican AND Candidates = Robert H. Michel (R) 66.1% Rosa Lee Fox (D) 33.9%
Translate the following into a SQL query
Who is the incumbent in district Texas 15?
SELECT Incumbent FROM table WHERE District = Texas 15
Translate the following into a SQL query
Which district elected incumbent Earle Cabell?
SELECT District FROM table WHERE Incumbent = Earle Cabell
Translate the following into a SQL query
What was the result when Ray Roberts was elected?
SELECT Result FROM table WHERE Incumbent = Ray Roberts
Translate the following into a SQL query
What is the highest year that a candidate was first elected?
SELECT MAX First elected FROM table
Translate the following into a SQL query
Incumbent Bill Harsha was the winner in an election in which the candidates were who?
SELECT Candidates FROM table WHERE Incumbent = Bill Harsha
Translate the following into a SQL query
What was the party of the first elected candidate in 1954?
SELECT Party FROM table WHERE First elected = 1954
Translate the following into a SQL query
How many districts does Donald D. Clancy represent?
SELECT COUNT District FROM table WHERE Incumbent = Donald D. Clancy
Translate the following into a SQL query
Which party is Lawrence H. Fountain part of?
SELECT Party FROM table WHERE Incumbent = Lawrence H. Fountain
Translate the following into a SQL query
Who was the first person elected in North Carolina 8?
SELECT First elected FROM table WHERE District = North Carolina 8
Translate the following into a SQL query
who was the candidate elected to the democratic party in 1952?
SELECT Candidates FROM table WHERE First elected = 1952 AND Party = Democratic
Translate the following into a SQL query
What district did Joe Waggonner belong to?
SELECT District FROM table WHERE Incumbent = Joe Waggonner
Translate the following into a SQL query
What is the name of the incumbent who was first eleccted in 1940?
SELECT Incumbent FROM table WHERE First elected = 1940
Translate the following into a SQL query
What party does incumbent edwin reinecke represent?
SELECT Party FROM table WHERE Incumbent = Edwin Reinecke
Translate the following into a SQL query
Who were the candidates in the election that featured incumbent don edwards?
SELECT Candidates FROM table WHERE Incumbent = Don Edwards
Translate the following into a SQL query
Who's the incumbent of Indiana 4 district?
SELECT Incumbent FROM table WHERE District = Indiana 4
Translate the following into a SQL query
Who's the incumbent of the district with first election held in 1950?
SELECT Incumbent FROM table WHERE First elected = 1950
Translate the following into a SQL query
Who was featured in the election of charles edward bennett redistricted from 2nd?
SELECT Candidates FROM table WHERE Incumbent = Charles Edward Bennett Redistricted from 2nd
Translate the following into a SQL query
Name the first elected for the republican party
SELECT First elected FROM table WHERE Party = Republican
Translate the following into a SQL query
Name the district with philip philbin
SELECT District FROM table WHERE Incumbent = Philip Philbin
Translate the following into a SQL query
Name the party with edward boland
SELECT Party FROM table WHERE Incumbent = Edward Boland
Translate the following into a SQL query
What was the district who had their first elected in 1966?
SELECT District FROM table WHERE First elected = 1966
Translate the following into a SQL query
Who was the candidate when the incumbent was Richard C. White?
SELECT Candidates FROM table WHERE Incumbent = Richard C. White
Translate the following into a SQL query
What district did Donald Ray Matthews belong to?
SELECT District FROM table WHERE Incumbent = Donald Ray Matthews
Translate the following into a SQL query
What party did Don Fuqua belong to?
SELECT Party FROM table WHERE Incumbent = Don Fuqua
Translate the following into a SQL query
How many parties won the election in the Louisiana 5 district?
SELECT COUNT Party FROM table WHERE District = Louisiana 5
Translate the following into a SQL query
How many candidates were elected in the Louisiana 4 district?
SELECT COUNT First elected FROM table WHERE District = Louisiana 4
Translate the following into a SQL query
Who was the winner in the Louisiana 7 district?
SELECT Incumbent FROM table WHERE District = Louisiana 7
Translate the following into a SQL query
what's party with district being tennessee 3
SELECT Party FROM table WHERE District = Tennessee 3
Translate the following into a SQL query
how many party with district being tennessee 1
SELECT COUNT Party FROM table WHERE District = Tennessee 1
Translate the following into a SQL query
what's party with district  being tennessee 3
SELECT Party FROM table WHERE District = Tennessee 3
Translate the following into a SQL query
how many incumbent with district  being tennessee 5
SELECT COUNT Incumbent FROM table WHERE District = Tennessee 5
Translate the following into a SQL query
what's incumbent with district being tennessee 5
SELECT Incumbent FROM table WHERE District = Tennessee 5
Translate the following into a SQL query
Who ran in the race for Jack Brooks' seat?
SELECT Candidates FROM table WHERE Incumbent = Jack Brooks
Translate the following into a SQL query
which section did seymour halpern run in
SELECT District FROM table WHERE Incumbent = Seymour Halpern
Translate the following into a SQL query
What district is incumbent albert w. johnson from?
SELECT District FROM table WHERE Incumbent = Albert W. Johnson
Translate the following into a SQL query
How many times was frank m. clark the incumbent?
SELECT COUNT Result FROM table WHERE Incumbent = Frank M. Clark
Translate the following into a SQL query
What district is incumbent elmer j. holland from?
SELECT District FROM table WHERE Incumbent = Elmer J. Holland
Translate the following into a SQL query
To which party does Frank T. Bow belong?
SELECT Party FROM table WHERE Incumbent = Frank T. Bow
Translate the following into a SQL query
Who ran in the race for the seat of incumbent Carl W. Rich?
SELECT Candidates FROM table WHERE Incumbent = Carl W. Rich
Translate the following into a SQL query
In which district is the incumbent Carl W. Rich?
SELECT District FROM table WHERE Incumbent = Carl W. Rich
Translate the following into a SQL query
Name the candidates where incumbent Carl Vinson is?
SELECT Candidates FROM table WHERE Incumbent = Carl Vinson
Translate the following into a SQL query
Name the candidates for massachusetts 8
SELECT Candidates FROM table WHERE District = Massachusetts 8
Translate the following into a SQL query
What candidates were in the election when a republican was re-elected?
SELECT Candidates FROM table WHERE Result = Re-elected AND Party = Republican
Translate the following into a SQL query
What district is incumbent frank chelf from?
SELECT District FROM table WHERE Incumbent = Frank Chelf
Translate the following into a SQL query
How many districts represented Edwin E. Willis?
SELECT COUNT District FROM table WHERE Incumbent = Edwin E. Willis
Translate the following into a SQL query
Who were all the candidates when the first elected year was 1961?
SELECT Candidates FROM table WHERE First elected = 1961
Translate the following into a SQL query
What party did Hale Boggs belong to?
SELECT Party FROM table WHERE Incumbent = Hale Boggs
Translate the following into a SQL query
what is the political affiliation of the texas 12 district
SELECT Party FROM table WHERE District = Texas 12
Translate the following into a SQL query
how many voted in the texas 6 section
SELECT First elected FROM table WHERE District = Texas 6
Translate the following into a SQL query
what is the political affiliation of ray roberts
SELECT Party FROM table WHERE Incumbent = Ray Roberts
Translate the following into a SQL query
What district featured an election between james a. byrne (d) 59.3% joseph r. burns (r) 40.7%?
SELECT District FROM table WHERE Candidates = James A. Byrne (D) 59.3% Joseph R. Burns (R) 40.7%
Translate the following into a SQL query
Name the candidates for massachusetts 6
SELECT Candidates FROM table WHERE District = Massachusetts 6
Translate the following into a SQL query
Name the result for massachusetts 3
SELECT Result FROM table WHERE District = Massachusetts 3
Translate the following into a SQL query
Name the candidate first elected in 1942
SELECT Candidates FROM table WHERE First elected = 1942
Translate the following into a SQL query
Name the party for massachusetts 3
SELECT Party FROM table WHERE District = Massachusetts 3