output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Mark W. Hannaford'; |
## Task
Generate a SQL query to answer the following question:
`What year was incumbent mark w. hannaford elected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"par... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Richard Kelly'; |
## Task
Generate a SQL query to answer the following question:
`what is the district where the incumbent is richard kelly?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text... |
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Robert L. F. Sikes (D) Unopposed'; |
## Task
Generate a SQL query to answer the following question:
`what is the result where the candidates is robert l. f. sikes (d) unopposed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
... |
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "candidates"='William V. Chappell, Jr. (D) Unopposed'; |
## Task
Generate a SQL query to answer the following question:
`who is the incumbent where the candidates is william v. chappell, jr. (d) unopposed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James A. Haley'; |
## Task
Generate a SQL query to answer the following question:
`what is the district where the incumbent is james a. haley?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" tex... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Richard Kelly'; |
## Task
Generate a SQL query to answer the following question:
`what is the district where the incumbent is richard kelly?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Florida 8'; |
## Task
Generate a SQL query to answer the following question:
`who are the candidates where the district is florida 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
... |
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Sidney R. Yates'; |
## Task
Generate a SQL query to answer the following question:
`what year was the first elected incumbant Sidney R. Yates?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text... |
SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 5'; |
## Task
Generate a SQL query to answer the following question:
`How many incumbents are there in district Louisiana 5?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
... |
SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "result"='Lost renomination Republican gain'; |
## Task
Generate a SQL query to answer the following question:
`How many incumbents resulted in a lost renomination republican gain?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incum... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Breaux'; |
## Task
Generate a SQL query to answer the following question:
`In which district is the incumbent John Breaux?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party"... |
SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Otto Passman (D) Unopposed'; |
## Task
Generate a SQL query to answer the following question:
`What year was Otto Passman (d) unopposed first elected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
... |
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Breaux'; |
## Task
Generate a SQL query to answer the following question:
`What were the results when the incumbent was John Breaux?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 1'; |
## Task
Generate a SQL query to answer the following question:
`Name the candidates for texas 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_... |
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 12'; |
## Task
Generate a SQL query to answer the following question:
`Name the incumbent for district texas 12`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 20'; |
## Task
Generate a SQL query to answer the following question:
`Name the candidates for texas 20`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Edward Boland (D) Unopposed'; |
## Task
Generate a SQL query to answer the following question:
`what is the district with the candidates edward boland (d) unopposed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incu... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Edward Boland (D) Unopposed'; |
## Task
Generate a SQL query to answer the following question:
`what is the party where the candidates are edward boland (d) unopposed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"in... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Edward Boland'; |
## Task
Generate a SQL query to answer the following question:
`what is the party where the incumbent is edward boland?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
... |
SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Paul Tsongas (D) 60.6% Paul W. Cronin (R) 39.4%'; |
## Task
Generate a SQL query to answer the following question:
`How many times was the candidates paul tsongas (d) 60.6% paul w. cronin (r) 39.4%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" ... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Goodloe Byron'; |
## Task
Generate a SQL query to answer the following question:
`List all candidates in elections where the incumbent politician is Goodloe Byron.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" t... |
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Robert Bauman'; |
## Task
Generate a SQL query to answer the following question:
`How many instances are there of party in the situation where Robert Bauman is the incumbent politician?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representativ... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Robert Bauman'; |
## Task
Generate a SQL query to answer the following question:
`What is the party of the election in which Robert Bauman is the incumbent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
... |
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Maryland 7'; |
## Task
Generate a SQL query to answer the following question:
`List all results where the voting district is Maryland 7.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,... |
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Robert Bauman'; |
## Task
Generate a SQL query to answer the following question:
`What are all the results where Robert Bauman is the incumbent politician?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Del Latta'; |
## Task
Generate a SQL query to answer the following question:
`Who were the candidates in the district won by the incumbent Del Latta?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"in... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1966; |
## Task
Generate a SQL query to answer the following question:
`Who were the candidates in the districts that was first elected in 1966?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"i... |
SELECT "candidates" FROM "table1_1341690_5" WHERE "district"='California 10'; |
## Task
Generate a SQL query to answer the following question:
`Who was running for office in the California 10 district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1341690_5" (
"district" text,
"incumbent" text,
"party" text,
"firs... |
SELECT COUNT("party") FROM "table1_1341690_5" WHERE "district"='California 23'; |
## Task
Generate a SQL query to answer the following question:
`How many parties won the election in the California 23 district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1341690_5" (
"district" text,
"incumbent" text,
"party" text,
... |
SELECT MAX("first_elected") FROM "table1_1341690_5" WHERE "party"='Republican'; |
## Task
Generate a SQL query to answer the following question:
`What republican candidate was first elected most recently?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1341690_5" (
"district" text,
"incumbent" text,
"party" text,
"fir... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1952; |
## Task
Generate a SQL query to answer the following question:
`Phillip Landrum was first elected in 1952 from the ninth district of Georgia.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,... |
SELECT "party" FROM "table1_1341707_15" WHERE "district"='Illinois 12'; |
## Task
Generate a SQL query to answer the following question:
`What party did the incumbent from the Illinois 12 district belong to? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1341707_15" (
"district" text,
"incumbent" text,
"party"... |
SELECT "incumbent" FROM "table1_1341707_15" WHERE "party"='Democratic' AND "result"='Re-elected' AND "district"='Illinois 11'; |
## Task
Generate a SQL query to answer the following question:
`Who was the democratic incumbent in the Illinois 11 district who was re-elected? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1341707_15" (
"district" text,
"incumbent" text... |
SELECT "incumbent" FROM "table1_1341707_15" WHERE "first_elected"='1964'; |
## Task
Generate a SQL query to answer the following question:
`Which incumbent was first elected in 1964? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1341707_15" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" te... |
SELECT "party" FROM "table1_1341707_15" WHERE "district"='Illinois 1'; |
## Task
Generate a SQL query to answer the following question:
`What party did the incumbent from the Illinois 1 district belong to? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1341707_15" (
"district" text,
"incumbent" text,
"party" ... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Don Fuqua'; |
## Task
Generate a SQL query to answer the following question:
`What candidates ran in the election with don fuqua?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"pa... |
SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Sam M. Gibbons (D) Unopposed'; |
## Task
Generate a SQL query to answer the following question:
`How many incumbent candidates in the election featuring sam m. gibbons (d) unopposed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"distric... |
SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e"; |
## Task
Generate a SQL query to answer the following question:
`What is the last year that someone is first elected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"p... |
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1940; |
## Task
Generate a SQL query to answer the following question:
`Who was the incumbent in 1940?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_e... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Sidney R. Yates'; |
## Task
Generate a SQL query to answer the following question:
`what is the party when the incumbent is sidney r. yates?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
... |
SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Illinois 7'; |
## Task
Generate a SQL query to answer the following question:
`what was the year first elected for district illinois 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
... |
SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Phil Crane (R) 58.0% Edward A. Warman (D) 42.0%'; |
## Task
Generate a SQL query to answer the following question:
`how many times was the candidates phil crane (r) 58.0% edward a. warman (d) 42.0%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" ... |
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "district"='Illinois 18'; |
## Task
Generate a SQL query to answer the following question:
`how many times was it the district illinois 18?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party"... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ed Derwinski'; |
## Task
Generate a SQL query to answer the following question:
`who were the candidates when the incumbent was ed derwinski?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" te... |
SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "party"='Republican' AND "candidates"='Robert H. Michel (R) 66.1% Rosa Lee Fox (D) 33.9%'; |
## Task
Generate a SQL query to answer the following question:
`When was the first elected when the party was republican and the candidate were robert h. michel (r) 66.1% rosa lee fox (d) 33.9%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_st... |
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 15'; |
## Task
Generate a SQL query to answer the following question:
`Who is the incumbent in district Texas 15?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Earle Cabell'; |
## Task
Generate a SQL query to answer the following question:
`Which district elected incumbent Earle Cabell?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" ... |
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ray Roberts'; |
## Task
Generate a SQL query to answer the following question:
`What was the result when Ray Roberts was elected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"part... |
SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e"; |
## Task
Generate a SQL query to answer the following question:
`What is the highest year that a candidate was first elected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" te... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Bill Harsha'; |
## Task
Generate a SQL query to answer the following question:
`Incumbent Bill Harsha was the winner in an election in which the candidates were who?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"distric... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1954; |
## Task
Generate a SQL query to answer the following question:
`What was the party of the first elected candidate in 1954?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text... |
SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Donald D. Clancy'; |
## Task
Generate a SQL query to answer the following question:
`How many districts does Donald D. Clancy represent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"pa... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Lawrence H. Fountain'; |
## Task
Generate a SQL query to answer the following question:
`Which party is Lawrence H. Fountain part of?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" te... |
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='North Carolina 8'; |
## Task
Generate a SQL query to answer the following question:
`Who was the first person elected in North Carolina 8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"='1952' AND "party"='Democratic'; |
## Task
Generate a SQL query to answer the following question:
`who was the candidate elected to the democratic party in 1952?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" ... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Joe Waggonner'; |
## Task
Generate a SQL query to answer the following question:
`What district did Joe Waggonner belong to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text... |
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1940; |
## Task
Generate a SQL query to answer the following question:
`What is the name of the incumbent who was first eleccted in 1940?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumben... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Edwin Reinecke'; |
## Task
Generate a SQL query to answer the following question:
`What party does incumbent edwin reinecke represent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"pa... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Don Edwards'; |
## Task
Generate a SQL query to answer the following question:
`Who were the candidates in the election that featured incumbent don edwards?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
... |
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Indiana 4'; |
## Task
Generate a SQL query to answer the following question:
`Who's the incumbent of Indiana 4 district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text... |
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"='1950'; |
## Task
Generate a SQL query to answer the following question:
`Who's the incumbent of the district with first election held in 1950?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incu... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Charles Edward Bennett Redistricted from 2nd'; |
## Task
Generate a SQL query to answer the following question:
`Who was featured in the election of charles edward bennett redistricted from 2nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" t... |
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "party"='Republican'; |
## Task
Generate a SQL query to answer the following question:
`Name the first elected for the republican party`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party"... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Philip Philbin'; |
## Task
Generate a SQL query to answer the following question:
`Name the district with philip philbin`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Edward Boland'; |
## Task
Generate a SQL query to answer the following question:
`Name the party with edward boland`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"firs... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1966; |
## Task
Generate a SQL query to answer the following question:
`What was the district who had their first elected in 1966?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Richard C. White'; |
## Task
Generate a SQL query to answer the following question:
`Who was the candidate when the incumbent was Richard C. White?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" ... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Donald Ray Matthews'; |
## Task
Generate a SQL query to answer the following question:
`What district did Donald Ray Matthews belong to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Don Fuqua'; |
## Task
Generate a SQL query to answer the following question:
`What party did Don Fuqua belong to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"fi... |
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 5'; |
## Task
Generate a SQL query to answer the following question:
`How many parties won the election in the Louisiana 5 district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" ... |
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 4'; |
## Task
Generate a SQL query to answer the following question:
`How many candidates were elected in the Louisiana 4 district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" t... |
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 7'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winner in the Louisiana 7 district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party"... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 3'; |
## Task
Generate a SQL query to answer the following question:
`what's party with district being tennessee 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" te... |
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 1'; |
## Task
Generate a SQL query to answer the following question:
`how many party with district being tennessee 1`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" ... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 3'; |
## Task
Generate a SQL query to answer the following question:
`what's party with district being tennessee 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" t... |
SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 5'; |
## Task
Generate a SQL query to answer the following question:
` how many incumbent with district being tennessee 5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"p... |
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 5'; |
## Task
Generate a SQL query to answer the following question:
`what's incumbent with district being tennessee 5`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Jack Brooks'; |
## Task
Generate a SQL query to answer the following question:
`Who ran in the race for Jack Brooks' seat?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Seymour Halpern'; |
## Task
Generate a SQL query to answer the following question:
`which section did seymour halpern run in`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Albert W. Johnson'; |
## Task
Generate a SQL query to answer the following question:
`What district is incumbent albert w. johnson from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"par... |
SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Frank M. Clark'; |
## Task
Generate a SQL query to answer the following question:
`How many times was frank m. clark the incumbent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Elmer J. Holland'; |
## Task
Generate a SQL query to answer the following question:
`What district is incumbent elmer j. holland from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"part... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Frank T. Bow'; |
## Task
Generate a SQL query to answer the following question:
`To which party does Frank T. Bow belong?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Carl W. Rich'; |
## Task
Generate a SQL query to answer the following question:
`Who ran in the race for the seat of incumbent Carl W. Rich?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" tex... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Carl W. Rich'; |
## Task
Generate a SQL query to answer the following question:
`In which district is the incumbent Carl W. Rich?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Carl Vinson'; |
## Task
Generate a SQL query to answer the following question:
`Name the candidates where incumbent Carl Vinson is?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"pa... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Massachusetts 8'; |
## Task
Generate a SQL query to answer the following question:
`Name the candidates for massachusetts 8`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "party"='Republican'; |
## Task
Generate a SQL query to answer the following question:
`What candidates were in the election when a republican was re-elected?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"inc... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Frank Chelf'; |
## Task
Generate a SQL query to answer the following question:
`What district is incumbent frank chelf from?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" te... |
SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Edwin E. Willis'; |
## Task
Generate a SQL query to answer the following question:
`How many districts represented Edwin E. Willis?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party"... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1961; |
## Task
Generate a SQL query to answer the following question:
`Who were all the candidates when the first elected year was 1961?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumben... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Hale Boggs'; |
## Task
Generate a SQL query to answer the following question:
`What party did Hale Boggs belong to?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"f... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 12'; |
## Task
Generate a SQL query to answer the following question:
`what is the political affiliation of the texas 12 district`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text... |
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 6'; |
## Task
Generate a SQL query to answer the following question:
`how many voted in the texas 6 section`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ray Roberts'; |
## Task
Generate a SQL query to answer the following question:
`what is the political affiliation of ray roberts`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party... |
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "candidates"='James A. Byrne (D) 59.3% Joseph R. Burns (R) 40.7%'; |
## Task
Generate a SQL query to answer the following question:
`What district featured an election between james a. byrne (d) 59.3% joseph r. burns (r) 40.7%?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Massachusetts 6'; |
## Task
Generate a SQL query to answer the following question:
`Name the candidates for massachusetts 6`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
... |
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Massachusetts 3'; |
## Task
Generate a SQL query to answer the following question:
`Name the result for massachusetts 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"fi... |
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1942; |
## Task
Generate a SQL query to answer the following question:
`Name the candidate first elected in 1942`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
... |
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Massachusetts 3'; |
## Task
Generate a SQL query to answer the following question:
`Name the party for massachusetts 3`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"fir... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.