training_input stringlengths 118 1.06k |
|---|
###context:CREATE TABLE table_1342198_38 (candidates VARCHAR, incumbent VARCHAR)
###human: What was the candidates for hardie scott
###assistant: SELECT candidates FROM table_1342198_38 WHERE incumbent = "Hardie Scott" |
###context:CREATE TABLE table_1342198_38 (candidates VARCHAR, district VARCHAR)
###human: What is the number of candidates for pennsylvania 3
###assistant: SELECT COUNT(candidates) FROM table_1342198_38 WHERE district = "Pennsylvania 3" |
###context:CREATE TABLE table_1342198_38 (candidates VARCHAR, district VARCHAR)
###human: What is the number of candidates for pennsylvania 21
###assistant: SELECT COUNT(candidates) FROM table_1342198_38 WHERE district = "Pennsylvania 21" |
###context:CREATE TABLE table_1342198_38 (party VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
###human: What is the party for first elected 1948 for william t. granahan
###assistant: SELECT party FROM table_1342198_38 WHERE first_elected = 1948 AND incumbent = "William T. Granahan" |
###context:CREATE TABLE table_1342198_6 (candidates VARCHAR, incumbent VARCHAR)
###human: How many candidates were there in the race where Cecil R. King is the incumbent?
###assistant: SELECT COUNT(candidates) FROM table_1342198_6 WHERE incumbent = "Cecil R. King" |
###context:CREATE TABLE table_1342198_6 (district VARCHAR, first_elected VARCHAR)
###human: How many districts have an incumbent first elected in 1944?
###assistant: SELECT COUNT(district) FROM table_1342198_6 WHERE first_elected = 1944 |
###context:CREATE TABLE table_1342218_13 (incumbent VARCHAR, district VARCHAR)
###human: Who was the incumbent in the Illinois 17 district?
###assistant: SELECT incumbent FROM table_1342218_13 WHERE district = "Illinois 17" |
###context:CREATE TABLE table_1342218_24 (candidates VARCHAR, incumbent VARCHAR)
###human: How many people on this list are named thomas abernethy?
###assistant: SELECT COUNT(candidates) FROM table_1342218_24 WHERE incumbent = "Thomas Abernethy" |
###context:CREATE TABLE table_1342218_24 (first_elected VARCHAR, incumbent VARCHAR)
###human: How many times was w. arthur winstead first elected?
###assistant: SELECT COUNT(first_elected) FROM table_1342218_24 WHERE incumbent = "W. Arthur Winstead" |
###context:CREATE TABLE table_1342218_24 (first_elected VARCHAR, incumbent VARCHAR)
###human: How many times was william m. colmer winstead first elected?
###assistant: SELECT COUNT(first_elected) FROM table_1342218_24 WHERE incumbent = "William M. Colmer" |
###context:CREATE TABLE table_1342218_24 (result VARCHAR, incumbent VARCHAR)
###human: What was the result of the election with jamie l. whitten?
###assistant: SELECT result FROM table_1342218_24 WHERE incumbent = "Jamie L. Whitten" |
###context:CREATE TABLE table_1342218_35 (candidates VARCHAR, result VARCHAR, first_elected VARCHAR)
###human: What candidate was re-elected and was first elected in 1942?
###assistant: SELECT candidates FROM table_1342218_35 WHERE result = "Re-elected" AND first_elected = 1942 |
###context:CREATE TABLE table_1342218_35 (candidates VARCHAR, district VARCHAR)
###human: Who are the candidates in the election in the Ohio 9 district?
###assistant: SELECT candidates FROM table_1342218_35 WHERE district = "Ohio 9" |
###context:CREATE TABLE table_1342218_35 (first_elected INTEGER, incumbent VARCHAR)
###human: What year was incumbent Michael A. Feighan first elected?
###assistant: SELECT MIN(first_elected) FROM table_1342218_35 WHERE incumbent = "Michael A. Feighan" |
###context:CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR)
###human: What party does the incumbent from the Ohio 5 district belong to?
###assistant: SELECT party FROM table_1342218_35 WHERE district = "Ohio 5" |
###context:CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR)
###human: What party does the incumbent from the Ohio 20 district belong to?
###assistant: SELECT party FROM table_1342218_35 WHERE district = "Ohio 20" |
###context:CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR)
###human: What party does the incumbent from the Ohio 7 district belong to?
###assistant: SELECT party FROM table_1342218_35 WHERE district = "Ohio 7" |
###context:CREATE TABLE table_1342218_5 (candidates VARCHAR, district VARCHAR)
###human: Who is the candidate for the district Arkansas 2?
###assistant: SELECT candidates FROM table_1342218_5 WHERE district = "Arkansas 2" |
###context:CREATE TABLE table_1342218_5 (district VARCHAR, result VARCHAR, incumbent VARCHAR)
###human: Which district has the incumbent Wilbur Mills and a re-elected result?
###assistant: SELECT district FROM table_1342218_5 WHERE result = "Re-elected" AND incumbent = "Wilbur Mills" |
###context:CREATE TABLE table_1342218_43 (first_elected VARCHAR, district VARCHAR)
###human: What year was first-elected for the row of Texas 2?
###assistant: SELECT first_elected FROM table_1342218_43 WHERE district = "Texas 2" |
###context:CREATE TABLE table_1342218_43 (result VARCHAR, incumbent VARCHAR)
###human: What was the result for the incumbent Milton H. West?
###assistant: SELECT result FROM table_1342218_43 WHERE incumbent = "Milton H. West" |
###context:CREATE TABLE table_1342218_43 (party VARCHAR, district VARCHAR)
###human: What party is associated with Texas 2?
###assistant: SELECT party FROM table_1342218_43 WHERE district = "Texas 2" |
###context:CREATE TABLE table_1342218_43 (candidates VARCHAR, result VARCHAR)
###human: When the result is retired to run for U.S. Senate Democratic Hold, who is the candidate?
###assistant: SELECT candidates FROM table_1342218_43 WHERE result = "Retired to run for U.S. Senate Democratic hold" |
###context:CREATE TABLE table_1342218_43 (candidates VARCHAR, result VARCHAR, district VARCHAR)
###human: What candidate has a result of being re-elected in the Texas 7 District?
###assistant: SELECT candidates FROM table_1342218_43 WHERE result = "Re-elected" AND district = "Texas 7" |
###context:CREATE TABLE table_1342233_11 (party VARCHAR, candidates VARCHAR)
###human: Which party is associated with the candidate Albert Sidney Camp (D) unopposed?
###assistant: SELECT COUNT(party) FROM table_1342233_11 WHERE candidates = "Albert Sidney Camp (D) Unopposed" |
###context:CREATE TABLE table_1342233_11 (candidates VARCHAR, incumbent VARCHAR)
###human: Which district is associated with the incumbent Carl Vinson?
###assistant: SELECT candidates FROM table_1342233_11 WHERE incumbent = "Carl Vinson" |
###context:CREATE TABLE table_1342233_11 (candidates VARCHAR, district VARCHAR)
###human: Which candidates are associated with the Georgia 7 district?
###assistant: SELECT candidates FROM table_1342233_11 WHERE district = "Georgia 7" |
###context:CREATE TABLE table_1342233_11 (candidates VARCHAR, district VARCHAR)
###human: What candidate is associated with the Georgia 4 district?
###assistant: SELECT candidates FROM table_1342233_11 WHERE district = "Georgia 4" |
###context:CREATE TABLE table_1342233_17 (first_elected VARCHAR, incumbent VARCHAR)
###human: What year was incumbent joe b. bates first elected?
###assistant: SELECT first_elected FROM table_1342233_17 WHERE incumbent = "Joe B. Bates" |
###context:CREATE TABLE table_1342233_17 (party VARCHAR, incumbent VARCHAR)
###human: What party is incumbent virgil chapman from?
###assistant: SELECT party FROM table_1342233_17 WHERE incumbent = "Virgil Chapman" |
###context:CREATE TABLE table_1342218_6 (first_elected VARCHAR, incumbent VARCHAR)
###human: What year was clair engle first elected?
###assistant: SELECT first_elected FROM table_1342218_6 WHERE incumbent = "Clair Engle" |
###context:CREATE TABLE table_1342218_6 (result VARCHAR, first_elected VARCHAR)
###human: what is the result of the first elected is 1943?
###assistant: SELECT result FROM table_1342218_6 WHERE first_elected = 1943 |
###context:CREATE TABLE table_1342233_3 (result VARCHAR, incumbent VARCHAR)
###human: what the the end number where albert rains was running
###assistant: SELECT COUNT(result) FROM table_1342233_3 WHERE incumbent = "Albert Rains" |
###context:CREATE TABLE table_1342233_3 (result VARCHAR, incumbent VARCHAR)
###human: what the was the final in which frank w. boykin was running
###assistant: SELECT result FROM table_1342233_3 WHERE incumbent = "Frank W. Boykin" |
###context:CREATE TABLE table_1342233_32 (first_elected VARCHAR, incumbent VARCHAR)
###human: Name the total number of first elected for sol bloom
###assistant: SELECT COUNT(first_elected) FROM table_1342233_32 WHERE incumbent = "Sol Bloom" |
###context:CREATE TABLE table_1342233_32 (candidates VARCHAR, incumbent VARCHAR)
###human: Name the candidates for ellsworth b. buck
###assistant: SELECT candidates FROM table_1342233_32 WHERE incumbent = "Ellsworth B. Buck" |
###context:CREATE TABLE table_1342233_32 (candidates VARCHAR, district VARCHAR)
###human: What are the candidates for new york 35?
###assistant: SELECT candidates FROM table_1342233_32 WHERE district = "New York 35" |
###context:CREATE TABLE table_1342233_32 (party VARCHAR, district VARCHAR)
###human: What is the party for new york 20?
###assistant: SELECT party FROM table_1342233_32 WHERE district = "New York 20" |
###context:CREATE TABLE table_1342233_43 (result VARCHAR, candidates VARCHAR)
###human: What was the result of the election featuring r. ewing thomason (d) unopposed?
###assistant: SELECT result FROM table_1342233_43 WHERE candidates = "R. Ewing Thomason (D) Unopposed" |
###context:CREATE TABLE table_1342233_43 (district VARCHAR, incumbent VARCHAR)
###human: What district is eugene worley from?
###assistant: SELECT district FROM table_1342233_43 WHERE incumbent = "Eugene Worley" |
###context:CREATE TABLE table_1342233_6 (result VARCHAR, candidates VARCHAR)
###human: how many result with candidates being richard j. welch (r) unopposed
###assistant: SELECT COUNT(result) FROM table_1342233_6 WHERE candidates = "Richard J. Welch (R) Unopposed" |
###context:CREATE TABLE table_1342233_6 (result VARCHAR, incumbent VARCHAR)
###human: what's the result with incumbent being jack z. anderson
###assistant: SELECT result FROM table_1342233_6 WHERE incumbent = "Jack Z. Anderson" |
###context:CREATE TABLE table_1342233_6 (district VARCHAR, result VARCHAR, candidates VARCHAR)
###human: what's the district with result being re-elected and candidates being clarence f. lea (d) unopposed
###assistant: SELECT district FROM table_1342233_6 WHERE result = "Re-elected" AND candidates = "Clarence F... |
###context:CREATE TABLE table_1342233_6 (first_elected VARCHAR, incumbent VARCHAR)
###human: what's the first elected with incumbent being clair engle
###assistant: SELECT first_elected FROM table_1342233_6 WHERE incumbent = "Clair Engle" |
###context:CREATE TABLE table_1342233_6 (candidates VARCHAR, incumbent VARCHAR)
###human: who is the the candidates with incumbent being alfred j. elliott
###assistant: SELECT candidates FROM table_1342233_6 WHERE incumbent = "Alfred J. Elliott" |
###context:CREATE TABLE table_1342233_6 (incumbent VARCHAR, candidates VARCHAR)
###human: who is the the incumbent with candidates being jack z. anderson (r) unopposed
###assistant: SELECT incumbent FROM table_1342233_6 WHERE candidates = "Jack Z. Anderson (R) Unopposed" |
###context:CREATE TABLE table_1342249_11 (party VARCHAR, incumbent VARCHAR)
###human: How many parties does incumbent carl vinson represent?
###assistant: SELECT COUNT(party) FROM table_1342249_11 WHERE incumbent = "Carl Vinson" |
###context:CREATE TABLE table_1342249_11 (party VARCHAR, incumbent VARCHAR)
###human: How many parties does incumbent stephen pace represent?
###assistant: SELECT COUNT(party) FROM table_1342249_11 WHERE incumbent = "Stephen Pace" |
###context:CREATE TABLE table_1342249_13 (candidates VARCHAR, incumbent VARCHAR)
###human: Who were the candidates when Noah M. Mason was incumbent?
###assistant: SELECT candidates FROM table_1342249_13 WHERE incumbent = "Noah M. Mason" |
###context:CREATE TABLE table_1342249_13 (first_elected VARCHAR, incumbent VARCHAR)
###human: In what year was Leo E. Allen first elected?
###assistant: SELECT first_elected FROM table_1342249_13 WHERE incumbent = "Leo E. Allen" |
###context:CREATE TABLE table_1342249_13 (candidates VARCHAR, incumbent VARCHAR)
###human: Who were the candidates when Sid Simpson was the incumbent?
###assistant: SELECT candidates FROM table_1342249_13 WHERE incumbent = "Sid Simpson" |
###context:CREATE TABLE table_1342256_10 (result VARCHAR, incumbent VARCHAR)
###human: What was the result of Robert L. F. Sikes' election bid?
###assistant: SELECT result FROM table_1342256_10 WHERE incumbent = "Robert L. F. Sikes" |
###context:CREATE TABLE table_1342256_10 (district VARCHAR, first_elected VARCHAR)
###human: How many districts have an incumbent first elected in 1940?
###assistant: SELECT COUNT(district) FROM table_1342256_10 WHERE first_elected = 1940 |
###context:CREATE TABLE table_1342256_10 (result VARCHAR, incumbent VARCHAR)
###human: How many races involve incumbent Pat Cannon?
###assistant: SELECT COUNT(result) FROM table_1342256_10 WHERE incumbent = "Pat Cannon" |
###context:CREATE TABLE table_1342256_10 (incumbent VARCHAR, first_elected VARCHAR)
###human: Which incumbent was first elected in 1940?
###assistant: SELECT incumbent FROM table_1342256_10 WHERE first_elected = 1940 |
###context:CREATE TABLE table_1342249_35 (first_elected VARCHAR, district VARCHAR)
###human: What is the first electedfor district ohio 18
###assistant: SELECT first_elected FROM table_1342249_35 WHERE district = "Ohio 18" |
###context:CREATE TABLE table_1342249_35 (incumbent VARCHAR, district VARCHAR)
###human: What is the incumbent for ohio 12?
###assistant: SELECT incumbent FROM table_1342249_35 WHERE district = "Ohio 12" |
###context:CREATE TABLE table_1342256_18 (candidates VARCHAR, incumbent VARCHAR)
###human: Who are all of the candidates in the election featuring james r. domengeaux?
###assistant: SELECT candidates FROM table_1342256_18 WHERE incumbent = "James R. Domengeaux" |
###context:CREATE TABLE table_1342256_33 (candidates VARCHAR, incumbent VARCHAR)
###human: Name all the candidates that ran for the seat where Harold D. Cooley is the incumbent?
###assistant: SELECT candidates FROM table_1342256_33 WHERE incumbent = "Harold D. Cooley" |
###context:CREATE TABLE table_1342256_33 (party VARCHAR, first_elected VARCHAR)
###human: How many partys have a candidate first elected in 1923?
###assistant: SELECT COUNT(party) FROM table_1342256_33 WHERE first_elected = 1923 |
###context:CREATE TABLE table_1342256_38 (candidates VARCHAR, incumbent VARCHAR)
###human: what was the number of candidates when Leon Sacks was incumbent?
###assistant: SELECT COUNT(candidates) FROM table_1342256_38 WHERE incumbent = "Leon Sacks" |
###context:CREATE TABLE table_1342256_38 (result VARCHAR, district VARCHAR)
###human: What was the result in Pennsylvania 13?
###assistant: SELECT result FROM table_1342256_38 WHERE district = "Pennsylvania 13" |
###context:CREATE TABLE table_1342256_38 (incumbent VARCHAR, district VARCHAR)
###human: Who was the incumbent in Pennsylvania 27?
###assistant: SELECT incumbent FROM table_1342256_38 WHERE district = "Pennsylvania 27" |
###context:CREATE TABLE table_1342256_32 (candidates VARCHAR, district VARCHAR)
###human: Who are the contenders In the New York 19 polling area race?
###assistant: SELECT candidates FROM table_1342256_32 WHERE district = "New York 19" |
###context:CREATE TABLE table_1342256_32 (district VARCHAR, incumbent VARCHAR)
###human: How many polling areas are there with John Taber as the sitting Representative?
###assistant: SELECT COUNT(district) FROM table_1342256_32 WHERE incumbent = "John Taber" |
###context:CREATE TABLE table_1342256_32 (candidates VARCHAR, district VARCHAR)
###human: Who are the contenders In the New York 29 polling area race?
###assistant: SELECT candidates FROM table_1342256_32 WHERE district = "New York 29" |
###context:CREATE TABLE table_1342256_32 (party VARCHAR, incumbent VARCHAR)
###human: Which political party is involved where John J. Delaney is the sitting Representative?
###assistant: SELECT party FROM table_1342256_32 WHERE incumbent = "John J. Delaney" |
###context:CREATE TABLE table_1342256_32 (incumbent VARCHAR, district VARCHAR)
###human: Who is the sitting Representative In the New York 10 polling area race?
###assistant: SELECT incumbent FROM table_1342256_32 WHERE district = "New York 10" |
###context:CREATE TABLE table_1342256_32 (incumbent VARCHAR, district VARCHAR)
###human: How many sitting Representatives are there in the New York 10 polling area?
###assistant: SELECT COUNT(incumbent) FROM table_1342256_32 WHERE district = "New York 10" |
###context:CREATE TABLE table_1342256_40 (district VARCHAR, incumbent VARCHAR)
###human: What is the district for james p. richards?
###assistant: SELECT district FROM table_1342256_40 WHERE incumbent = "James P. Richards" |
###context:CREATE TABLE table_1342256_40 (candidates VARCHAR, district VARCHAR)
###human: What is the candidate for south carolina 4?
###assistant: SELECT candidates FROM table_1342256_40 WHERE district = "South Carolina 4" |
###context:CREATE TABLE table_1342256_40 (candidates VARCHAR, district VARCHAR)
###human: What is the candidate for south carolina 3?
###assistant: SELECT candidates FROM table_1342256_40 WHERE district = "South Carolina 3" |
###context:CREATE TABLE table_1342256_40 (first_elected VARCHAR, district VARCHAR)
###human: What is the first elected for south carolina 4?
###assistant: SELECT first_elected FROM table_1342256_40 WHERE district = "South Carolina 4" |
###context:CREATE TABLE table_1342256_5 (first_elected VARCHAR, candidates VARCHAR)
###human: How many candidates were in the election featuring brooks hays (d) unopposed?
###assistant: SELECT COUNT(first_elected) FROM table_1342256_5 WHERE candidates = "Brooks Hays (D) Unopposed" |
###context:CREATE TABLE table_1342256_5 (party VARCHAR, incumbent VARCHAR)
###human: What party does clyde t. ellis represent?
###assistant: SELECT party FROM table_1342256_5 WHERE incumbent = "Clyde T. Ellis" |
###context:CREATE TABLE table_1342256_6 (party VARCHAR, candidates VARCHAR)
###human: how many party with candidates being john j. phillips (r) 57.6% n. e. west (d) 42.4%
###assistant: SELECT COUNT(party) FROM table_1342256_6 WHERE candidates = "John J. Phillips (R) 57.6% N. E. West (D) 42.4%" |
###context:CREATE TABLE table_1342256_6 (result VARCHAR, district VARCHAR)
###human: what's the result with dbeingtrict being california 10
###assistant: SELECT result FROM table_1342256_6 WHERE district = "California 10" |
###context:CREATE TABLE table_1342256_6 (party VARCHAR, first_elected VARCHAR)
###human: what's the party with first elected being 1926
###assistant: SELECT party FROM table_1342256_6 WHERE first_elected = "1926" |
###context:CREATE TABLE table_1342256_6 (incumbent VARCHAR, result VARCHAR)
###human: what's the incumbent with result being new seat republican gain
###assistant: SELECT incumbent FROM table_1342256_6 WHERE result = "New seat Republican gain" |
###context:CREATE TABLE table_1342270_24 (first_elected INTEGER)
###human: what was the maxiumum for the first elected?
###assistant: SELECT MAX(first_elected) FROM table_1342270_24 |
###context:CREATE TABLE table_1342270_3 (first_elected VARCHAR, incumbent VARCHAR)
###human: what's the first elected with incumbent being joe starnes
###assistant: SELECT first_elected FROM table_1342270_3 WHERE incumbent = "Joe Starnes" |
###context:CREATE TABLE table_1342270_3 (first_elected VARCHAR, candidates VARCHAR)
###human: what's the first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003%
###assistant: SELECT first_elected FROM table_1342270_3 WHERE candidates = "Joe Starnes (D) 100.0% George Bogus ( W/I ) ... |
###context:CREATE TABLE table_1342270_3 (party VARCHAR, district VARCHAR)
###human: how many party with dbeingtrict being alabama 6
###assistant: SELECT COUNT(party) FROM table_1342270_3 WHERE district = "Alabama 6" |
###context:CREATE TABLE table_1342270_3 (district VARCHAR, incumbent VARCHAR)
###human: what are all the district with incumbent being sam hobbs
###assistant: SELECT district FROM table_1342270_3 WHERE incumbent = "Sam Hobbs" |
###context:CREATE TABLE table_1342270_3 (result VARCHAR, district VARCHAR)
###human: what are all the result with district being alabama 1
###assistant: SELECT result FROM table_1342270_3 WHERE district = "Alabama 1" |
###context:CREATE TABLE table_1342270_3 (first_elected INTEGER, district VARCHAR)
###human: what is the maximum first elected with district being alabama 5
###assistant: SELECT MAX(first_elected) FROM table_1342270_3 WHERE district = "Alabama 5" |
###context:CREATE TABLE table_1342270_42 (result VARCHAR, district VARCHAR)
###human: What was the result in the Tennessee 6 district election?
###assistant: SELECT result FROM table_1342270_42 WHERE district = "Tennessee 6" |
###context:CREATE TABLE table_1342270_42 (district VARCHAR, incumbent VARCHAR)
###human: In how many districts was the incumbent Estes Kefauver?
###assistant: SELECT COUNT(district) FROM table_1342270_42 WHERE incumbent = "Estes Kefauver" |
###context:CREATE TABLE table_1342270_42 (first_elected INTEGER)
###human: What is the latest year any of the incumbents were first elected?
###assistant: SELECT MAX(first_elected) FROM table_1342270_42 |
###context:CREATE TABLE table_1342270_42 (result VARCHAR, district VARCHAR)
###human: What was the result of the Tennessee 2 district election?
###assistant: SELECT result FROM table_1342270_42 WHERE district = "Tennessee 2" |
###context:CREATE TABLE table_1342292_17 (district VARCHAR, incumbent VARCHAR)
###human: What district is incumbent robert l. mouton from?
###assistant: SELECT district FROM table_1342292_17 WHERE incumbent = "Robert L. Mouton" |
###context:CREATE TABLE table_1342270_5 (first_elected VARCHAR, incumbent VARCHAR)
###human: William Fadjo Cravens is the only candidate who was first elected in 1939.
###assistant: SELECT COUNT(first_elected) FROM table_1342270_5 WHERE incumbent = "William Fadjo Cravens" |
###context:CREATE TABLE table_1342270_5 (district VARCHAR, incumbent VARCHAR)
###human: William Fadjo Cravens serves the fourth district of Arkansas.
###assistant: SELECT district FROM table_1342270_5 WHERE incumbent = "William Fadjo Cravens" |
###context:CREATE TABLE table_1342292_2 (party VARCHAR, district VARCHAR)
###human: what's the party with district being alabama 3
###assistant: SELECT party FROM table_1342292_2 WHERE district = "Alabama 3" |
###context:CREATE TABLE table_1342292_2 (incumbent VARCHAR, candidates VARCHAR)
###human: what's the incumbent with candidates being sam hobbs (d) 88.2% c. w. mckay (r) 11.8%
###assistant: SELECT incumbent FROM table_1342292_2 WHERE candidates = "Sam Hobbs (D) 88.2% C. W. McKay (R) 11.8%" |
###context:CREATE TABLE table_1342292_2 (party VARCHAR, incumbent VARCHAR)
###human: what's the party with incumbent being john sparkman
###assistant: SELECT party FROM table_1342292_2 WHERE incumbent = "John Sparkman" |
###context:CREATE TABLE table_1342292_2 (district VARCHAR, candidates VARCHAR)
###human: how many dbeingtrict with candidates being william b. bankhead (d) 71.3% e. m. reed (r) 28.7%
###assistant: SELECT COUNT(district) FROM table_1342292_2 WHERE candidates = "William B. Bankhead (D) 71.3% E. M. Reed (R) 28.7%... |
###context:CREATE TABLE table_1342292_2 (party VARCHAR, incumbent VARCHAR)
###human: what's the party with incumbent being william b. bankhead
###assistant: SELECT party FROM table_1342292_2 WHERE incumbent = "William B. Bankhead" |
###context:CREATE TABLE table_1342292_2 (district VARCHAR, first_elected VARCHAR)
###human: what's the district with first elected being 1938
###assistant: SELECT district FROM table_1342292_2 WHERE first_elected = 1938 |
###context:CREATE TABLE table_1342292_45 (party VARCHAR, first_elected VARCHAR)
###human: How many incumbents were first elected in 1930?
###assistant: SELECT COUNT(party) FROM table_1342292_45 WHERE first_elected = 1930 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.