instruction
stringlengths 67
299
| input
stringlengths 88
550
| output
stringlengths 32
484
|
---|---|---|
Write a SQL query that answers the following question: In which district is the incumbent Carl Vinson? | The relevant table was constructed using the following SQL : CREATE TABLE table_1341973_11 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1341973_11 WHERE incumbent = "Carl Vinson" |
Write a SQL query that answers the following question: Name the candidates for l. mendel rivers | The relevant table was constructed using the following SQL : CREATE TABLE table_1341930_40 (candidates VARCHAR, incumbent VARCHAR) | SELECT COUNT(candidates) FROM table_1341930_40 WHERE incumbent = "L. Mendel Rivers" |
Write a SQL query that answers the following question: Name the result for south carolina 4 | The relevant table was constructed using the following SQL : CREATE TABLE table_1341930_40 (result VARCHAR, district VARCHAR) | SELECT result FROM table_1341930_40 WHERE district = "South Carolina 4" |
Write a SQL query that answers the following question: Name the candidates for south carolina 3 | The relevant table was constructed using the following SQL : CREATE TABLE table_1341930_40 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1341930_40 WHERE district = "South Carolina 3" |
Write a SQL query that answers the following question: Name the incumbent for first elected 1956 | The relevant table was constructed using the following SQL : CREATE TABLE table_1341930_40 (incumbent VARCHAR, first_elected VARCHAR) | SELECT incumbent FROM table_1341930_40 WHERE first_elected = 1956 |
Write a SQL query that answers the following question: Name the number of party with the incubent james william trimble | The relevant table was constructed using the following SQL : CREATE TABLE table_1341930_5 (party VARCHAR, incumbent VARCHAR) | SELECT COUNT(party) FROM table_1341930_5 WHERE incumbent = "James William Trimble" |
Write a SQL query that answers the following question: What is the result for first elected in 1944 | The relevant table was constructed using the following SQL : CREATE TABLE table_1341930_5 (result VARCHAR, first_elected VARCHAR) | SELECT result FROM table_1341930_5 WHERE first_elected = 1944 |
Write a SQL query that answers the following question: What is the number of party in the arkansas 1 district | The relevant table was constructed using the following SQL : CREATE TABLE table_1341930_5 (party VARCHAR, district VARCHAR) | SELECT COUNT(party) FROM table_1341930_5 WHERE district = "Arkansas 1" |
Write a SQL query that answers the following question: Who is the incumbent in the Alabama 6 voting district? | The relevant table was constructed using the following SQL : CREATE TABLE table_1341973_3 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_1341973_3 WHERE district = "Alabama 6" |
Write a SQL query that answers the following question: Which candidates were in the election where Frank W. Boykin was an incumbent? | The relevant table was constructed using the following SQL : CREATE TABLE table_1341973_3 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1341973_3 WHERE incumbent = "Frank W. Boykin" |
Write a SQL query that answers the following question: Who were the candidates in the election where the incumbent is George M. Grant? | The relevant table was constructed using the following SQL : CREATE TABLE table_1341973_3 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1341973_3 WHERE incumbent = "George M. Grant" |
Write a SQL query that answers the following question: Which candidates ran in the Alabama 6 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_1341973_3 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1341973_3 WHERE district = "Alabama 6" |
Write a SQL query that answers the following question: What is the latest year listed with the Alabama 4 voting district? | The relevant table was constructed using the following SQL : CREATE TABLE table_1341973_3 (first_elected INTEGER, district VARCHAR) | SELECT MAX(first_elected) FROM table_1341973_3 WHERE district = "Alabama 4" |
Write a SQL query that answers the following question: What was the result when incumbent Fred E. Busbey was elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_12 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1342013_12 WHERE incumbent = "Fred E. Busbey" |
Write a SQL query that answers the following question: How many results are listed for the election where Noah M. Mason was elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_12 (result VARCHAR, incumbent VARCHAR) | SELECT COUNT(result) FROM table_1342013_12 WHERE incumbent = "Noah M. Mason" |
Write a SQL query that answers the following question: What was the result when Leo E. Allen was elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_12 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1342013_12 WHERE incumbent = "Leo E. Allen" |
Write a SQL query that answers the following question: Which party had a person who has been in the seat since 1914? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_10 (party VARCHAR, first_elected VARCHAR) | SELECT party FROM table_1342013_10 WHERE first_elected = 1914 |
Write a SQL query that answers the following question: Name all the candidates listed in the race where the incumbent is Prince Hulon Preston, Jr. | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_10 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1342013_10 WHERE incumbent = "Prince Hulon Preston, Jr." |
Write a SQL query that answers the following question: How many candidates ran in the race where the incumbent is J. L. Pilcher? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_10 (candidates VARCHAR, incumbent VARCHAR) | SELECT COUNT(candidates) FROM table_1342013_10 WHERE incumbent = "J. L. Pilcher" |
Write a SQL query that answers the following question: John W. Heselton was first elected in what year? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_20 (first_elected INTEGER, incumbent VARCHAR) | SELECT MAX(first_elected) FROM table_1342013_20 WHERE incumbent = "John W. Heselton" |
Write a SQL query that answers the following question: Thomas J. Lane is the incumbent of how many parties? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_20 (party VARCHAR, incumbent VARCHAR) | SELECT COUNT(party) FROM table_1342013_20 WHERE incumbent = "Thomas J. Lane" |
Write a SQL query that answers the following question: Who is the incumbent first elected in 1944? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_20 (incumbent VARCHAR, first_elected VARCHAR) | SELECT incumbent FROM table_1342013_20 WHERE first_elected = 1944 |
Write a SQL query that answers the following question: What was the result for the politician first elected in 1942? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_20 (result VARCHAR, first_elected VARCHAR) | SELECT result FROM table_1342013_20 WHERE first_elected = 1942 |
Write a SQL query that answers the following question: what's the result for district ohio 2 | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_34 (result VARCHAR, district VARCHAR) | SELECT result FROM table_1342013_34 WHERE district = "Ohio 2" |
Write a SQL query that answers the following question: who is the the incumbent with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5% | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_34 (incumbent VARCHAR, candidates VARCHAR) | SELECT incumbent FROM table_1342013_34 WHERE candidates = "John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.5%" |
Write a SQL query that answers the following question: who is the the incumbent with district being ohio 2 | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_34 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_1342013_34 WHERE district = "Ohio 2" |
Write a SQL query that answers the following question: what's the result with incumbent being william h. ayres | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_34 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1342013_34 WHERE incumbent = "William H. Ayres" |
Write a SQL query that answers the following question: how many party with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5% | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_34 (party VARCHAR, candidates VARCHAR) | SELECT COUNT(party) FROM table_1342013_34 WHERE candidates = "John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.5%" |
Write a SQL query that answers the following question: what district is Brooks Hays in | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_4 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1342013_4 WHERE incumbent = "Brooks Hays" |
Write a SQL query that answers the following question: Omar Burleson was the incumbent in what district? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_42 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1342013_42 WHERE incumbent = "Omar Burleson" |
Write a SQL query that answers the following question: In what district was incumbent first elected in 1938? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_42 (district VARCHAR, first_elected VARCHAR) | SELECT district FROM table_1342013_42 WHERE first_elected = 1938 |
Write a SQL query that answers the following question: Name the party for the pennsylvania 25 | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_37 (party VARCHAR, district VARCHAR) | SELECT party FROM table_1342013_37 WHERE district = "Pennsylvania 25" |
Write a SQL query that answers the following question: Name the minumim first elected for alvin bush | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_37 (first_elected INTEGER, incumbent VARCHAR) | SELECT MIN(first_elected) FROM table_1342013_37 WHERE incumbent = "Alvin Bush" |
Write a SQL query that answers the following question: What is the incumbent for pennsylvania 15 | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_37 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_1342013_37 WHERE district = "Pennsylvania 15" |
Write a SQL query that answers the following question: What are the candidates for noah m. mason? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_13 (candidates VARCHAR, incumbent VARCHAR) | SELECT COUNT(candidates) FROM table_1342149_13 WHERE incumbent = "Noah M. Mason" |
Write a SQL query that answers the following question: What is the candidates for fred e. busbey? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_13 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1342149_13 WHERE incumbent = "Fred E. Busbey" |
Write a SQL query that answers the following question: What is the incumbent for 1932? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_13 (incumbent VARCHAR, first_elected VARCHAR) | SELECT incumbent FROM table_1342149_13 WHERE first_elected = 1932 |
Write a SQL query that answers the following question: how many first elected with incumbent being charles edward bennett | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_9 (first_elected VARCHAR, incumbent VARCHAR) | SELECT COUNT(first_elected) FROM table_1342013_9 WHERE incumbent = "Charles Edward Bennett" |
Write a SQL query that answers the following question: who is the the incumbent with dbeingtrict being florida 2 | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_9 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_1342013_9 WHERE district = "Florida 2" |
Write a SQL query that answers the following question: what's the result with candidates being charles edward bennett (d) unopposed | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_9 (result VARCHAR, candidates VARCHAR) | SELECT result FROM table_1342013_9 WHERE candidates = "Charles Edward Bennett (D) Unopposed" |
Write a SQL query that answers the following question: what's the result with dbeingtrict being florida 4 | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_9 (result VARCHAR, district VARCHAR) | SELECT result FROM table_1342013_9 WHERE district = "Florida 4" |
Write a SQL query that answers the following question: how many party with candidates being charles edward bennett (d) unopposed | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_9 (party VARCHAR, candidates VARCHAR) | SELECT COUNT(party) FROM table_1342013_9 WHERE candidates = "Charles Edward Bennett (D) Unopposed" |
Write a SQL query that answers the following question: how many first elected with incumbent being william c. lantaff | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_9 (first_elected VARCHAR, incumbent VARCHAR) | SELECT COUNT(first_elected) FROM table_1342013_9 WHERE incumbent = "William C. Lantaff" |
Write a SQL query that answers the following question: What was the result of the election when Tic Forrester ran as an incumbent? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_11 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1342149_11 WHERE incumbent = "Tic Forrester" |
Write a SQL query that answers the following question: What was the final result for Craig Hosmer? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_5 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1342013_5 WHERE incumbent = "Craig Hosmer" |
Write a SQL query that answers the following question: What district does Harlan Hagen represent? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342013_5 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1342013_5 WHERE incumbent = "Harlan Hagen" |
Write a SQL query that answers the following question: Who was the candidate in the election in the Louisiana 2 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_18 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1342149_18 WHERE district = "Louisiana 2" |
Write a SQL query that answers the following question: What candidate was re-elected in the Louisiana 5 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_18 (candidates VARCHAR, result VARCHAR, district VARCHAR) | SELECT candidates FROM table_1342149_18 WHERE result = "Re-elected" AND district = "Louisiana 5" |
Write a SQL query that answers the following question: What party's candidate was re-elected in the Louisiana 6 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_18 (party VARCHAR, result VARCHAR, district VARCHAR) | SELECT party FROM table_1342149_18 WHERE result = "Re-elected" AND district = "Louisiana 6" |
Write a SQL query that answers the following question: What was the result in the election where Hale Boggs was the incumbent? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_18 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1342149_18 WHERE incumbent = "Hale Boggs" |
Write a SQL query that answers the following question: Name the result for mississippi 2 | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_24 (result VARCHAR, district VARCHAR) | SELECT result FROM table_1342149_24 WHERE district = "Mississippi 2" |
Write a SQL query that answers the following question: Name the number of candidates for 1941 | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_24 (candidates VARCHAR, first_elected VARCHAR) | SELECT COUNT(candidates) FROM table_1342149_24 WHERE first_elected = 1941 |
Write a SQL query that answers the following question: Name the candidates for result of lost renomination democratic loss | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_24 (candidates VARCHAR, result VARCHAR) | SELECT candidates FROM table_1342149_24 WHERE result = "Lost renomination Democratic loss" |
Write a SQL query that answers the following question: Name the result for first elected of 1920 | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_24 (result VARCHAR, first_elected VARCHAR) | SELECT result FROM table_1342149_24 WHERE first_elected = 1920 |
Write a SQL query that answers the following question: In the District Tennessee 7 what is the number of first elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_42 (first_elected INTEGER, district VARCHAR) | SELECT MAX(first_elected) FROM table_1342149_42 WHERE district = "Tennessee 7" |
Write a SQL query that answers the following question: What is the candidates result that is tom j. murray (d) unopposed? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_42 (result VARCHAR, candidates VARCHAR) | SELECT result FROM table_1342149_42 WHERE candidates = "Tom J. Murray (D) Unopposed" |
Write a SQL query that answers the following question: For the Republican party what are the names of the incumbents? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_42 (incumbent VARCHAR, party VARCHAR) | SELECT incumbent FROM table_1342149_42 WHERE party = "Republican" |
Write a SQL query that answers the following question: How many parties match the canididates listed as howard baker, sr. (r) 68.9% boyd w. cox (d) 31.1%? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_42 (party VARCHAR, candidates VARCHAR) | SELECT COUNT(party) FROM table_1342149_42 WHERE candidates = "Howard Baker, Sr. (R) 68.9% Boyd W. Cox (D) 31.1%" |
Write a SQL query that answers the following question: Which district had Paul B. Dague as the incumbent? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_38 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1342149_38 WHERE incumbent = "Paul B. Dague" |
Write a SQL query that answers the following question: What was the result in the election where the incumbent was first elected in 1942? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_43 (result VARCHAR, first_elected VARCHAR) | SELECT result FROM table_1342149_43 WHERE first_elected = "1942" |
Write a SQL query that answers the following question: What was the result of the election in the Texas 3 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_43 (result VARCHAR, district VARCHAR) | SELECT result FROM table_1342149_43 WHERE district = "Texas 3" |
Write a SQL query that answers the following question: What party did incumbent Wright Patman belong to? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_43 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1342149_43 WHERE incumbent = "Wright Patman" |
Write a SQL query that answers the following question: What was the result of the election in the Texas 4 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_43 (result VARCHAR, district VARCHAR) | SELECT result FROM table_1342149_43 WHERE district = "Texas 4" |
Write a SQL query that answers the following question: What party did the re-elected incumbent of the Texas 11 district belong to? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_43 (party VARCHAR, result VARCHAR, district VARCHAR) | SELECT party FROM table_1342149_43 WHERE result = "Re-elected" AND district = "Texas 11" |
Write a SQL query that answers the following question: List all those first elected in the California 22 voting district. | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_6 (first_elected VARCHAR, district VARCHAR) | SELECT first_elected FROM table_1342149_6 WHERE district = "California 22" |
Write a SQL query that answers the following question: Who was the first elected incumbent in the 1946 election? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_6 (incumbent VARCHAR, first_elected VARCHAR) | SELECT incumbent FROM table_1342149_6 WHERE first_elected = "1946" |
Write a SQL query that answers the following question: How many results does the California 29 voting district have? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_6 (result VARCHAR, district VARCHAR) | SELECT COUNT(result) FROM table_1342149_6 WHERE district = "California 29" |
Write a SQL query that answers the following question: Which party had Clair Engle as an incumbent? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342149_6 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1342149_6 WHERE incumbent = "Clair Engle" |
Write a SQL query that answers the following question: What party does sid simpson represent? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_13 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1342198_13 WHERE incumbent = "Sid Simpson" |
Write a SQL query that answers the following question: How many candidates ran against barratt o'hara? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_13 (candidates VARCHAR, incumbent VARCHAR) | SELECT COUNT(candidates) FROM table_1342198_13 WHERE incumbent = "Barratt O'Hara" |
Write a SQL query that answers the following question: What year was incumbent barratt o'hara first elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_13 (first_elected VARCHAR, incumbent VARCHAR) | SELECT first_elected FROM table_1342198_13 WHERE incumbent = "Barratt O'Hara" |
Write a SQL query that answers the following question: How many results for minimum first elected incumbent Noble Jones Gregory? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_17 (first_elected INTEGER, incumbent VARCHAR) | SELECT MIN(first_elected) FROM table_1342198_17 WHERE incumbent = "Noble Jones Gregory" |
Write a SQL query that answers the following question: How many results for incumbent Noble Jones Gregory? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_17 (district VARCHAR, incumbent VARCHAR) | SELECT COUNT(district) FROM table_1342198_17 WHERE incumbent = "Noble Jones Gregory" |
Write a SQL query that answers the following question: Who is the candidate wehre district is louisiana 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_18 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1342198_18 WHERE district = "Louisiana 1" |
Write a SQL query that answers the following question: What is the party where the incumbent is overton brooks? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_18 (party VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1342198_18 WHERE incumbent = "Overton Brooks" |
Write a SQL query that answers the following question: who athe party where district is louisiana 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_18 (party VARCHAR, district VARCHAR) | SELECT party FROM table_1342198_18 WHERE district = "Louisiana 2" |
Write a SQL query that answers the following question: who is the candidate where district is louisiana 3? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_18 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1342198_18 WHERE district = "Louisiana 3" |
Write a SQL query that answers the following question: what is the minimum number first elected to district louisiana 5? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_18 (first_elected INTEGER, district VARCHAR) | SELECT MIN(first_elected) FROM table_1342198_18 WHERE district = "Louisiana 5" |
Write a SQL query that answers the following question: What was the result when incumbent Tom Steed was elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_36 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1342198_36 WHERE incumbent = "Tom Steed" |
Write a SQL query that answers the following question: What was the candidates for hardie scott | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_38 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1342198_38 WHERE incumbent = "Hardie Scott" |
Write a SQL query that answers the following question: What is the number of candidates for pennsylvania 3 | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_38 (candidates VARCHAR, district VARCHAR) | SELECT COUNT(candidates) FROM table_1342198_38 WHERE district = "Pennsylvania 3" |
Write a SQL query that answers the following question: What is the number of candidates for pennsylvania 21 | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_38 (candidates VARCHAR, district VARCHAR) | SELECT COUNT(candidates) FROM table_1342198_38 WHERE district = "Pennsylvania 21" |
Write a SQL query that answers the following question: What is the party for first elected 1948 for william t. granahan | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_38 (party VARCHAR, first_elected VARCHAR, incumbent VARCHAR) | SELECT party FROM table_1342198_38 WHERE first_elected = 1948 AND incumbent = "William T. Granahan" |
Write a SQL query that answers the following question: How many candidates were there in the race where Cecil R. King is the incumbent? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_6 (candidates VARCHAR, incumbent VARCHAR) | SELECT COUNT(candidates) FROM table_1342198_6 WHERE incumbent = "Cecil R. King" |
Write a SQL query that answers the following question: How many districts have an incumbent first elected in 1944? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342198_6 (district VARCHAR, first_elected VARCHAR) | SELECT COUNT(district) FROM table_1342198_6 WHERE first_elected = 1944 |
Write a SQL query that answers the following question: Who was the incumbent in the Illinois 17 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_13 (incumbent VARCHAR, district VARCHAR) | SELECT incumbent FROM table_1342218_13 WHERE district = "Illinois 17" |
Write a SQL query that answers the following question: How many people on this list are named thomas abernethy? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_24 (candidates VARCHAR, incumbent VARCHAR) | SELECT COUNT(candidates) FROM table_1342218_24 WHERE incumbent = "Thomas Abernethy" |
Write a SQL query that answers the following question: How many times was w. arthur winstead first elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_24 (first_elected VARCHAR, incumbent VARCHAR) | SELECT COUNT(first_elected) FROM table_1342218_24 WHERE incumbent = "W. Arthur Winstead" |
Write a SQL query that answers the following question: How many times was william m. colmer winstead first elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_24 (first_elected VARCHAR, incumbent VARCHAR) | SELECT COUNT(first_elected) FROM table_1342218_24 WHERE incumbent = "William M. Colmer" |
Write a SQL query that answers the following question: What was the result of the election with jamie l. whitten? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_24 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1342218_24 WHERE incumbent = "Jamie L. Whitten" |
Write a SQL query that answers the following question: What candidate was re-elected and was first elected in 1942? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_35 (candidates VARCHAR, result VARCHAR, first_elected VARCHAR) | SELECT candidates FROM table_1342218_35 WHERE result = "Re-elected" AND first_elected = 1942 |
Write a SQL query that answers the following question: Who are the candidates in the election in the Ohio 9 district? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_35 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1342218_35 WHERE district = "Ohio 9" |
Write a SQL query that answers the following question: What year was incumbent Michael A. Feighan first elected? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_35 (first_elected INTEGER, incumbent VARCHAR) | SELECT MIN(first_elected) FROM table_1342218_35 WHERE incumbent = "Michael A. Feighan" |
Write a SQL query that answers the following question: What party does the incumbent from the Ohio 5 district belong to? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR) | SELECT party FROM table_1342218_35 WHERE district = "Ohio 5" |
Write a SQL query that answers the following question: What party does the incumbent from the Ohio 20 district belong to? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR) | SELECT party FROM table_1342218_35 WHERE district = "Ohio 20" |
Write a SQL query that answers the following question: What party does the incumbent from the Ohio 7 district belong to? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR) | SELECT party FROM table_1342218_35 WHERE district = "Ohio 7" |
Write a SQL query that answers the following question: Who is the candidate for the district Arkansas 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_5 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1342218_5 WHERE district = "Arkansas 2" |
Write a SQL query that answers the following question: Which district has the incumbent Wilbur Mills and a re-elected result? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_5 (district VARCHAR, result VARCHAR, incumbent VARCHAR) | SELECT district FROM table_1342218_5 WHERE result = "Re-elected" AND incumbent = "Wilbur Mills" |
Write a SQL query that answers the following question: What year was first-elected for the row of Texas 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_43 (first_elected VARCHAR, district VARCHAR) | SELECT first_elected FROM table_1342218_43 WHERE district = "Texas 2" |
Write a SQL query that answers the following question: What was the result for the incumbent Milton H. West? | The relevant table was constructed using the following SQL : CREATE TABLE table_1342218_43 (result VARCHAR, incumbent VARCHAR) | SELECT result FROM table_1342218_43 WHERE incumbent = "Milton H. West" |