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 district is incumbent albert rains from?
<|assistant|>
SELECT "district" 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: How many candidates represent the district of kenneth a. roberts?
<|assistant|>
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Kenneth A. Roberts';<|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 the Arkansas 2 district election?
<|assistant|>
SELECT "incumbent" 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: When was Dale Alford first elected in the Arkansas 5 district?
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 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: When was James William Trimble first elected in the Arkansas 3 district?
<|assistant|>
SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 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: When party did the incumbent in the Arkansas 5 district belong to?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 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 in the Arkansas 5 district election?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 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 did the incumbent in the Arkansas 2 district belong to?
<|assistant|>
SELECT "party" 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: How many candidates were there in the election for William Jennings Bryan Dorn's seat?
<|assistant|>
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='William Jennings Bryan Dorn';<|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 earliest year that a candidate was first elected?
<|assistant|>
SELECT MIN("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 was the result of the election in which Lindley Beckworth was the incumbent?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Lindley Beckworth';<|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 1936?
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1936;<|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 in which Walter E. Rogers was the incumbent?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Walter E. Rogers';<|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 was Paul Rogers first elected?
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Paul Rogers';<|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 is James A. Haley from?
<|assistant|>
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James A. Haley';<|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 were the latest elections?
<|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: In what district is the incumbent John Bell Williams?
<|assistant|>
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Bell Williams';<|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: In what year was John Bell Williams first elected?
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John Bell Williams';<|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 W. Arthur Winstead as elected official?
<|assistant|>
SELECT COUNT("district") 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: What is the district for carl vinson?
<|assistant|>
SELECT "district" 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: What is the most first elected for james c. davis?
<|assistant|>
SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James C. Davis';<|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 georgia 4?
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" 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: which affiliation does edwin e. willis affiliate with
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Edwin E. Willis';<|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 affiliation is james h. morrison part of
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James H. Morrison';<|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 that was first elected in 1914?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1914;<|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: In which district is the incumbent Carl Vinson?
<|assistant|>
SELECT "district" 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: Name the candidates for l. mendel rivers
<|assistant|>
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='L. Mendel Rivers';<|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 result for south carolina 4
<|assistant|>
SELECT "result" 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: Name the candidates 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: Name the incumbent for first elected 1956
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1956;<|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 number of party with the incubent james william trimble
<|assistant|>
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='James William Trimble';<|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 for first elected in 1944
<|assistant|>
SELECT "result" 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 "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 party in the arkansas 1 district
<|assistant|>
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "district"='Arkansas 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: Who is the incumbent in the Alabama 6 voting district?
<|assistant|>
SELECT "incumbent" 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: Which candidates were in the election where Frank W. Boykin was an incumbent?
<|assistant|>
SELECT "candidates" 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: Who were the candidates in the election where the incumbent is George M. Grant?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='George M. Grant';<|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 candidates ran in the Alabama 6 district?
<|assistant|>
SELECT "candidates" 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 is the latest year listed with the Alabama 4 voting district?
<|assistant|>
SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Alabama 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 was the result when incumbent Fred E. Busbey was elected?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Fred E. Busbey';<|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 results are listed for the election where Noah M. Mason was elected?
<|assistant|>
SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Noah M. Mason';<|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 Leo E. Allen was elected?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Leo E. Allen';<|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 party had a person who has been in the seat since 1914?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1914;<|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 listed in the race where the incumbent is Prince Hulon Preston, Jr.
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Prince Hulon Preston, Jr.';<|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 ran in the race where the incumbent is J. L. Pilcher?
<|assistant|>
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='J. L. Pilcher';<|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: John W. Heselton was first elected in what year?
<|assistant|>
SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='John W. Heselton';<|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: Thomas J. Lane is the incumbent of how many parties?
<|assistant|>
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Thomas J. Lane';<|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 incumbent first elected in 1944?
<|assistant|>
SELECT "incumbent" 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 "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 politician first elected in 1942?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1942;<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342013_34" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what's the result for district ohio 2
<|assistant|>
SELECT "result" FROM "table1_1342013_34" WHERE "district"='Ohio 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342013_34" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: who is the the incumbent with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5%
<|assistant|>
SELECT "incumbent" FROM "table1_1342013_34" WHERE "candidates"='John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.5%';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342013_34" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: who is the the incumbent with district being ohio 2
<|assistant|>
SELECT "incumbent" FROM "table1_1342013_34" WHERE "district"='Ohio 2';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342013_34" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: what's the result with incumbent being william h. ayres
<|assistant|>
SELECT "result" FROM "table1_1342013_34" WHERE "incumbent"='William H. Ayres';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "table1_1342013_34" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text,
"candidates" text
);
Question: how many party with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5%
<|assistant|>
SELECT COUNT("party") FROM "table1_1342013_34" WHERE "candidates"='John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.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 district is Brooks Hays in
<|assistant|>
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Brooks Hays';<|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: Omar Burleson was the incumbent in what district?
<|assistant|>
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Omar Burleson';<|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: In what district was incumbent first elected in 1938?
<|assistant|>
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1938;<|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 party for the pennsylvania 25
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 25';<|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 minumim first elected for alvin bush
<|assistant|>
SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Alvin Bush';<|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 pennsylvania 15
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Pennsylvania 15';<|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 noah m. mason?
<|assistant|>
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Noah M. Mason';<|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 candidates for fred e. busbey?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Fred E. Busbey';<|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 1932?
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1932;<|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 first elected with incumbent being charles edward bennett
<|assistant|>
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Charles Edward Bennett';<|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 the incumbent with dbeingtrict being florida 2
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "district"='Florida 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's the result with candidates being charles edward bennett (d) unopposed
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Charles Edward Bennett (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's the result with dbeingtrict being florida 4
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Florida 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 party with candidates being charles edward bennett (d) unopposed
<|assistant|>
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Charles Edward Bennett (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: how many first elected with incumbent being william c. lantaff
<|assistant|>
SELECT COUNT("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='William C. Lantaff';<|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 when Tic Forrester ran as an incumbent?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Tic Forrester';<|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 final result for Craig Hosmer?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Craig Hosmer';<|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 does Harlan Hagen represent?
<|assistant|>
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Harlan Hagen';<|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 candidate in the election in the Louisiana 2 district?
<|assistant|>
SELECT "candidates" 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: What candidate was re-elected in the Louisiana 5 district?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "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 party's candidate was re-elected in the Louisiana 6 district?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "district"='Louisiana 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 was the result in the election where Hale Boggs was the incumbent?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Hale Boggs';<|endoftext|>
|
<|system|>
You are an expert SQL query generator. Only output valid SQL.
<|user|>
### Database Schema
CREATE TABLE "b_802_11_channel_to_frequency_map" (
"channel" real,
"center_frequency" text,
"frequency_delta" text,
"channel_width" text,
"overlaps_channels" text
);
Question: what is the channel width that overlaps channels 1,3-6?
<|assistant|>
SELECT "channel_width" FROM "b_802_11_channel_to_frequency_map" WHERE "overlaps_channels"='1,3-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: Name the result for mississippi 2
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Mississippi 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: Name the number of candidates for 1941
<|assistant|>
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1941;<|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 result of lost renomination democratic loss
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "result"='Lost renomination Democratic loss';<|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 result for first elected of 1920
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1920;<|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: In the District Tennessee 7 what is the number of first elected?
<|assistant|>
SELECT MAX("first_elected") FROM "united_states_house_of_representatives_e" WHERE "district"='Tennessee 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: What is the candidates result that is tom j. murray (d) unopposed?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "candidates"='Tom J. Murray (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: For the Republican party what are the names of the incumbents?
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "party"='Republican';<|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 match the canididates listed as howard baker, sr. (r) 68.9% boyd w. cox (d) 31.1%?
<|assistant|>
SELECT COUNT("party") FROM "united_states_house_of_representatives_e" WHERE "candidates"='Howard Baker, Sr. (R) 68.9% Boyd W. Cox (D) 31.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: Which district had Paul B. Dague as the incumbent?
<|assistant|>
SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Paul B. Dague';<|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 was the result in the election where the incumbent was first elected in 1942?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "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" text,
"result" text,
"candidates" text
);
Question: What was the result of the election in the Texas 3 district?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 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" text,
"result" text,
"candidates" text
);
Question: What party did incumbent Wright Patman belong to?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Wright Patman';<|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 was the result of the election in the Texas 4 district?
<|assistant|>
SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='Texas 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 party did the re-elected incumbent of the Texas 11 district belong to?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" WHERE "result"='Re-elected' AND "district"='Texas 11';<|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: List all those first elected in the California 22 voting district.
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "district"='California 22';<|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: Who was the first elected incumbent in the 1946 election?
<|assistant|>
SELECT "incumbent" FROM "united_states_house_of_representatives_e" WHERE "first_elected"='1946';<|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 results does the California 29 voting district have?
<|assistant|>
SELECT COUNT("result") FROM "united_states_house_of_representatives_e" WHERE "district"='California 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" text,
"result" text,
"candidates" text
);
Question: Which party had Clair Engle as an incumbent?
<|assistant|>
SELECT "party" 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 party does sid simpson represent?
<|assistant|>
SELECT "party" FROM "united_states_house_of_representatives_e" 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: How many candidates ran against barratt o'hara?
<|assistant|>
SELECT COUNT("candidates") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Barratt O''Hara';<|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 barratt o'hara first elected?
<|assistant|>
SELECT "first_elected" FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Barratt O''Hara';<|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 results for minimum first elected incumbent Noble Jones Gregory?
<|assistant|>
SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Noble Jones Gregory';<|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 results for incumbent Noble Jones Gregory?
<|assistant|>
SELECT COUNT("district") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='Noble Jones Gregory';<|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 wehre district is louisiana 1?
<|assistant|>
SELECT "candidates" FROM "united_states_house_of_representatives_e" WHERE "district"='Louisiana 1';<|endoftext|>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.