text
stringlengths 310
1.28k
|
|---|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What is the party where the incumbent is overton brooks?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Overton Brooks';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: who athe party where district is louisiana 2?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: who is the candidate where district is louisiana 3?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what is the minimum number first elected to district louisiana 5?
<|assistant|>
SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What was the result when incumbent Tom Steed was elected?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Tom Steed';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What was the candidates for hardie scott
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Hardie Scott';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What is the number of candidates for pennsylvania 3
<|assistant|>
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What is the number of candidates for pennsylvania 21
<|assistant|>
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 21';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What is the party for first elected 1948 for william t. granahan
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1948 AND "incumbent"='William T. Granahan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many candidates were there in the race where Cecil R. King is the incumbent?
<|assistant|>
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Cecil R. King';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many districts have an incumbent first elected in 1944?
<|assistant|>
SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1944;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342218_13" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Who was the incumbent in the Illinois 17 district?
<|assistant|>
SELECT "incumbent" FROM "table1_1342218_13" WHERE "district"='Illinois 17';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many people on this list are named thomas abernethy?
<|assistant|>
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Thomas Abernethy';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many times was w. arthur winstead first elected?
<|assistant|>
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='W. Arthur Winstead';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many times was william m. colmer winstead first elected?
<|assistant|>
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='William M. Colmer';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What was the result of the election with jamie l. whitten?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Jamie L. Whitten';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What candidate was re-elected and was first elected in 1942?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "first_elected"=1942;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Who are the candidates in the election in the Ohio 9 district?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 9';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What year was incumbent Michael A. Feighan first elected?
<|assistant|>
SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Michael A. Feighan';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What party does the incumbent from the Ohio 5 district belong to?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What party does the incumbent from the Ohio 20 district belong to?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 20';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What party does the incumbent from the Ohio 7 district belong to?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Who is the candidate for the district Arkansas 2?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Which district has the incumbent Wilbur Mills and a re-elected result?
<|assistant|>
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "incumbent"='Wilbur Mills';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What year was first-elected for the row of Texas 2?
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What was the result for the incumbent Milton H. West?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Milton H. West';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What party is associated with Texas 2?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: When the result is retired to run for U.S. Senate Democratic Hold, who is the candidate?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Retired to run for U.S. Senate Democratic hold';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What candidate has a result of being re-elected in the Texas 7 District?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "district"='Texas 7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342233_11" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Which party is associated with the candidate Albert Sidney Camp (D) unopposed?
<|assistant|>
SELECT COUNT("party") FROM "table1_1342233_11" WHERE "candidates"='Albert Sidney Camp (D) Unopposed';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342233_11" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Which district is associated with the incumbent Carl Vinson?
<|assistant|>
SELECT "candidates" FROM "table1_1342233_11" WHERE "incumbent"='Carl Vinson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342233_11" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Which candidates are associated with the Georgia 7 district?
<|assistant|>
SELECT "candidates" FROM "table1_1342233_11" WHERE "district"='Georgia 7';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342233_11" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What candidate is associated with the Georgia 4 district?
<|assistant|>
SELECT "candidates" FROM "table1_1342233_11" WHERE "district"='Georgia 4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What year was incumbent joe b. bates first elected?
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Joe B. Bates';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What party is incumbent virgil chapman from?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Virgil Chapman';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What year was clair engle first elected?
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Clair Engle';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what is the result of the first elected is 1943?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1943;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what the the end number where albert rains was running
<|assistant|>
SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Albert Rains';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what the was the final in which frank w. boykin was running
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Frank W. Boykin';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Name the total number of first elected for sol bloom
<|assistant|>
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Sol Bloom';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Name the candidates for ellsworth b. buck
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Ellsworth B. Buck';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What are the candidates for new york 35?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 35';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What is the party for new york 20?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 20';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342233_43" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What was the result of the election featuring r. ewing thomason (d) unopposed?
<|assistant|>
SELECT "result" FROM "table1_1342233_43" WHERE "candidates"='R. Ewing Thomason (D) Unopposed';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342233_43" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What district is eugene worley from?
<|assistant|>
SELECT "district" FROM "table1_1342233_43" WHERE "incumbent"='Eugene Worley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342233_6" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: how many result with candidates being richard j. welch (r) unopposed
<|assistant|>
SELECT COUNT("result") FROM "table1_1342233_6" WHERE "candidates"='Richard J. Welch (R) Unopposed';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342233_6" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what's the result with incumbent being jack z. anderson
<|assistant|>
SELECT "result" FROM "table1_1342233_6" WHERE "incumbent"='Jack Z. Anderson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342233_6" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what's the district with result being re-elected and candidates being clarence f. lea (d) unopposed
<|assistant|>
SELECT "district" FROM "table1_1342233_6" WHERE "result"='Re-elected' AND "candidates"='Clarence F. Lea (D) Unopposed';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342233_6" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what's the first elected with incumbent being clair engle
<|assistant|>
SELECT "first_elected" FROM "table1_1342233_6" WHERE "incumbent"='Clair Engle';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342233_6" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: who is the the candidates with incumbent being alfred j. elliott
<|assistant|>
SELECT "candidates" FROM "table1_1342233_6" WHERE "incumbent"='Alfred J. Elliott';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342233_6" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: who is the the incumbent with candidates being jack z. anderson (r) unopposed
<|assistant|>
SELECT "incumbent" FROM "table1_1342233_6" WHERE "candidates"='Jack Z. Anderson (R) Unopposed';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many parties does incumbent carl vinson represent?
<|assistant|>
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Carl Vinson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many parties does incumbent stephen pace represent?
<|assistant|>
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Stephen Pace';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342249_13" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Who were the candidates when Noah M. Mason was incumbent?
<|assistant|>
SELECT "candidates" FROM "table1_1342249_13" WHERE "incumbent"='Noah M. Mason';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342249_13" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: In what year was Leo E. Allen first elected?
<|assistant|>
SELECT "first_elected" FROM "table1_1342249_13" WHERE "incumbent"='Leo E. Allen';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342249_13" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Who were the candidates when Sid Simpson was the incumbent?
<|assistant|>
SELECT "candidates" FROM "table1_1342249_13" WHERE "incumbent"='Sid Simpson';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What was the result of Robert L. F. Sikes' election bid?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Robert L. F. Sikes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many districts have an incumbent first elected in 1940?
<|assistant|>
SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1940;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many races involve incumbent Pat Cannon?
<|assistant|>
SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Pat Cannon';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Which incumbent was first elected in 1940?
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1940;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What is the first electedfor district ohio 18
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 18';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What is the incumbent for ohio 12?
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Ohio 12';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Who are all of the candidates in the election featuring james r. domengeaux?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James R. Domengeaux';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Name all the candidates that ran for the seat where Harold D. Cooley is the incumbent?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Harold D. Cooley';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many partys have a candidate first elected in 1923?
<|assistant|>
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1923;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what was the number of candidates when Leon Sacks was incumbent?
<|assistant|>
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Leon Sacks';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What was the result in Pennsylvania 13?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 13';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Who was the incumbent in Pennsylvania 27?
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 27';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Who are the contenders In the New York 19 polling area race?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 19';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many polling areas are there with John Taber as the sitting Representative?
<|assistant|>
SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Taber';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Who are the contenders In the New York 29 polling area race?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 29';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Which political party is involved where John J. Delaney is the sitting Representative?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John J. Delaney';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: Who is the sitting Representative In the New York 10 polling area race?
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='New York 10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many sitting Representatives are there in the New York 10 polling area?
<|assistant|>
SELECT COUNT("incumbent") FROM "united_states_house_of_representatives_e" WHERE "district"='New York 10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What is the district for james p. richards?
<|assistant|>
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James P. Richards';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What is the candidate for south carolina 4?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='South Carolina 4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What is the candidate for south carolina 3?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='South Carolina 3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What is the first elected for south carolina 4?
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='South Carolina 4';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: How many candidates were in the election featuring brooks hays (d) unopposed?
<|assistant|>
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Brooks Hays (D) Unopposed';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What party does clyde t. ellis represent?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Clyde T. Ellis';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
Question: how many party with candidates being john j. phillips (r) 57.6% n. e. west (d) 42.4%
<|assistant|>
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "candidates"='John J. Phillips (R) 57.6% N. E. West (D) 42.4%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
Question: what's the result with dbeingtrict being california 10
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='California 10';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
Question: what's the party with first elected being 1926
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"='1926';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" text,
"result" text,
"candidates" text
);
Question: what's the incumbent with result being new seat republican gain
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "result"='New seat Republican gain';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what was the maxiumum for the first elected?
<|assistant|>
SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what's the first elected with incumbent being joe starnes
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Joe Starnes';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what's the first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003%
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Joe Starnes (D) 100.0% George Bogus ( W/I ) 0.003%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: how many party with dbeingtrict being alabama 6
<|assistant|>
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what are all the district with incumbent being sam hobbs
<|assistant|>
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Sam Hobbs';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what are all the result with district being alabama 1
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 1';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what is the maximum first elected with district being alabama 5
<|assistant|>
SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 5';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342270_42" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What was the result in the Tennessee 6 district election?
<|assistant|>
SELECT "result" FROM "table1_1342270_42" WHERE "district"='Tennessee 6';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342270_42" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: In how many districts was the incumbent Estes Kefauver?
<|assistant|>
SELECT COUNT("district") FROM "table1_1342270_42" WHERE "incumbent"='Estes Kefauver';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342270_42" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What is the latest year any of the incumbents were first elected?
<|assistant|>
SELECT MAX("first_elected") FROM "table1_1342270_42";<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342270_42" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What was the result of the Tennessee 2 district election?
<|assistant|>
SELECT "result" FROM "table1_1342270_42" WHERE "district"='Tennessee 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: What district is incumbent robert l. mouton from?
<|assistant|>
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Robert L. Mouton';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: William Fadjo Cravens is the only candidate who was first elected in 1939.
<|assistant|>
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='William Fadjo Cravens';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: William Fadjo Cravens serves the fourth district of Arkansas.
<|assistant|>
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='William Fadjo Cravens';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what's the party with district being alabama 3
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 3';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what's the incumbent with candidates being sam hobbs (d) 88.2% c. w. mckay (r) 11.8%
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Sam Hobbs (D) 88.2% C. W. McKay (R) 11.8%';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.