context stringlengths 27 489 | question stringlengths 12 244 | answer stringlengths 18 557 |
|---|---|---|
CREATE TABLE table_1341423_49 (first_elected INTEGER, incumbent VARCHAR) | When was the first election in the district whose incumbent is Ron Kind? | SELECT MIN(first_elected) FROM table_1341423_49 WHERE incumbent = "Ron Kind" |
CREATE TABLE table_1341423_43 (first_elected VARCHAR, district VARCHAR) | Name the first elected for texas 6 district | SELECT first_elected FROM table_1341423_43 WHERE district = "Texas 6" |
CREATE TABLE table_1341423_43 (incumbent VARCHAR, district VARCHAR) | Name the incumbent for texas 22 district | SELECT incumbent FROM table_1341423_43 WHERE district = "Texas 22" |
CREATE TABLE table_1341423_9 (results VARCHAR, district VARCHAR) | How did the election in the Florida 14 district end? | SELECT results FROM table_1341423_9 WHERE district = "Florida 14" |
CREATE TABLE table_1341423_9 (incumbent VARCHAR, district VARCHAR) | Who's the incumbent of Florida 12 district? | SELECT incumbent FROM table_1341423_9 WHERE district = "Florida 12" |
CREATE TABLE table_1341423_9 (incumbent VARCHAR, district VARCHAR) | Who is the incumbent of Florida 9? | SELECT incumbent FROM table_1341423_9 WHERE district = "Florida 9" |
CREATE TABLE table_1341453_11 (incumbent VARCHAR, district VARCHAR) | Who's the incumbent in Florida 6? | SELECT incumbent FROM table_1341453_11 WHERE district = "Florida 6" |
CREATE TABLE table_1341453_11 (party VARCHAR, incumbent VARCHAR) | What party does Bill McCollum belong to? | SELECT party FROM table_1341453_11 WHERE incumbent = "Bill McCollum" |
CREATE TABLE table_1341453_11 (results VARCHAR, incumbent VARCHAR) | What are the results in the county with Peter Deutsch as a candidate? | SELECT results FROM table_1341453_11 WHERE incumbent = "Peter Deutsch" |
CREATE TABLE table_1341453_11 (results VARCHAR, incumbent VARCHAR) | How did the election end for Robert Wexler? | SELECT results FROM table_1341453_11 WHERE incumbent = "Robert Wexler" |
CREATE TABLE table_1341453_22 (party VARCHAR, district VARCHAR) | What party was the winner in the district Maryland 6? | SELECT party FROM table_1341453_22 WHERE district = "Maryland 6" |
CREATE TABLE table_1341453_22 (candidates VARCHAR, district VARCHAR) | Who run for office in district Maryland 3? | SELECT candidates FROM table_1341453_22 WHERE district = "Maryland 3" |
CREATE TABLE table_1341453_22 (candidates VARCHAR, party VARCHAR, district VARCHAR) | List the candidates in district Maryland 1 where the republican party won. | SELECT candidates FROM table_1341453_22 WHERE party = "Republican" AND district = "Maryland 1" |
CREATE TABLE table_1341453_22 (first_elected INTEGER, district VARCHAR) | When did the elections take place in district Maryland 2? | SELECT MIN(first_elected) FROM table_1341453_22 WHERE district = "Maryland 2" |
CREATE TABLE table_1341453_32 (party VARCHAR, incumbent VARCHAR) | What party is Frank Lobiondo a member of? | SELECT party FROM table_1341453_32 WHERE incumbent = "Frank LoBiondo" |
CREATE TABLE table_1341453_32 (candidates VARCHAR, incumbent VARCHAR) | Who were the candidates in the district whose incumbent is Bill Pascrell? | SELECT candidates FROM table_1341453_32 WHERE incumbent = "Bill Pascrell" |
CREATE TABLE table_1341453_32 (party VARCHAR, incumbent VARCHAR) | What is the party of the district incumbent Jim Saxton? | SELECT party FROM table_1341453_32 WHERE incumbent = "Jim Saxton" |
CREATE TABLE table_1341453_34 (party VARCHAR, incumbent VARCHAR) | What party is John McHugh a member of? | SELECT party FROM table_1341453_34 WHERE incumbent = "John McHugh" |
CREATE TABLE table_1341453_34 (party VARCHAR, first_elected VARCHAR) | What's the party elected in the district that first elected in 1990? | SELECT party FROM table_1341453_34 WHERE first_elected = "1990" |
CREATE TABLE table_1341453_34 (first_elected VARCHAR, incumbent VARCHAR) | What's the first elected year of the district that Ed Towns is an incumbent of? | SELECT first_elected FROM table_1341453_34 WHERE incumbent = "Ed Towns" |
CREATE TABLE table_1341453_34 (party VARCHAR, results VARCHAR) | How many elections have resulted in retired democratic hold? | SELECT COUNT(party) FROM table_1341453_34 WHERE results = "Retired Democratic hold" |
CREATE TABLE table_1341453_34 (candidates VARCHAR, first_elected VARCHAR) | What were the candidates in the district that first elected in 1980? | SELECT candidates FROM table_1341453_34 WHERE first_elected = "1980" |
CREATE TABLE table_1341453_40 (first_elected VARCHAR, district VARCHAR) | When was Chaka Fattah first elected in the Pennsylvania 2 district? | SELECT first_elected FROM table_1341453_40 WHERE district = "Pennsylvania 2" |
CREATE TABLE table_1341453_40 (incumbent VARCHAR, first_elected VARCHAR) | How many incumbents were first elected in 1984? | SELECT COUNT(incumbent) FROM table_1341453_40 WHERE first_elected = "1984" |
CREATE TABLE table_1341453_40 (first_elected VARCHAR, incumbent VARCHAR) | When was incumbent Bud Shuster first elected? | SELECT first_elected FROM table_1341453_40 WHERE incumbent = "Bud Shuster" |
CREATE TABLE table_1341453_40 (candidates VARCHAR, incumbent VARCHAR) | How many candidates ran in the election where Mike Doyle was the incumbent? | SELECT COUNT(candidates) FROM table_1341453_40 WHERE incumbent = "Mike Doyle" |
CREATE TABLE table_1341453_40 (party VARCHAR, incumbent VARCHAR) | Incumbent Tim Holden belonged to what party? | SELECT party FROM table_1341453_40 WHERE incumbent = "Tim Holden" |
CREATE TABLE table_1341453_40 (district VARCHAR, incumbent VARCHAR) | In what district was Tim Holden the incumbent? | SELECT district FROM table_1341453_40 WHERE incumbent = "Tim Holden" |
CREATE TABLE table_1341453_44 (incumbent VARCHAR, first_elected VARCHAR) | Which incumbent was first elected in 1984? | SELECT incumbent FROM table_1341453_44 WHERE first_elected = 1984 |
CREATE TABLE table_1341453_44 (first_elected VARCHAR, district VARCHAR) | When was the incumbent in the Tennessee 4 district first elected? | SELECT first_elected FROM table_1341453_44 WHERE district = "Tennessee 4" |
CREATE TABLE table_1341453_44 (candidates VARCHAR, district VARCHAR) | Who are the candidates in the Tennessee 3 district election? | SELECT candidates FROM table_1341453_44 WHERE district = "Tennessee 3" |
CREATE TABLE table_1341453_44 (first_elected INTEGER, incumbent VARCHAR) | What year was Bob Clement first elected? | SELECT MIN(first_elected) FROM table_1341453_44 WHERE incumbent = "Bob Clement" |
CREATE TABLE table_1341472_11 (candidates VARCHAR, incumbent VARCHAR) | List all the candidates for the seat where the incumbent is Sam Gibbons? | SELECT candidates FROM table_1341472_11 WHERE incumbent = "Sam Gibbons" |
CREATE TABLE table_1341453_51 (candidates VARCHAR, district VARCHAR) | Who were the candidates in district Wisconsin 4? | SELECT candidates FROM table_1341453_51 WHERE district = "Wisconsin 4" |
CREATE TABLE table_1341453_51 (incumbent VARCHAR, first_elected VARCHAR) | Who's the incumbent in the district that first elected in 1969? | SELECT incumbent FROM table_1341453_51 WHERE first_elected = 1969 |
CREATE TABLE table_1341453_51 (incumbent VARCHAR, district VARCHAR) | Who's the incumbent of district Wisconsin 5? | SELECT incumbent FROM table_1341453_51 WHERE district = "Wisconsin 5" |
CREATE TABLE table_1341453_7 (district VARCHAR, incumbent VARCHAR) | How many districts does gary condit represent? | SELECT COUNT(district) FROM table_1341453_7 WHERE incumbent = "Gary Condit" |
CREATE TABLE table_1341453_7 (party VARCHAR, first_elected VARCHAR) | What party was first elected in 1974? | SELECT party FROM table_1341453_7 WHERE first_elected = 1974 |
CREATE TABLE table_1341453_7 (district VARCHAR, incumbent VARCHAR) | What district is bill thomas from? | SELECT district FROM table_1341453_7 WHERE incumbent = "Bill Thomas" |
CREATE TABLE table_1341472_12 (incumbent VARCHAR, district VARCHAR) | Who was the incumbent of district Georgia 2? | SELECT incumbent FROM table_1341472_12 WHERE district = "Georgia 2" |
CREATE TABLE table_1341472_12 (district VARCHAR, incumbent VARCHAR) | What district is Mac Collins an incumbent in? | SELECT district FROM table_1341472_12 WHERE incumbent = "Mac Collins" |
CREATE TABLE table_1341472_12 (first_elected INTEGER) | What's the first elected year of the district who's been the last one to do so? | SELECT MAX(first_elected) FROM table_1341472_12 |
CREATE TABLE table_1341472_12 (candidates VARCHAR, incumbent VARCHAR) | Who were the candidates in the district where Charlie Norwood is the incumbent? | SELECT candidates FROM table_1341472_12 WHERE incumbent = "Charlie Norwood" |
CREATE TABLE table_1341472_20 (result VARCHAR, party VARCHAR, incumbent VARCHAR) | Which result did the Republican have with the incumbent, Billy Tauzin? | SELECT result FROM table_1341472_20 WHERE party = "Republican" AND incumbent = "Billy Tauzin" |
CREATE TABLE table_1341472_20 (district VARCHAR, incumbent VARCHAR) | How many districts was Robert Livingston incumbent in? | SELECT COUNT(district) FROM table_1341472_20 WHERE incumbent = "Robert Livingston" |
CREATE TABLE table_1341472_20 (first_elected INTEGER) | What is the first election year listed? | SELECT MIN(first_elected) FROM table_1341472_20 |
CREATE TABLE table_1341472_20 (result VARCHAR, incumbent VARCHAR) | List all results in elections with Richard Baker as the incumbent. | SELECT result FROM table_1341472_20 WHERE incumbent = "Richard Baker" |
CREATE TABLE table_1341472_49 (party VARCHAR, district VARCHAR) | how many party with district being washington 7 | SELECT COUNT(party) FROM table_1341472_49 WHERE district = "Washington 7" |
CREATE TABLE table_1341472_49 (first_elected INTEGER) | what's the latest first elected year | SELECT MAX(first_elected) FROM table_1341472_49 |
CREATE TABLE table_1341472_49 (result VARCHAR, district VARCHAR) | what's the result with district being washington 7 | SELECT result FROM table_1341472_49 WHERE district = "Washington 7" |
CREATE TABLE table_1341472_49 (first_elected INTEGER, district VARCHAR) | what being the minimum first elected with district being washington 7 | SELECT MIN(first_elected) FROM table_1341472_49 WHERE district = "Washington 7" |
CREATE TABLE table_1341472_15 (result VARCHAR, first_elected VARCHAR) | what's the result for first elected in 1948 , 1964 | SELECT result FROM table_1341472_15 WHERE first_elected = "1948 , 1964" |
CREATE TABLE table_1341472_15 (first_elected VARCHAR, district VARCHAR) | what's the first elected with district illinois 18 | SELECT first_elected FROM table_1341472_15 WHERE district = "Illinois 18" |
CREATE TABLE table_1341472_15 (party VARCHAR, candidates VARCHAR) | what's the party with candidates jerry weller (r) 51.77% clem balanoff (d) 48.23% | SELECT party FROM table_1341472_15 WHERE candidates = "Jerry Weller (R) 51.77% Clem Balanoff (D) 48.23%" |
CREATE TABLE table_1341472_15 (party VARCHAR, first_elected VARCHAR) | what's the party for the first elected in 1980 | SELECT party FROM table_1341472_15 WHERE first_elected = "1980" |
CREATE TABLE table_1341472_15 (result VARCHAR, district VARCHAR) | what's the result with district illinois 15 | SELECT result FROM table_1341472_15 WHERE district = "Illinois 15" |
CREATE TABLE table_1341472_15 (candidates VARCHAR, first_elected VARCHAR) | what's the total number of candidates for first elected in 1948 , 1964 | SELECT COUNT(candidates) FROM table_1341472_15 WHERE first_elected = "1948 , 1964" |
CREATE TABLE table_1341472_34 (district VARCHAR, first_elected VARCHAR) | Name thedistrict for 1994 | SELECT district FROM table_1341472_34 WHERE first_elected = 1994 |
CREATE TABLE table_1341472_34 (result VARCHAR, district VARCHAR) | Name the result for New York 11 | SELECT result FROM table_1341472_34 WHERE district = "New York 11" |
CREATE TABLE table_1341472_34 (first_elected VARCHAR, district VARCHAR) | Name the number of first elected for new york 11 | SELECT COUNT(first_elected) FROM table_1341472_34 WHERE district = "New York 11" |
CREATE TABLE table_1341472_34 (first_elected VARCHAR, district VARCHAR) | Name the first elected for new york 1 | SELECT COUNT(first_elected) FROM table_1341472_34 WHERE district = "New York 1" |
CREATE TABLE table_1341472_45 (first_elected VARCHAR, incumbent VARCHAR) | What year was Larry combest elected | SELECT first_elected FROM table_1341472_45 WHERE incumbent = "Larry Combest" |
CREATE TABLE table_1341522_36 (district VARCHAR, incumbent VARCHAR) | To what district does Bill Hefner belong? | SELECT district FROM table_1341522_36 WHERE incumbent = "Bill Hefner" |
CREATE TABLE table_1341522_36 (opponent VARCHAR, incumbent VARCHAR) | Who ran unsuccessfully against Bill Hefner? | SELECT opponent FROM table_1341522_36 WHERE incumbent = "Bill Hefner" |
CREATE TABLE table_1341522_36 (status VARCHAR, incumbent VARCHAR) | How many districts are respresented by Alex McMillan? | SELECT COUNT(status) FROM table_1341522_36 WHERE incumbent = "Alex McMillan" |
CREATE TABLE table_1341522_13 (party VARCHAR, incumbent VARCHAR) | What party is Sanford Bishop a member of? | SELECT party FROM table_1341522_13 WHERE incumbent = "Sanford Bishop" |
CREATE TABLE table_1341522_13 (party VARCHAR, district VARCHAR) | What party won in the district Georgia7? | SELECT party FROM table_1341522_13 WHERE district = "Georgia7" |
CREATE TABLE table_1341522_13 (first_elected INTEGER, district VARCHAR) | What's Georgia5's first elected year? | SELECT MAX(first_elected) FROM table_1341522_13 WHERE district = "Georgia5" |
CREATE TABLE table_1341522_24 (opponent VARCHAR, incumbent VARCHAR) | Who opposed Marty Meehan in each election? | SELECT opponent FROM table_1341522_24 WHERE incumbent = "Marty Meehan" |
CREATE TABLE table_1341522_24 (opponent VARCHAR, district VARCHAR) | Who are the opponents in Massachusetts5 district? | SELECT opponent FROM table_1341522_24 WHERE district = "Massachusetts5" |
CREATE TABLE table_1341522_24 (party VARCHAR, district VARCHAR) | What parties are represented in Massachusetts4 district? | SELECT party FROM table_1341522_24 WHERE district = "Massachusetts4" |
CREATE TABLE table_1341522_24 (incumbent VARCHAR, district VARCHAR) | Who is the incumbent in district Massachusetts7? | SELECT incumbent FROM table_1341522_24 WHERE district = "Massachusetts7" |
CREATE TABLE table_1341549_33 (first_elected VARCHAR, district VARCHAR) | how many first elected with district being new york2 | SELECT COUNT(first_elected) FROM table_1341549_33 WHERE district = "New York2" |
CREATE TABLE table_1341549_33 (district VARCHAR, candidates VARCHAR) | how many district with candidates being eliot l. engel (d) 85.2% martin richman (r) 14.8% | SELECT COUNT(district) FROM table_1341549_33 WHERE candidates = "Eliot L. Engel (D) 85.2% Martin Richman (R) 14.8%" |
CREATE TABLE table_1341549_33 (candidates VARCHAR, party VARCHAR, district VARCHAR) | how many candidates with party being democratic and dbeingtrict being new york5 | SELECT COUNT(candidates) FROM table_1341549_33 WHERE party = "Democratic" AND district = "New York5" |
CREATE TABLE table_1341549_33 (first_elected VARCHAR, result VARCHAR, incumbent VARCHAR) | how many first elected with result being re-elected and incumbent being gary ackerman redistricted from the 7th district | SELECT COUNT(first_elected) FROM table_1341549_33 WHERE result = "Re-elected" AND incumbent = "Gary Ackerman Redistricted from the 7th district" |
CREATE TABLE table_1341522_41 (party VARCHAR, incumbent VARCHAR) | What party does ron klink represent? | SELECT party FROM table_1341522_41 WHERE incumbent = "Ron Klink" |
CREATE TABLE table_1341522_41 (opponent VARCHAR, incumbent VARCHAR) | Who was in the election that was for incumbent bud shuster's seat? | SELECT opponent FROM table_1341522_41 WHERE incumbent = "Bud Shuster" |
CREATE TABLE table_1341522_41 (district VARCHAR, first_elected VARCHAR) | What district had someone first elected in 1982? | SELECT district FROM table_1341522_41 WHERE first_elected = 1982 |
CREATE TABLE table_1341522_41 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR) | How many republican incumbents first elected in 1974? | SELECT COUNT(incumbent) FROM table_1341522_41 WHERE party = "Republican" AND first_elected = 1974 |
CREATE TABLE table_1341522_41 (status VARCHAR, incumbent VARCHAR) | What was the result of the election where william f. goodling was the incumbent? | SELECT status FROM table_1341522_41 WHERE incumbent = "William F. Goodling" |
CREATE TABLE table_1341568_34 (party VARCHAR, incumbent VARCHAR) | What party did incumbent Howard Coble belong to? | SELECT party FROM table_1341568_34 WHERE incumbent = "Howard Coble" |
CREATE TABLE table_1341568_34 (party VARCHAR, incumbent VARCHAR) | What party did incumbent Stephen L. Neal belong to? | SELECT party FROM table_1341568_34 WHERE incumbent = "Stephen L. Neal" |
CREATE TABLE table_1341568_34 (district VARCHAR, party VARCHAR, elected VARCHAR) | In how many districts was the democratic incumbent elected in 1974? | SELECT COUNT(district) FROM table_1341568_34 WHERE party = "Democratic" AND elected = 1974 |
CREATE TABLE table_1341568_34 (elected INTEGER, incumbent VARCHAR) | What year was incumbent Martin Lancaster elected? | SELECT MIN(elected) FROM table_1341568_34 WHERE incumbent = "Martin Lancaster" |
CREATE TABLE table_1341568_24 (district VARCHAR, elected VARCHAR) | What are the locations where the year of election is 1980? | SELECT district FROM table_1341568_24 WHERE elected = 1980 |
CREATE TABLE table_1341568_24 (district VARCHAR, incumbent VARCHAR) | What location is Vin Weber from? | SELECT district FROM table_1341568_24 WHERE incumbent = "Vin Weber" |
CREATE TABLE table_1341568_44 (district VARCHAR, incumbent VARCHAR) | What is Larry Combest's district? | SELECT district FROM table_1341568_44 WHERE incumbent = "Larry Combest" |
CREATE TABLE table_1341568_44 (status VARCHAR, incumbent VARCHAR) | What is the status of incumbent Charles Stenholm? | SELECT status FROM table_1341568_44 WHERE incumbent = "Charles Stenholm" |
CREATE TABLE table_1341568_6 (incumbent VARCHAR, district VARCHAR) | How many incumbents represent district California 34? | SELECT COUNT(incumbent) FROM table_1341568_6 WHERE district = "California 34" |
CREATE TABLE table_1341568_6 (status VARCHAR, party VARCHAR, elected VARCHAR) | What is the elected status of the Democratic party in 1989? | SELECT status FROM table_1341568_6 WHERE party = "Democratic" AND elected = "1989" |
CREATE TABLE table_1341568_6 (opponent VARCHAR, district VARCHAR) | Who are the opponents in district California 9? | SELECT opponent FROM table_1341568_6 WHERE district = "California 9" |
CREATE TABLE table_1341568_6 (incumbent VARCHAR, elected VARCHAR) | Who are the incumbents elected in 1974? | SELECT incumbent FROM table_1341568_6 WHERE elected = "1974" |
CREATE TABLE table_1341577_36 (incumbent VARCHAR, first_elected VARCHAR) | Which incumbent was first elected in 1958? | SELECT incumbent FROM table_1341577_36 WHERE first_elected = 1958 |
CREATE TABLE table_1341577_36 (candidates VARCHAR, incumbent VARCHAR) | Who are all the candidates who ran in the district where Ralph Regula is the incumbent? | SELECT candidates FROM table_1341577_36 WHERE incumbent = "Ralph Regula" |
CREATE TABLE table_1341577_36 (party VARCHAR, incumbent VARCHAR) | Which party does Del Latta belong to? | SELECT party FROM table_1341577_36 WHERE incumbent = "Del Latta" |
CREATE TABLE table_1341577_36 (party VARCHAR, incumbent VARCHAR) | Which party does Tom Luken belong to? | SELECT party FROM table_1341577_36 WHERE incumbent = "Tom Luken" |
CREATE TABLE table_1341577_34 (candidates VARCHAR, incumbent VARCHAR) | Who were all the candidates when incumbent was Tim Valentine? | SELECT candidates FROM table_1341577_34 WHERE incumbent = "Tim Valentine" |
CREATE TABLE table_1341577_22 (incumbent VARCHAR, first_elected VARCHAR) | Name the incumbent for first elected 1958 | SELECT incumbent FROM table_1341577_22 WHERE first_elected = 1958 |
CREATE TABLE table_1341577_22 (district VARCHAR, first_elected VARCHAR) | What is the district for 1952? | SELECT district FROM table_1341577_22 WHERE first_elected = 1952 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.