instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
What is the party where the incumbent is overton brooks?
SELECT Party FROM table WHERE Incumbent = Overton Brooks
Translate the following into a SQL query
who athe party where district is louisiana 2?
SELECT Party FROM table WHERE District = Louisiana 2
Translate the following into a SQL query
who is the candidate where district is louisiana 3?
SELECT Candidates FROM table WHERE District = Louisiana 3
Translate the following into a SQL query
what is the minimum number first elected to district louisiana 5?
SELECT MIN First elected FROM table WHERE District = Louisiana 5
Translate the following into a SQL query
What was the result when incumbent Tom Steed was elected?
SELECT Result FROM table WHERE Incumbent = Tom Steed
Translate the following into a SQL query
What was the candidates for hardie scott
SELECT Candidates FROM table WHERE Incumbent = Hardie Scott
Translate the following into a SQL query
What is the number of candidates for pennsylvania 3
SELECT COUNT Candidates FROM table WHERE District = Pennsylvania 3
Translate the following into a SQL query
What is the number of candidates for pennsylvania 21
SELECT COUNT Candidates FROM table WHERE District = Pennsylvania 21
Translate the following into a SQL query
What is the party for first elected 1948 for william t. granahan
SELECT Party FROM table WHERE First elected = 1948 AND Incumbent = William T. Granahan
Translate the following into a SQL query
How many candidates were there in the race where Cecil R. King is the incumbent?
SELECT COUNT Candidates FROM table WHERE Incumbent = Cecil R. King
Translate the following into a SQL query
How many districts have an incumbent first elected in 1944?
SELECT COUNT District FROM table WHERE First elected = 1944
Translate the following into a SQL query
Who was the incumbent in the Illinois 17 district?
SELECT Incumbent FROM table WHERE District = Illinois 17
Translate the following into a SQL query
How many people on this list are named thomas abernethy?
SELECT COUNT Candidates FROM table WHERE Incumbent = Thomas Abernethy
Translate the following into a SQL query
How many times was w. arthur winstead first elected?
SELECT COUNT First elected FROM table WHERE Incumbent = W. Arthur Winstead
Translate the following into a SQL query
How many times was william m. colmer winstead first elected?
SELECT COUNT First elected FROM table WHERE Incumbent = William M. Colmer
Translate the following into a SQL query
What was the result of the election with jamie l. whitten?
SELECT Result FROM table WHERE Incumbent = Jamie L. Whitten
Translate the following into a SQL query
What candidate was re-elected and was first elected in 1942?
SELECT Candidates FROM table WHERE Result = Re-elected AND First elected = 1942
Translate the following into a SQL query
Who are the candidates in the election in the Ohio 9 district?
SELECT Candidates FROM table WHERE District = Ohio 9
Translate the following into a SQL query
What year was incumbent Michael A. Feighan first elected?
SELECT MIN First elected FROM table WHERE Incumbent = Michael A. Feighan
Translate the following into a SQL query
What party does the incumbent from the Ohio 5 district belong to?
SELECT Party FROM table WHERE District = Ohio 5
Translate the following into a SQL query
What party does the incumbent from the Ohio 20 district belong to?
SELECT Party FROM table WHERE District = Ohio 20
Translate the following into a SQL query
What party does the incumbent from the Ohio 7 district belong to?
SELECT Party FROM table WHERE District = Ohio 7
Translate the following into a SQL query
Who is the candidate for the district Arkansas 2?
SELECT Candidates FROM table WHERE District = Arkansas 2
Translate the following into a SQL query
Which district has the incumbent Wilbur Mills and a re-elected result?
SELECT District FROM table WHERE Result = Re-elected AND Incumbent = Wilbur Mills
Translate the following into a SQL query
What year was first-elected for the row of Texas 2?
SELECT First elected FROM table WHERE District = Texas 2
Translate the following into a SQL query
What was the result for the incumbent Milton H. West?
SELECT Result FROM table WHERE Incumbent = Milton H. West
Translate the following into a SQL query
What party is associated with Texas 2?
SELECT Party FROM table WHERE District = Texas 2
Translate the following into a SQL query
When the result is retired to run for U.S. Senate Democratic Hold, who is the candidate?
SELECT Candidates FROM table WHERE Result = Retired to run for U.S. Senate Democratic hold
Translate the following into a SQL query
What candidate has a result of being re-elected in the Texas 7 District?
SELECT Candidates FROM table WHERE Result = Re-elected AND District = Texas 7
Translate the following into a SQL query
Which party is associated with the candidate Albert Sidney Camp (D) unopposed?
SELECT COUNT Party FROM table WHERE Candidates = Albert Sidney Camp (D) Unopposed
Translate the following into a SQL query
Which district is associated with the incumbent Carl Vinson?
SELECT Candidates FROM table WHERE Incumbent = Carl Vinson
Translate the following into a SQL query
Which candidates are associated with the Georgia 7 district?
SELECT Candidates FROM table WHERE District = Georgia 7
Translate the following into a SQL query
What candidate is associated with the Georgia 4 district?
SELECT Candidates FROM table WHERE District = Georgia 4
Translate the following into a SQL query
What year was incumbent joe b. bates first elected?
SELECT First elected FROM table WHERE Incumbent = Joe B. Bates
Translate the following into a SQL query
What party is incumbent virgil chapman from?
SELECT Party FROM table WHERE Incumbent = Virgil Chapman
Translate the following into a SQL query
What year was clair engle first elected?
SELECT First elected FROM table WHERE Incumbent = Clair Engle
Translate the following into a SQL query
what is the result of the first elected is 1943?
SELECT Result FROM table WHERE First elected = 1943
Translate the following into a SQL query
what the the end number where albert rains was running
SELECT COUNT Result FROM table WHERE Incumbent = Albert Rains
Translate the following into a SQL query
what the was the final in which frank w. boykin was running
SELECT Result FROM table WHERE Incumbent = Frank W. Boykin
Translate the following into a SQL query
Name the total number of first elected for sol bloom
SELECT COUNT First elected FROM table WHERE Incumbent = Sol Bloom
Translate the following into a SQL query
Name the candidates for ellsworth b. buck
SELECT Candidates FROM table WHERE Incumbent = Ellsworth B. Buck
Translate the following into a SQL query
What are the candidates for new york 35?
SELECT Candidates FROM table WHERE District = New York 35
Translate the following into a SQL query
What is the party for new york 20?
SELECT Party FROM table WHERE District = New York 20
Translate the following into a SQL query
What was the result of the election featuring r. ewing thomason (d) unopposed?
SELECT Result FROM table WHERE Candidates = R. Ewing Thomason (D) Unopposed
Translate the following into a SQL query
What district is eugene worley from?
SELECT District FROM table WHERE Incumbent = Eugene Worley
Translate the following into a SQL query
how many result with candidates being richard j. welch (r) unopposed
SELECT COUNT Result FROM table WHERE Candidates = Richard J. Welch (R) Unopposed
Translate the following into a SQL query
what's the result with incumbent being jack z. anderson
SELECT Result FROM table WHERE Incumbent = Jack Z. Anderson
Translate the following into a SQL query
what's the district with result being re-elected and candidates being clarence f. lea (d) unopposed
SELECT District FROM table WHERE Result = Re-elected AND Candidates = Clarence F. Lea (D) Unopposed
Translate the following into a SQL query
what's the first elected with incumbent being clair engle
SELECT First elected FROM table WHERE Incumbent = Clair Engle
Translate the following into a SQL query
who is the the candidates with incumbent being alfred j. elliott
SELECT Candidates FROM table WHERE Incumbent = Alfred J. Elliott
Translate the following into a SQL query
who is the the incumbent with candidates being jack z. anderson (r) unopposed
SELECT Incumbent FROM table WHERE Candidates = Jack Z. Anderson (R) Unopposed
Translate the following into a SQL query
How many parties does incumbent carl vinson represent?
SELECT COUNT Party FROM table WHERE Incumbent = Carl Vinson
Translate the following into a SQL query
How many parties does incumbent stephen pace represent?
SELECT COUNT Party FROM table WHERE Incumbent = Stephen Pace
Translate the following into a SQL query
Who were the candidates when Noah M. Mason was incumbent?
SELECT Candidates FROM table WHERE Incumbent = Noah M. Mason
Translate the following into a SQL query
In what year was Leo E. Allen first elected?
SELECT First elected FROM table WHERE Incumbent = Leo E. Allen
Translate the following into a SQL query
Who were the candidates when Sid Simpson was the incumbent?
SELECT Candidates FROM table WHERE Incumbent = Sid Simpson
Translate the following into a SQL query
What was the result of Robert L. F. Sikes' election bid?
SELECT Result FROM table WHERE Incumbent = Robert L. F. Sikes
Translate the following into a SQL query
How many districts have an incumbent first elected in 1940?
SELECT COUNT District FROM table WHERE First elected = 1940
Translate the following into a SQL query
How many races involve incumbent Pat Cannon?
SELECT COUNT Result FROM table WHERE Incumbent = Pat Cannon
Translate the following into a SQL query
Which incumbent was first elected in 1940?
SELECT Incumbent FROM table WHERE First elected = 1940
Translate the following into a SQL query
What is the first electedfor district ohio 18
SELECT First elected FROM table WHERE District = Ohio 18
Translate the following into a SQL query
What is the incumbent for ohio 12?
SELECT Incumbent FROM table WHERE District = Ohio 12
Translate the following into a SQL query
Who are all of the candidates in the election featuring james r. domengeaux?
SELECT Candidates FROM table WHERE Incumbent = James R. Domengeaux
Translate the following into a SQL query
Name all the candidates that ran for the seat where Harold D. Cooley is the incumbent?
SELECT Candidates FROM table WHERE Incumbent = Harold D. Cooley
Translate the following into a SQL query
How many partys have a candidate first elected in 1923?
SELECT COUNT Party FROM table WHERE First elected = 1923
Translate the following into a SQL query
what was the number of candidates when Leon Sacks was incumbent?
SELECT COUNT Candidates FROM table WHERE Incumbent = Leon Sacks
Translate the following into a SQL query
What was the result in Pennsylvania 13?
SELECT Result FROM table WHERE District = Pennsylvania 13
Translate the following into a SQL query
Who was the incumbent in Pennsylvania 27?
SELECT Incumbent FROM table WHERE District = Pennsylvania 27
Translate the following into a SQL query
Who are the contenders In the New York 19 polling area race?
SELECT Candidates FROM table WHERE District = New York 19
Translate the following into a SQL query
How many polling areas are there with John Taber as the sitting Representative?
SELECT COUNT District FROM table WHERE Incumbent = John Taber
Translate the following into a SQL query
Who are the contenders In the New York 29 polling area race?
SELECT Candidates FROM table WHERE District = New York 29
Translate the following into a SQL query
Which political party is involved where John J. Delaney is the sitting Representative?
SELECT Party FROM table WHERE Incumbent = John J. Delaney
Translate the following into a SQL query
Who is the sitting Representative In the New York 10 polling area race?
SELECT Incumbent FROM table WHERE District = New York 10
Translate the following into a SQL query
How many sitting Representatives are there in the New York 10 polling area?
SELECT COUNT Incumbent FROM table WHERE District = New York 10
Translate the following into a SQL query
What is the district for james p. richards?
SELECT District FROM table WHERE Incumbent = James P. Richards
Translate the following into a SQL query
What is the candidate for south carolina 4?
SELECT Candidates FROM table WHERE District = South Carolina 4
Translate the following into a SQL query
What is the candidate for south carolina 3?
SELECT Candidates FROM table WHERE District = South Carolina 3
Translate the following into a SQL query
What is the first elected for south carolina 4?
SELECT First elected FROM table WHERE District = South Carolina 4
Translate the following into a SQL query
How many candidates were in the election featuring brooks hays (d) unopposed?
SELECT COUNT First elected FROM table WHERE Candidates = Brooks Hays (D) Unopposed
Translate the following into a SQL query
What party does clyde t. ellis represent?
SELECT Party FROM table WHERE Incumbent = Clyde T. Ellis
Translate the following into a SQL query
how many party with candidates being john j. phillips (r) 57.6% n. e. west (d) 42.4%
SELECT COUNT Party FROM table WHERE Candidates = John J. Phillips (R) 57.6% N. E. West (D) 42.4%
Translate the following into a SQL query
what's the result with dbeingtrict being california 10
SELECT Result FROM table WHERE District = California 10
Translate the following into a SQL query
what's the party with first elected being 1926
SELECT Party FROM table WHERE First elected = 1926
Translate the following into a SQL query
what's the incumbent with result being new seat republican gain
SELECT Incumbent FROM table WHERE Result = New seat Republican gain
Translate the following into a SQL query
what was the maxiumum for the first elected?
SELECT MAX First elected FROM table
Translate the following into a SQL query
what's the first elected with incumbent being joe starnes
SELECT First elected FROM table WHERE Incumbent = Joe Starnes
Translate the following into a SQL query
what's the first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003%
SELECT First elected FROM table WHERE Candidates = Joe Starnes (D) 100.0% George Bogus ( W/I ) 0.003%
Translate the following into a SQL query
how many party with dbeingtrict being alabama 6
SELECT COUNT Party FROM table WHERE District = Alabama 6
Translate the following into a SQL query
what are all the district with incumbent being sam hobbs
SELECT District FROM table WHERE Incumbent = Sam Hobbs
Translate the following into a SQL query
what are all the result with district being alabama 1
SELECT Result FROM table WHERE District = Alabama 1
Translate the following into a SQL query
what is the maximum first elected with district being alabama 5
SELECT MAX First elected FROM table WHERE District = Alabama 5
Translate the following into a SQL query
What was the result in the Tennessee 6 district election?
SELECT Result FROM table WHERE District = Tennessee 6
Translate the following into a SQL query
In how many districts was the incumbent Estes Kefauver?
SELECT COUNT District FROM table WHERE Incumbent = Estes Kefauver
Translate the following into a SQL query
What is the latest year any of the incumbents were first elected?
SELECT MAX First elected FROM table
Translate the following into a SQL query
What was the result of the Tennessee 2 district election?
SELECT Result FROM table WHERE District = Tennessee 2
Translate the following into a SQL query
What district is incumbent robert l. mouton from?
SELECT District FROM table WHERE Incumbent = Robert L. Mouton
Translate the following into a SQL query
William Fadjo Cravens is the only candidate who was first elected in 1939.
SELECT COUNT First elected FROM table WHERE Incumbent = William Fadjo Cravens
Translate the following into a SQL query
William Fadjo Cravens serves the fourth district of Arkansas.
SELECT District FROM table WHERE Incumbent = William Fadjo Cravens
Translate the following into a SQL query
what's the party with district being alabama 3
SELECT Party FROM table WHERE District = Alabama 3
Translate the following into a SQL query
what's the incumbent with candidates being sam hobbs (d) 88.2% c. w. mckay (r) 11.8%
SELECT Incumbent FROM table WHERE Candidates = Sam Hobbs (D) 88.2% C. W. McKay (R) 11.8%