instruction
stringclasses 1
value | input
stringlengths 12
244
| output
stringlengths 22
468
|
---|---|---|
Translate the following into a SQL query | What is the incumbent for 1974? | SELECT Incumbent FROM table WHERE First elected = 1974 |
Translate the following into a SQL query | To what party does Cardiss Collins belong? | SELECT Party FROM table WHERE Incumbent = Cardiss Collins |
Translate the following into a SQL query | Who was the candidate in the Virginia 3 district election? | SELECT Candidates FROM table WHERE District = Virginia 3 |
Translate the following into a SQL query | What was the result of the election in the Virginia 3 district? | SELECT Result FROM table WHERE District = Virginia 3 |
Translate the following into a SQL query | Who were the candidates when Lamar S. Smith was incumbent? | SELECT Candidates FROM table WHERE Incumbent = Lamar S. Smith |
Translate the following into a SQL query | What party did Beau Boulter represent? | SELECT Party FROM table WHERE Incumbent = Beau Boulter |
Translate the following into a SQL query | Who were the candidates when Jack Fields was the incumbent? | SELECT Candidates FROM table WHERE Incumbent = Jack Fields |
Translate the following into a SQL query | What was the final result for Les Aspin? | SELECT Result FROM table WHERE Incumbent = Les Aspin |
Translate the following into a SQL query | Who were the candidates that ran when Jim Moody was up for reelection after 1982? | SELECT Candidates FROM table WHERE First elected = 1982 |
Translate the following into a SQL query | In the district called Tennessee 6, how many in total of first elected are there? | SELECT COUNT First elected FROM table WHERE District = Tennessee 6 |
Translate the following into a SQL query | Which party is associated with the person who was first elected in 1982? | SELECT Party FROM table WHERE First elected = 1982 |
Translate the following into a SQL query | How many candidates are listed all together for the incumbent named bob clement? | SELECT COUNT Candidates FROM table WHERE Incumbent = Bob Clement |
Translate the following into a SQL query | What was the results for the candidates listed as bart gordon (d) 76.5% wallace embry (r) 23.5%? | SELECT Result FROM table WHERE Candidates = Bart Gordon (D) 76.5% Wallace Embry (R) 23.5% |
Translate the following into a SQL query | Who is the incumbent that is listed with the candidates listed as marilyn lloyd (d) 57.4% harold w. coker (r) 42.6%? | SELECT Incumbent FROM table WHERE Candidates = Marilyn Lloyd (D) 57.4% Harold W. Coker (R) 42.6% |
Translate the following into a SQL query | In what district would you find the candidates listed as jim cooper (d) unopposed? | SELECT District FROM table WHERE Candidates = Jim Cooper (D) Unopposed |
Translate the following into a SQL query | who is the incumbent with candidates being bud shuster (r) unopposed | SELECT Incumbent FROM table WHERE Candidates = Bud Shuster (R) Unopposed |
Translate the following into a SQL query | who is the incumbent with candidates being tom ridge (r) 80.9% joylyn blackwell (d) 19.1% | SELECT Incumbent FROM table WHERE Candidates = Tom Ridge (R) 80.9% Joylyn Blackwell (D) 19.1% |
Translate the following into a SQL query | what's district with candidates being curt weldon (r) 61.3% bill spingler (d) 38.7% | SELECT District FROM table WHERE Candidates = Curt Weldon (R) 61.3% Bill Spingler (D) 38.7% |
Translate the following into a SQL query | what's party with district being pennsylvania 21 | SELECT Party FROM table WHERE District = Pennsylvania 21 |
Translate the following into a SQL query | what is the maximum first elected with incumbent being gus yatron | SELECT MAX First elected FROM table WHERE Incumbent = Gus Yatron |
Translate the following into a SQL query | what's the district with first elected being 1972 | SELECT District FROM table WHERE First elected = 1972 |
Translate the following into a SQL query | how many district with incumbent being lindy boggs | SELECT COUNT District FROM table WHERE Incumbent = Lindy Boggs |
Translate the following into a SQL query | what's the result with candidates being billy tauzin (d) unopposed | SELECT Result FROM table WHERE Candidates = Billy Tauzin (D) Unopposed |
Translate the following into a SQL query | how many candidates with result being retired to run for u. s. senate republican hold | SELECT COUNT Candidates FROM table WHERE Result = Retired to run for U. S. Senate Republican hold |
Translate the following into a SQL query | what's the result with district being louisiana 2 | SELECT Result FROM table WHERE District = Louisiana 2 |
Translate the following into a SQL query | who is the the candidates with first elected being 1977 | SELECT Candidates FROM table WHERE First elected = 1977 |
Translate the following into a SQL query | What happened to the incombent who was elected in 1980? | SELECT Result FROM table WHERE First elected = 1980 |
Translate the following into a SQL query | How did the election end for Terry L. Bruce? | SELECT Result FROM table WHERE Incumbent = Terry L. Bruce |
Translate the following into a SQL query | What party was Tony P. Hall affiliated with? | SELECT Party FROM table WHERE Incumbent = Tony P. Hall |
Translate the following into a SQL query | Name number first elected for tennessee 2? | SELECT COUNT First elected FROM table WHERE District = Tennessee 2 |
Translate the following into a SQL query | Name the candidates in 1964 | SELECT Candidates FROM table WHERE First elected = 1964 |
Translate the following into a SQL query | How many districts have Mac Sweeney as incumbent? | SELECT COUNT Candidates FROM table WHERE Incumbent = Mac Sweeney |
Translate the following into a SQL query | Who are all the candidates vying for Henry B. Gonzalez' seat? | SELECT Candidates FROM table WHERE Incumbent = Henry B. Gonzalez |
Translate the following into a SQL query | Name all the candidates vying for Albert Bustamante's seat. | SELECT Candidates FROM table WHERE Incumbent = Albert Bustamante |
Translate the following into a SQL query | In what district was the incumbent Michael Bilirakis? | SELECT District FROM table WHERE Incumbent = Michael Bilirakis |
Translate the following into a SQL query | Who is the candidate in election where the incumbent was first elected in 1980? | SELECT Candidates FROM table WHERE First elected = 1980 |
Translate the following into a SQL query | What party does incumbent Charles Edward Bennett belong to? | SELECT Party FROM table WHERE Incumbent = Charles Edward Bennett |
Translate the following into a SQL query | What was the result of the election in the Florida 18 district? | SELECT Result FROM table WHERE District = Florida 18 |
Translate the following into a SQL query | In what district is the incumbent Lawrence J. Smith? | SELECT District FROM table WHERE Incumbent = Lawrence J. Smith |
Translate the following into a SQL query | where is the district where the incumbent is del latta? | SELECT District FROM table WHERE Incumbent = Del Latta |
Translate the following into a SQL query | what is the party for district ohio 11? | SELECT Party FROM table WHERE District = Ohio 11 |
Translate the following into a SQL query | who were the candidates for district ohio 6? | SELECT Candidates FROM table WHERE District = Ohio 6 |
Translate the following into a SQL query | What is the party for District Georgia 9? | SELECT Party FROM table WHERE District = Georgia 9 |
Translate the following into a SQL query | Which district shows a first elected of 1980? | SELECT District FROM table WHERE First elected = 1980 |
Translate the following into a SQL query | What is the party for the incumbent Wyche Fowler? | SELECT Party FROM table WHERE Incumbent = Wyche Fowler |
Translate the following into a SQL query | Who are shown as candidates when George Darden is the incumbent? | SELECT Candidates FROM table WHERE Incumbent = George Darden |
Translate the following into a SQL query | What district has Dan Crane as incumbent? | SELECT District FROM table WHERE Incumbent = Dan Crane |
Translate the following into a SQL query | In which district is Robert W. Edgar the incumbent? | SELECT District FROM table WHERE Incumbent = Robert W. Edgar |
Translate the following into a SQL query | To which party does Robert W. Edgar belong? | SELECT Party FROM table WHERE Incumbent = Robert W. Edgar |
Translate the following into a SQL query | What district is incumbent jack hightower from? | SELECT District FROM table WHERE Incumbent = Jack Hightower |
Translate the following into a SQL query | What year were the election results tom loeffler (r) 80.6% joe sullivan (d) 19.4%? | SELECT MIN First elected FROM table WHERE Candidates = Tom Loeffler (R) 80.6% Joe Sullivan (D) 19.4% |
Translate the following into a SQL query | What incumbent won the district of texas 22? | SELECT Incumbent FROM table WHERE District = Texas 22 |
Translate the following into a SQL query | Who's the incumbent of the Louisiana 1 district? | SELECT Incumbent FROM table WHERE District = Louisiana 1 |
Translate the following into a SQL query | Who were the candidates in the Louisiana 4 district? | SELECT Candidates FROM table WHERE District = Louisiana 4 |
Translate the following into a SQL query | Who's the incumbent in the district first elected in 1976? | SELECT Incumbent FROM table WHERE First elected = 1976 |
Translate the following into a SQL query | what's the incumbent with district being massachusetts 2 | SELECT Incumbent FROM table WHERE District = Massachusetts 2 |
Translate the following into a SQL query | what's the party with candidates being silvio conte (r) unopposed | SELECT Party FROM table WHERE Candidates = Silvio Conte (R) Unopposed |
Translate the following into a SQL query | what's the first elected with incumbent being joseph d. early | SELECT First elected FROM table WHERE Incumbent = Joseph D. Early |
Translate the following into a SQL query | who is the the incumbent with dbeingtrict being massachusetts 2 | SELECT Incumbent FROM table WHERE District = Massachusetts 2 |
Translate the following into a SQL query | what's the party with dbeingtrict being massachusetts 3 | SELECT Party FROM table WHERE District = Massachusetts 3 |
Translate the following into a SQL query | How many candidates won the election in the district whose incumbent is Bud Shuster? | SELECT COUNT Candidates FROM table WHERE Incumbent = Bud Shuster |
Translate the following into a SQL query | What are the candidates in the district whose incumbent is Gus Yatron? | SELECT Candidates FROM table WHERE Incumbent = Gus Yatron |
Translate the following into a SQL query | What's the winning party in the Pennsylvania 6 district? | SELECT Party FROM table WHERE District = Pennsylvania 6 |
Translate the following into a SQL query | What candidate is a member of the Republican party? | SELECT Candidates FROM table WHERE Party = Republican |
Translate the following into a SQL query | What district is Ray Musto the incumbent of? | SELECT District FROM table WHERE Incumbent = Ray Musto |
Translate the following into a SQL query | How many parties does the incumbent Donald A. Bailey a member of? | SELECT COUNT Party FROM table WHERE Incumbent = Donald A. Bailey |
Translate the following into a SQL query | What was the outcome of the election in Pennsylvania 6 district? | SELECT Result FROM table WHERE District = Pennsylvania 6 |
Translate the following into a SQL query | Where was Al Gore elected | SELECT District FROM table WHERE Incumbent = Al Gore |
Translate the following into a SQL query | Election results of 1976 | SELECT Result FROM table WHERE First elected = 1976 |
Translate the following into a SQL query | What was the incumbent for missouri 1? | SELECT Incumbent FROM table WHERE District = Missouri 1 |
Translate the following into a SQL query | What was the result of the election when someone was first elected in 1960? | SELECT Result FROM table WHERE First elected = 1960 |
Translate the following into a SQL query | What year was incumbent phil crane first elected? | SELECT First elected FROM table WHERE Incumbent = Phil Crane |
Translate the following into a SQL query | What candidates were featured in the 1974 election? | SELECT Candidates FROM table WHERE First elected = 1974 |
Translate the following into a SQL query | What year was Jerry Huckaby first elected? | SELECT First elected FROM table WHERE Incumbent = Jerry Huckaby |
Translate the following into a SQL query | What other cadidate ran against Dave Treen? | SELECT Candidates FROM table WHERE Incumbent = Dave Treen |
Translate the following into a SQL query | What year was the earliest first elected? | SELECT MIN First elected FROM table |
Translate the following into a SQL query | What district did Dave Treen serve? | SELECT District FROM table WHERE Incumbent = Dave Treen |
Translate the following into a SQL query | How many sitting politicians were originally elected in 1972? | SELECT COUNT Incumbent FROM table WHERE First elected = 1972 |
Translate the following into a SQL query | In the Georgia 6 district, what is the elected party? | SELECT Party FROM table WHERE District = Georgia 6 |
Translate the following into a SQL query | In the race involving Billy Lee Evans as the seated Representative, was he elected again? | SELECT Result FROM table WHERE Incumbent = Billy Lee Evans |
Translate the following into a SQL query | Which district has Ronald "bo" Ginn as the seated Representative? | SELECT District FROM table WHERE Incumbent = Ronald "Bo" Ginn |
Translate the following into a SQL query | How many parties are there in races involving Dawson Mathis? | SELECT COUNT Party FROM table WHERE Incumbent = Dawson Mathis |
Translate the following into a SQL query | Which district is republican? | SELECT District FROM table WHERE Party = Republican |
Translate the following into a SQL query | Name the result when the incumbent was george h. mahon | SELECT Result FROM table WHERE Incumbent = George H. Mahon |
Translate the following into a SQL query | What was the incumbent of texas 3? | SELECT Incumbent FROM table WHERE District = Texas 3 |
Translate the following into a SQL query | What was the incumbent for texas 19? | SELECT Incumbent FROM table WHERE District = Texas 19 |
Translate the following into a SQL query | Which district has candidates is dick gephardt (d) 81.9% lee buchschacher (r) 18.1%? | SELECT District FROM table WHERE Candidates = Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1% |
Translate the following into a SQL query | What is the result for the district missouri 2? | SELECT Result FROM table WHERE District = Missouri 2 |
Translate the following into a SQL query | When was the first elected for district missouri 7? | SELECT MIN First elected FROM table WHERE District = Missouri 7 |
Translate the following into a SQL query | When was the earliest first election? | SELECT MIN First elected FROM table |
Translate the following into a SQL query | How many times was the candidates dick gephardt (d) 81.9% lee buchschacher (r) 18.1%? | SELECT COUNT Incumbent FROM table WHERE Candidates = Dick Gephardt (D) 81.9% Lee Buchschacher (R) 18.1% |
Translate the following into a SQL query | What district did S. William Green belong to? | SELECT District FROM table WHERE Incumbent = S. William Green |
Translate the following into a SQL query | What district did the Democratic party incumbent Stephen J. Solarz get first elected to in 1974? | SELECT District FROM table WHERE Party = Democratic AND First elected = 1974 AND Incumbent = Stephen J. Solarz |
Translate the following into a SQL query | When was Stephen J. Solarz first elected? | SELECT MIN First elected FROM table WHERE Incumbent = Stephen J. Solarz |
Translate the following into a SQL query | Who were the candidates when Shirley Chisholm was the incumbent? | SELECT Candidates FROM table WHERE Incumbent = Shirley Chisholm |
Translate the following into a SQL query | What is the district that has Bob Wilson as an incumbent? | SELECT District FROM table WHERE Incumbent = Bob Wilson |
Translate the following into a SQL query | How many outcomes were there in the elections in California 38? | SELECT COUNT Result FROM table WHERE District = California 38 |
Translate the following into a SQL query | What district is Charles H. Wilson the incumbent of? | SELECT District FROM table WHERE Incumbent = Charles H. Wilson |
Translate the following into a SQL query | What party was the winning one in the elections in the California 30 district? | SELECT Party FROM table WHERE District = California 30 |
Translate the following into a SQL query | How many times did an election feature the result robert l. leggett (d) 50.2% albert dehr (r) 49.8%? | SELECT COUNT Result FROM table WHERE Candidates = Robert L. Leggett (D) 50.2% Albert Dehr (R) 49.8% |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.