instruction
stringclasses
1 value
input
stringlengths
12
244
output
stringlengths
22
468
Translate the following into a SQL query
what's the party with incumbent being john sparkman
SELECT Party FROM table WHERE Incumbent = John Sparkman
Translate the following into a SQL query
how many dbeingtrict with candidates being william b. bankhead (d) 71.3% e. m. reed (r) 28.7%
SELECT COUNT District FROM table WHERE Candidates = William B. Bankhead (D) 71.3% E. M. Reed (R) 28.7%
Translate the following into a SQL query
what's the party with incumbent being william b. bankhead
SELECT Party FROM table WHERE Incumbent = William B. Bankhead
Translate the following into a SQL query
what's the district  with first elected being 1938
SELECT District FROM table WHERE First elected = 1938
Translate the following into a SQL query
How many incumbents were first elected in 1930?
SELECT COUNT Party FROM table WHERE First elected = 1930
Translate the following into a SQL query
In how many districts is the incumbent Dave E. Satterfield, Jr.
SELECT COUNT Result FROM table WHERE Incumbent = Dave E. Satterfield, Jr.
Translate the following into a SQL query
What was the election result for the candidate first elected in 1918?
SELECT Result FROM table WHERE First elected = 1918
Translate the following into a SQL query
How many parties does william b. cravens represent?
SELECT COUNT Party FROM table WHERE Incumbent = William B. Cravens
Translate the following into a SQL query
What district had someone first elected in 1932?
SELECT District FROM table WHERE First elected = 1932
Translate the following into a SQL query
What candidates ran in the election when the incumbent was william j. driver?
SELECT Candidates FROM table WHERE Incumbent = William J. Driver
Translate the following into a SQL query
Who are all the candidates when Sam Rayburn was incumbent?
SELECT Candidates FROM table WHERE Incumbent = Sam Rayburn
Translate the following into a SQL query
What was the party that was frist elected in 1919?
SELECT Party FROM table WHERE First elected = 1919
Translate the following into a SQL query
When was incumbent Leo E. Allen first elected?
SELECT MIN First elected FROM table WHERE Incumbent = Leo E. Allen
Translate the following into a SQL query
Which district has a Republican elected?
SELECT District FROM table WHERE Party = Republican
Translate the following into a SQL query
How many districts does riley joseph wilson?
SELECT COUNT District FROM table WHERE Incumbent = Riley Joseph Wilson
Translate the following into a SQL query
How many districts for rené l. derouen?
SELECT COUNT District FROM table WHERE Incumbent = René L. DeRouen
Translate the following into a SQL query
Who are the candidates in the race where Wright Patman is the incumbent?
SELECT Candidates FROM table WHERE Incumbent = Wright Patman
Translate the following into a SQL query
What candidates ran in the election when john s. wood was the incumbent?
SELECT Candidates FROM table WHERE Incumbent = John S. Wood
Translate the following into a SQL query
What was the result of the election held in 1914?
SELECT Result FROM table WHERE First elected = 1914
Translate the following into a SQL query
How many first elections have Claude Fuller as incumbent?
SELECT COUNT First elected FROM table WHERE Incumbent = Claude Fuller
Translate the following into a SQL query
How many winners were there in the Georgia 1 district?
SELECT COUNT First elected FROM table WHERE District = Georgia 1
Translate the following into a SQL query
Who ran for office at the Georgia 4 district in this election?
SELECT Candidates FROM table WHERE District = Georgia 4
Translate the following into a SQL query
What district has Riley Joseph Wilson as the incumbent?
SELECT District FROM table WHERE Incumbent = Riley Joseph Wilson
Translate the following into a SQL query
What candidate is in Louisiana 6?
SELECT Candidates FROM table WHERE District = Louisiana 6
Translate the following into a SQL query
what happened during the election for Richard M. Kleberg?
SELECT Result FROM table WHERE Incumbent = Richard M. Kleberg
Translate the following into a SQL query
What year was the first election when Fritz G. Lanham was elected?
SELECT MAX First elected FROM table WHERE Incumbent = Fritz G. Lanham
Translate the following into a SQL query
What is the name of the candidate where the incumbent is named James P. Buchanan?
SELECT Candidates FROM table WHERE Incumbent = James P. Buchanan
Translate the following into a SQL query
What party is incumbent Oliver H. Cross?
SELECT Party FROM table WHERE Incumbent = Oliver H. Cross
Translate the following into a SQL query
what's the district with incumbent being william j. driver
SELECT District FROM table WHERE Incumbent = William J. Driver
Translate the following into a SQL query
what's the district with incumbent being john e. miller
SELECT District FROM table WHERE Incumbent = John E. Miller
Translate the following into a SQL query
how many incumbent with first elected being 1932
SELECT COUNT Incumbent FROM table WHERE First elected = 1932
Translate the following into a SQL query
who is the the incumbent with dbeingtrict being arkansas 1
SELECT Incumbent FROM table WHERE District = Arkansas 1
Translate the following into a SQL query
how many district  with incumbent being david delano glover
SELECT COUNT District FROM table WHERE Incumbent = David Delano Glover
Translate the following into a SQL query
who is the the incumbent with candidates being ben cravens (d) unopposed
SELECT Incumbent FROM table WHERE Candidates = Ben Cravens (D) Unopposed
Translate the following into a SQL query
What was the result in the election in which the incumbent was Denver S. Church?
SELECT Result FROM table WHERE Incumbent = Denver S. Church
Translate the following into a SQL query
What was the result in the election in which Ralph R. Eltse was the incumbent?
SELECT Result FROM table WHERE Incumbent = Ralph R. Eltse
Translate the following into a SQL query
Who was the candidate in the election in the California 8 district where the incumbent was first elected in 1932?
SELECT Candidates FROM table WHERE First elected = 1932 AND District = California 8
Translate the following into a SQL query
what are all the party with district being kansas 1
SELECT Party FROM table WHERE District = Kansas 1
Translate the following into a SQL query
what's the result with district being kansas 1
SELECT Result FROM table WHERE District = Kansas 1
Translate the following into a SQL query
who are the candidates with district being kansas 4
SELECT Candidates FROM table WHERE District = Kansas 4
Translate the following into a SQL query
what's the result with first elected being 1922
SELECT Result FROM table WHERE First elected = 1922
Translate the following into a SQL query
who is the the candidates with dbeingtrict being kansas 5
SELECT Candidates FROM table WHERE District = Kansas 5
Translate the following into a SQL query
how many first elected with district is kansas 3
SELECT COUNT First elected FROM table WHERE District = Kansas 3
Translate the following into a SQL query
What was the result of the election in the Arkansas 2 district?
SELECT Result FROM table WHERE District = Arkansas 2
Translate the following into a SQL query
What was the result of the election in the Arkansas 4 district?
SELECT Result FROM table WHERE District = Arkansas 4
Translate the following into a SQL query
How many candidates ran in the election in the Arkansas 4 district?
SELECT COUNT Candidates FROM table WHERE District = Arkansas 4
Translate the following into a SQL query
How many districts does william b. oliver represent?
SELECT COUNT District FROM table WHERE Incumbent = William B. Oliver
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
How many people were elected in 1929
SELECT COUNT Candidates FROM table WHERE First elected = 1929
Translate the following into a SQL query
how many people won in 1914
SELECT COUNT District FROM table WHERE First elected = 1914
Translate the following into a SQL query
Who won in 1927
SELECT Incumbent FROM table WHERE First elected = 1927
Translate the following into a SQL query
Name the number of incumbents for texas 12
SELECT COUNT Incumbent FROM table WHERE District = Texas 12
Translate the following into a SQL query
How many parties were represented for Charles R. Crisp?
SELECT COUNT Party FROM table WHERE Incumbent = Charles R. Crisp
Translate the following into a SQL query
In what district was the representative first elected in 1916?
SELECT District FROM table WHERE First elected = 1916
Translate the following into a SQL query
Who were the candidates in the 1922 entry?
SELECT Candidates FROM table WHERE First elected = 1922
Translate the following into a SQL query
In which district is James O'Connor the incumbent?
SELECT District FROM table WHERE Incumbent = James O'Connor
Translate the following into a SQL query
To which party does Riley Joseph Wilson belong?
SELECT Party FROM table WHERE Incumbent = Riley Joseph Wilson
Translate the following into a SQL query
How many of the first elected were listed when Hatton W. Sumners was incumbent and re-elected?
SELECT COUNT First elected FROM table WHERE Result = Re-elected AND Incumbent = Hatton W. Sumners
Translate the following into a SQL query
What was the result in the election where the incumbent was Finis J. Garrett?
SELECT Result FROM table WHERE Incumbent = Finis J. Garrett
Translate the following into a SQL query
In what district was the incumbent Cordell hull?
SELECT District FROM table WHERE Incumbent = Cordell Hull
Translate the following into a SQL query
Who were the candidates in the election in the Tennessee 9 district?
SELECT Candidates FROM table WHERE District = Tennessee 9
Translate the following into a SQL query
What was the result of the election featuring james a. gallivan (d) unopposed?
SELECT Result FROM table WHERE Candidates = James A. Gallivan (D) Unopposed
Translate the following into a SQL query
How many districts does john j. douglass represent?
SELECT COUNT District FROM table WHERE Incumbent = John J. Douglass
Translate the following into a SQL query
how many areas were in the election in 1912
SELECT COUNT District FROM table WHERE First elected = 1912
Translate the following into a SQL query
what is the affiliation of charles h. brand
SELECT Party FROM table WHERE Incumbent = Charles H. Brand
Translate the following into a SQL query
What candidates ran in the election that featured harry lane englebright?
SELECT Candidates FROM table WHERE Incumbent = Harry Lane Englebright
Translate the following into a SQL query
When was incumbent William B. Oliver first elected?
SELECT MAX First elected FROM table WHERE Incumbent = William B. Oliver
Translate the following into a SQL query
who is the the incumbent with candidates being percy e. quin (d) unopposed
SELECT Incumbent FROM table WHERE Candidates = Percy E. Quin (D) Unopposed
Translate the following into a SQL query
what's the district with candidates being john e. rankin (d) unopposed
SELECT District FROM table WHERE Candidates = John E. Rankin (D) Unopposed
Translate the following into a SQL query
who is the the candidates with district being mississippi 4
SELECT Candidates FROM table WHERE District = Mississippi 4
Translate the following into a SQL query
who is the incumbent for district mississippi 4
SELECT Incumbent FROM table WHERE District = Mississippi 4
Translate the following into a SQL query
what's the result with incumbent being bill g. lowrey
SELECT Result FROM table WHERE Incumbent = Bill G. Lowrey
Translate the following into a SQL query
what's the district  with candidates being william madison whittington (d) unopposed
SELECT District FROM table WHERE Candidates = William Madison Whittington (D) Unopposed
Translate the following into a SQL query
What was the last year that incumbent joseph t. deal was first elected?
SELECT MAX First elected FROM table WHERE Incumbent = Joseph T. Deal
Translate the following into a SQL query
What year was someone first elected?
SELECT MIN First elected FROM table
Translate the following into a SQL query
What district does edward everett eslick represent?
SELECT District FROM table WHERE Incumbent = Edward Everett Eslick
Translate the following into a SQL query
How many times was incumbent cordell hull first elected?
SELECT COUNT First elected FROM table WHERE Incumbent = Cordell Hull
Translate the following into a SQL query
How many times was the election joseph w. byrns, sr. (d) unopposed?
SELECT COUNT Result FROM table WHERE Candidates = Joseph W. Byrns, Sr. (D) Unopposed
Translate the following into a SQL query
What is the least first elected for jeff busby?
SELECT MIN First elected FROM table WHERE Incumbent = Jeff Busby
Translate the following into a SQL query
What was the party for first elected 1923?
SELECT Party FROM table WHERE First elected = 1923
Translate the following into a SQL query
Name the total number of result for mississippi 4?
SELECT COUNT Result FROM table WHERE District = Mississippi 4
Translate the following into a SQL query
what is the section where gordon lee ran
SELECT District FROM table WHERE Incumbent = Gordon Lee
Translate the following into a SQL query
what section did frank park run in
SELECT District FROM table WHERE Incumbent = Frank Park
Translate the following into a SQL query
who won in the race in the section georgia 5
SELECT Incumbent FROM table WHERE District = Georgia 5
Translate the following into a SQL query
How many candidates won the election of john n. sandlin?
SELECT COUNT Candidates FROM table WHERE Incumbent = John N. Sandlin
Translate the following into a SQL query
Who was the incumbent in the election of henry garland dupré (d) unopposed?
SELECT Incumbent FROM table WHERE Candidates = Henry Garland Dupré (D) Unopposed
Translate the following into a SQL query
What was the result when incumbent John R. Tyson was elected?
SELECT Result FROM table WHERE Incumbent = John R. Tyson
Translate the following into a SQL query
Name the result for william j. driver
SELECT Result FROM table WHERE Incumbent = William J. Driver
Translate the following into a SQL query
Name the district for william j. driver
SELECT District FROM table WHERE Incumbent = William J. Driver
Translate the following into a SQL query
Name the lowest first elected for chester w. taylor
SELECT MIN First elected FROM table WHERE Incumbent = Chester W. Taylor
Translate the following into a SQL query
Who were the candidates when Henry Garland Dupré was incumbent?
SELECT Candidates FROM table WHERE Incumbent = Henry Garland Dupré
Translate the following into a SQL query
How many candidates were there when Henry Garland Dupré was the incumbent?
SELECT COUNT Candidates FROM table WHERE Incumbent = Henry Garland Dupré
Translate the following into a SQL query
What district did James O'Connor belong to?
SELECT District FROM table WHERE Incumbent = James O'Connor
Translate the following into a SQL query
When did the episode titled "Winterland" air for the first time?
SELECT Original air date FROM table WHERE Title = "Winterland"
Translate the following into a SQL query
How many different original air dates did the episode number 6 have?
SELECT COUNT Original air date FROM table WHERE # = 6
Translate the following into a SQL query
Who wrote the episode with production code 1ANJ01?
SELECT Written by FROM table WHERE Production code = 1ANJ01
Translate the following into a SQL query
What are the locations with a panthers mascot?
SELECT Location FROM table WHERE Mascot = Panthers
Translate the following into a SQL query
What are the locations with an eagles macot?
SELECT Location FROM table WHERE Mascot = Eagles
Translate the following into a SQL query
How many teams have an eagles mascot?
SELECT COUNT Affiliation FROM table WHERE Mascot = Eagles
Translate the following into a SQL query
How many teams have the titans as a mascot?
SELECT COUNT Affiliation FROM table WHERE Mascot = Titans