question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
32
484
how many district with incumbent being lindy boggs
CREATE TABLE table_1341586_19 (district VARCHAR, incumbent VARCHAR)
SELECT COUNT(district) FROM table_1341586_19 WHERE incumbent = "Lindy Boggs"
what's the result with candidates being billy tauzin (d) unopposed
CREATE TABLE table_1341586_19 (result VARCHAR, candidates VARCHAR)
SELECT result FROM table_1341586_19 WHERE candidates = "Billy Tauzin (D) Unopposed"
how many candidates with result being retired to run for u. s. senate republican hold
CREATE TABLE table_1341586_19 (candidates VARCHAR, result VARCHAR)
SELECT COUNT(candidates) FROM table_1341586_19 WHERE result = "Retired to run for U. S. Senate Republican hold"
what's the result with district being louisiana 2
CREATE TABLE table_1341586_19 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341586_19 WHERE district = "Louisiana 2"
who is the the candidates with first elected being 1977
CREATE TABLE table_1341586_19 (candidates VARCHAR, first_elected VARCHAR)
SELECT candidates FROM table_1341586_19 WHERE first_elected = 1977
What happened to the incombent who was elected in 1980?
CREATE TABLE table_1341586_14 (result VARCHAR, first_elected VARCHAR)
SELECT result FROM table_1341586_14 WHERE first_elected = 1980
How did the election end for Terry L. Bruce?
CREATE TABLE table_1341586_14 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341586_14 WHERE incumbent = "Terry L. Bruce"
What party was Tony P. Hall affiliated with?
CREATE TABLE table_1341586_36 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341586_36 WHERE incumbent = "Tony P. Hall"
Name number first elected for tennessee 2?
CREATE TABLE table_1341586_43 (first_elected VARCHAR, district VARCHAR)
SELECT COUNT(first_elected) FROM table_1341586_43 WHERE district = "Tennessee 2"
Name the candidates in 1964
CREATE TABLE table_1341586_43 (candidates VARCHAR, first_elected VARCHAR)
SELECT candidates FROM table_1341586_43 WHERE first_elected = 1964
How many districts have Mac Sweeney as incumbent?
CREATE TABLE table_1341586_44 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(candidates) FROM table_1341586_44 WHERE incumbent = "Mac Sweeney"
Who are all the candidates vying for Henry B. Gonzalez' seat?
CREATE TABLE table_1341586_44 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341586_44 WHERE incumbent = "Henry B. Gonzalez"
Name all the candidates vying for Albert Bustamante's seat.
CREATE TABLE table_1341586_44 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341586_44 WHERE incumbent = "Albert Bustamante"
In what district was the incumbent Michael Bilirakis?
CREATE TABLE table_1341598_10 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341598_10 WHERE incumbent = "Michael Bilirakis"
Who is the candidate in election where the incumbent was first elected in 1980?
CREATE TABLE table_1341598_10 (candidates VARCHAR, first_elected VARCHAR)
SELECT candidates FROM table_1341598_10 WHERE first_elected = 1980
What party does incumbent Charles Edward Bennett belong to?
CREATE TABLE table_1341598_10 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341598_10 WHERE incumbent = "Charles Edward Bennett"
What was the result of the election in the Florida 18 district?
CREATE TABLE table_1341598_10 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341598_10 WHERE district = "Florida 18"
In what district is the incumbent Lawrence J. Smith?
CREATE TABLE table_1341598_10 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341598_10 WHERE incumbent = "Lawrence J. Smith"
where is the district where the incumbent is del latta?
CREATE TABLE table_1341598_36 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341598_36 WHERE incumbent = "Del Latta"
what is the party for district ohio 11?
CREATE TABLE table_1341598_36 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1341598_36 WHERE district = "Ohio 11"
who were the candidates for district ohio 6?
CREATE TABLE table_1341598_36 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1341598_36 WHERE district = "Ohio 6"
What is the party for District Georgia 9?
CREATE TABLE table_1341598_11 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1341598_11 WHERE district = "Georgia 9"
Which district shows a first elected of 1980?
CREATE TABLE table_1341598_11 (district VARCHAR, first_elected VARCHAR)
SELECT district FROM table_1341598_11 WHERE first_elected = 1980
What is the party for the incumbent Wyche Fowler?
CREATE TABLE table_1341598_11 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341598_11 WHERE incumbent = "Wyche Fowler"
Who are shown as candidates when George Darden is the incumbent?
CREATE TABLE table_1341598_11 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341598_11 WHERE incumbent = "George Darden"
What district has Dan Crane as incumbent?
CREATE TABLE table_1341598_14 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341598_14 WHERE incumbent = "Dan Crane"
In which district is Robert W. Edgar the incumbent?
CREATE TABLE table_1341598_39 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341598_39 WHERE incumbent = "Robert W. Edgar"
To which party does Robert W. Edgar belong?
CREATE TABLE table_1341598_39 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341598_39 WHERE incumbent = "Robert W. Edgar"
What district is incumbent jack hightower from?
CREATE TABLE table_1341598_44 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341598_44 WHERE incumbent = "Jack Hightower"
What year were the election results tom loeffler (r) 80.6% joe sullivan (d) 19.4%?
CREATE TABLE table_1341598_44 (first_elected INTEGER, candidates VARCHAR)
SELECT MIN(first_elected) FROM table_1341598_44 WHERE candidates = "Tom Loeffler (R) 80.6% Joe Sullivan (D) 19.4%"
What incumbent won the district of texas 22?
CREATE TABLE table_1341598_44 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341598_44 WHERE district = "Texas 22"
Who's the incumbent of the Louisiana 1 district?
CREATE TABLE table_1341604_19 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341604_19 WHERE district = "Louisiana 1"
Who were the candidates in the Louisiana 4 district?
CREATE TABLE table_1341604_19 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1341604_19 WHERE district = "Louisiana 4"
Who's the incumbent in the district first elected in 1976?
CREATE TABLE table_1341604_19 (incumbent VARCHAR, first_elected VARCHAR)
SELECT incumbent FROM table_1341604_19 WHERE first_elected = 1976
what's the incumbent with district being massachusetts 2
CREATE TABLE table_1341604_22 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341604_22 WHERE district = "Massachusetts 2"
what's the party with candidates being silvio conte (r) unopposed
CREATE TABLE table_1341604_22 (party VARCHAR, candidates VARCHAR)
SELECT party FROM table_1341604_22 WHERE candidates = "Silvio Conte (R) Unopposed"
what's the first elected with incumbent being joseph d. early
CREATE TABLE table_1341604_22 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1341604_22 WHERE incumbent = "Joseph D. Early"
what's the party with dbeingtrict being massachusetts 3
CREATE TABLE table_1341604_22 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1341604_22 WHERE district = "Massachusetts 3"
How many candidates won the election in the district whose incumbent is Bud Shuster?
CREATE TABLE table_1341604_39 (candidates VARCHAR, incumbent VARCHAR)
SELECT COUNT(candidates) FROM table_1341604_39 WHERE incumbent = "Bud Shuster"
What are the candidates in the district whose incumbent is Gus Yatron?
CREATE TABLE table_1341604_39 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341604_39 WHERE incumbent = "Gus Yatron"
What's the winning party in the Pennsylvania 6 district?
CREATE TABLE table_1341604_39 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1341604_39 WHERE district = "Pennsylvania 6"
What candidate is a member of the Republican party?
CREATE TABLE table_1341640_39 (candidates VARCHAR, party VARCHAR)
SELECT candidates FROM table_1341640_39 WHERE party = "Republican"
What district is Ray Musto the incumbent of?
CREATE TABLE table_1341640_39 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341640_39 WHERE incumbent = "Ray Musto"
How many parties does the incumbent Donald A. Bailey a member of?
CREATE TABLE table_1341640_39 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(party) FROM table_1341640_39 WHERE incumbent = "Donald A. Bailey"
What was the outcome of the election in Pennsylvania 6 district?
CREATE TABLE table_1341640_39 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341640_39 WHERE district = "Pennsylvania 6"
Where was Al Gore elected
CREATE TABLE table_1341640_43 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341640_43 WHERE incumbent = "Al Gore"
Election results of 1976
CREATE TABLE table_1341640_43 (result VARCHAR, first_elected VARCHAR)
SELECT result FROM table_1341640_43 WHERE first_elected = 1976
What was the incumbent for missouri 1?
CREATE TABLE table_1341640_26 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341640_26 WHERE district = "Missouri 1"
What was the result of the election when someone was first elected in 1960?
CREATE TABLE table_1341640_14 (result VARCHAR, first_elected VARCHAR)
SELECT result FROM table_1341640_14 WHERE first_elected = 1960
What year was incumbent phil crane first elected?
CREATE TABLE table_1341640_14 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1341640_14 WHERE incumbent = "Phil Crane"
What candidates were featured in the 1974 election?
CREATE TABLE table_1341640_14 (candidates VARCHAR, first_elected VARCHAR)
SELECT candidates FROM table_1341640_14 WHERE first_elected = 1974
What year was Jerry Huckaby first elected?
CREATE TABLE table_1341663_19 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1341663_19 WHERE incumbent = "Jerry Huckaby"
What other cadidate ran against Dave Treen?
CREATE TABLE table_1341663_19 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341663_19 WHERE incumbent = "Dave Treen"
What year was the earliest first elected?
CREATE TABLE table_1341663_19 (first_elected INTEGER)
SELECT MIN(first_elected) FROM table_1341663_19
What district did Dave Treen serve?
CREATE TABLE table_1341663_19 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341663_19 WHERE incumbent = "Dave Treen"
How many sitting politicians were originally elected in 1972?
CREATE TABLE table_1341663_11 (incumbent VARCHAR, first_elected VARCHAR)
SELECT COUNT(incumbent) FROM table_1341663_11 WHERE first_elected = 1972
In the Georgia 6 district, what is the elected party?
CREATE TABLE table_1341663_11 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1341663_11 WHERE district = "Georgia 6"
In the race involving Billy Lee Evans as the seated Representative, was he elected again?
CREATE TABLE table_1341663_11 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341663_11 WHERE incumbent = "Billy Lee Evans"
How many parties are there in races involving Dawson Mathis?
CREATE TABLE table_1341663_11 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(party) FROM table_1341663_11 WHERE incumbent = "Dawson Mathis"
Which district is republican?
CREATE TABLE table_1341663_44 (district VARCHAR, party VARCHAR)
SELECT district FROM table_1341663_44 WHERE party = "Republican"
Name the result when the incumbent was george h. mahon
CREATE TABLE table_1341663_44 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341663_44 WHERE incumbent = "George H. Mahon"
What was the incumbent of texas 3?
CREATE TABLE table_1341663_44 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341663_44 WHERE district = "Texas 3"
What was the incumbent for texas 19?
CREATE TABLE table_1341663_44 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341663_44 WHERE district = "Texas 19"
Which district has candidates is dick gephardt (d) 81.9% lee buchschacher (r) 18.1%?
CREATE TABLE table_1341663_26 (district VARCHAR, candidates VARCHAR)
SELECT district FROM table_1341663_26 WHERE candidates = "Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%"
What is the result for the district missouri 2?
CREATE TABLE table_1341663_26 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341663_26 WHERE district = "Missouri 2"
When was the first elected for district missouri 7?
CREATE TABLE table_1341663_26 (first_elected INTEGER, district VARCHAR)
SELECT MIN(first_elected) FROM table_1341663_26 WHERE district = "Missouri 7"
When was the earliest first election?
CREATE TABLE table_1341663_26 (first_elected INTEGER)
SELECT MIN(first_elected) FROM table_1341663_26
How many times was the candidates dick gephardt (d) 81.9% lee buchschacher (r) 18.1%?
CREATE TABLE table_1341663_26 (incumbent VARCHAR, candidates VARCHAR)
SELECT COUNT(incumbent) FROM table_1341663_26 WHERE candidates = "Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1%"
What district did S. William Green belong to?
CREATE TABLE table_1341663_33 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341663_33 WHERE incumbent = "S. William Green"
What district did the Democratic party incumbent Stephen J. Solarz get first elected to in 1974?
CREATE TABLE table_1341663_33 (district VARCHAR, incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT district FROM table_1341663_33 WHERE party = "Democratic" AND first_elected = 1974 AND incumbent = "Stephen J. Solarz"
When was Stephen J. Solarz first elected?
CREATE TABLE table_1341663_33 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1341663_33 WHERE incumbent = "Stephen J. Solarz"
Who were the candidates when Shirley Chisholm was the incumbent?
CREATE TABLE table_1341663_33 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341663_33 WHERE incumbent = "Shirley Chisholm"
What is the district that has Bob Wilson as an incumbent?
CREATE TABLE table_1341663_6 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341663_6 WHERE incumbent = "Bob Wilson"
How many outcomes were there in the elections in California 38?
CREATE TABLE table_1341663_6 (result VARCHAR, district VARCHAR)
SELECT COUNT(result) FROM table_1341663_6 WHERE district = "California 38"
What district is Charles H. Wilson the incumbent of?
CREATE TABLE table_1341663_6 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341663_6 WHERE incumbent = "Charles H. Wilson"
What party was the winning one in the elections in the California 30 district?
CREATE TABLE table_1341663_6 (party VARCHAR, district VARCHAR)
SELECT party FROM table_1341663_6 WHERE district = "California 30"
How many times did an election feature the result robert l. leggett (d) 50.2% albert dehr (r) 49.8%?
CREATE TABLE table_1341672_6 (result VARCHAR, candidates VARCHAR)
SELECT COUNT(result) FROM table_1341672_6 WHERE candidates = "Robert L. Leggett (D) 50.2% Albert Dehr (R) 49.8%"
What year was incumbent mark w. hannaford elected?
CREATE TABLE table_1341672_6 (first_elected INTEGER, incumbent VARCHAR)
SELECT MIN(first_elected) FROM table_1341672_6 WHERE incumbent = "Mark W. Hannaford"
what is the district where the incumbent is richard kelly?
CREATE TABLE table_1341672_10 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341672_10 WHERE incumbent = "Richard Kelly"
what is the result where the candidates is robert l. f. sikes (d) unopposed?
CREATE TABLE table_1341672_10 (result VARCHAR, candidates VARCHAR)
SELECT result FROM table_1341672_10 WHERE candidates = "Robert L. F. Sikes (D) Unopposed"
who is the incumbent where the candidates is william v. chappell, jr. (d) unopposed?
CREATE TABLE table_1341672_10 (incumbent VARCHAR, candidates VARCHAR)
SELECT incumbent FROM table_1341672_10 WHERE candidates = "William V. Chappell, Jr. (D) Unopposed"
what is the district where the incumbent is james a. haley?
CREATE TABLE table_1341672_10 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341672_10 WHERE incumbent = "James A. Haley"
who are the candidates where the district is florida 8?
CREATE TABLE table_1341672_10 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1341672_10 WHERE district = "Florida 8"
what year was the first elected incumbant Sidney R. Yates?
CREATE TABLE table_1341690_13 (first_elected VARCHAR, incumbent VARCHAR)
SELECT first_elected FROM table_1341690_13 WHERE incumbent = "Sidney R. Yates"
How many incumbents are there in district Louisiana 5?
CREATE TABLE table_1341690_18 (incumbent VARCHAR, district VARCHAR)
SELECT COUNT(incumbent) FROM table_1341690_18 WHERE district = "Louisiana 5"
How many incumbents resulted in a lost renomination republican gain?
CREATE TABLE table_1341690_18 (incumbent VARCHAR, result VARCHAR)
SELECT COUNT(incumbent) FROM table_1341690_18 WHERE result = "Lost renomination Republican gain"
In which district is the incumbent John Breaux?
CREATE TABLE table_1341690_18 (district VARCHAR, incumbent VARCHAR)
SELECT district FROM table_1341690_18 WHERE incumbent = "John Breaux"
What year was Otto Passman (d) unopposed first elected?
CREATE TABLE table_1341690_18 (first_elected INTEGER, candidates VARCHAR)
SELECT MAX(first_elected) FROM table_1341690_18 WHERE candidates = "Otto Passman (D) Unopposed"
What were the results when the incumbent was John Breaux?
CREATE TABLE table_1341690_18 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341690_18 WHERE incumbent = "John Breaux"
Name the candidates for texas 1
CREATE TABLE table_1341690_43 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1341690_43 WHERE district = "Texas 1"
Name the incumbent for district texas 12
CREATE TABLE table_1341690_43 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341690_43 WHERE district = "Texas 12"
Name the candidates for texas 20
CREATE TABLE table_1341690_43 (candidates VARCHAR, district VARCHAR)
SELECT candidates FROM table_1341690_43 WHERE district = "Texas 20"
what is the district with the candidates edward boland (d) unopposed?
CREATE TABLE table_1341690_21 (district VARCHAR, candidates VARCHAR)
SELECT district FROM table_1341690_21 WHERE candidates = "Edward Boland (D) Unopposed"
what is the party where the candidates are edward boland (d) unopposed?
CREATE TABLE table_1341690_21 (party VARCHAR, candidates VARCHAR)
SELECT party FROM table_1341690_21 WHERE candidates = "Edward Boland (D) Unopposed"
what is the party where the incumbent is edward boland?
CREATE TABLE table_1341690_21 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341690_21 WHERE incumbent = "Edward Boland"
How many times was the candidates paul tsongas (d) 60.6% paul w. cronin (r) 39.4%?
CREATE TABLE table_1341690_21 (incumbent VARCHAR, candidates VARCHAR)
SELECT COUNT(incumbent) FROM table_1341690_21 WHERE candidates = "Paul Tsongas (D) 60.6% Paul W. Cronin (R) 39.4%"
List all candidates in elections where the incumbent politician is Goodloe Byron.
CREATE TABLE table_1341690_20 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341690_20 WHERE incumbent = "Goodloe Byron"
How many instances are there of party in the situation where Robert Bauman is the incumbent politician?
CREATE TABLE table_1341690_20 (party VARCHAR, incumbent VARCHAR)
SELECT COUNT(party) FROM table_1341690_20 WHERE incumbent = "Robert Bauman"
What is the party of the election in which Robert Bauman is the incumbent?
CREATE TABLE table_1341690_20 (party VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1341690_20 WHERE incumbent = "Robert Bauman"
List all results where the voting district is Maryland 7.
CREATE TABLE table_1341690_20 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341690_20 WHERE district = "Maryland 7"

please use the val ign file for training, its much cleaner. thanks :)

Downloads last month
245
Edit dataset card

Models trained or fine-tuned on knowrohit07/know_sql