text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the result where the candidates is robert l. f. sikes (d) unopposed? ### Context: CREATE TABLE table_1341672_10 (result VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT result FROM table_1341672_10 WHERE candidates = "Robert L. F. Sikes (D) Unopposed" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who is the incumbent where the candidates is william v. chappell, jr. (d) unopposed? ### Context: CREATE TABLE table_1341672_10 (incumbent VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341672_10 WHERE candidates = "William V. Chappell, Jr. (D) Unopposed" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the district where the incumbent is james a. haley? ### Context: CREATE TABLE table_1341672_10 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341672_10 WHERE incumbent = "James A. Haley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who are the candidates where the district is florida 8? ### Context: CREATE TABLE table_1341672_10 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341672_10 WHERE district = "Florida 8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what year was the first elected incumbant Sidney R. Yates? ### Context: CREATE TABLE table_1341690_13 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1341690_13 WHERE incumbent = "Sidney R. Yates" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many incumbents are there in district Louisiana 5? ### Context: CREATE TABLE table_1341690_18 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(incumbent) FROM table_1341690_18 WHERE district = "Louisiana 5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many incumbents resulted in a lost renomination republican gain? ### Context: CREATE TABLE table_1341690_18 (incumbent VARCHAR, result VARCHAR) [/INST] ### Response: SELECT COUNT(incumbent) FROM table_1341690_18 WHERE result = "Lost renomination Republican gain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In which district is the incumbent John Breaux? ### Context: CREATE TABLE table_1341690_18 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341690_18 WHERE incumbent = "John Breaux" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year was Otto Passman (d) unopposed first elected? ### Context: CREATE TABLE table_1341690_18 (first_elected INTEGER, candidates VARCHAR) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1341690_18 WHERE candidates = "Otto Passman (D) Unopposed" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What were the results when the incumbent was John Breaux? ### Context: CREATE TABLE table_1341690_18 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1341690_18 WHERE incumbent = "John Breaux" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the candidates for texas 1 ### Context: CREATE TABLE table_1341690_43 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341690_43 WHERE district = "Texas 1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the incumbent for district texas 12 ### Context: CREATE TABLE table_1341690_43 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341690_43 WHERE district = "Texas 12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the candidates for texas 20 ### Context: CREATE TABLE table_1341690_43 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341690_43 WHERE district = "Texas 20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the district with the candidates edward boland (d) unopposed? ### Context: CREATE TABLE table_1341690_21 (district VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT district FROM table_1341690_21 WHERE candidates = "Edward Boland (D) Unopposed" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the party where the candidates are edward boland (d) unopposed? ### Context: CREATE TABLE table_1341690_21 (party VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT party FROM table_1341690_21 WHERE candidates = "Edward Boland (D) Unopposed" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the party where the incumbent is edward boland? ### Context: CREATE TABLE table_1341690_21 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341690_21 WHERE incumbent = "Edward Boland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many times was the candidates paul tsongas (d) 60.6% paul w. cronin (r) 39.4%? ### Context: CREATE TABLE table_1341690_21 (incumbent VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(incumbent) FROM table_1341690_21 WHERE candidates = "Paul Tsongas (D) 60.6% Paul W. Cronin (R) 39.4%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: List all candidates in elections where the incumbent politician is Goodloe Byron. ### Context: CREATE TABLE table_1341690_20 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341690_20 WHERE incumbent = "Goodloe Byron" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many instances are there of party in the situation where Robert Bauman is the incumbent politician? ### Context: CREATE TABLE table_1341690_20 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1341690_20 WHERE incumbent = "Robert Bauman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the party of the election in which Robert Bauman is the incumbent? ### Context: CREATE TABLE table_1341690_20 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341690_20 WHERE incumbent = "Robert Bauman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: List all results where the voting district is Maryland 7. ### Context: CREATE TABLE table_1341690_20 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1341690_20 WHERE district = "Maryland 7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are all the results where Robert Bauman is the incumbent politician? ### Context: CREATE TABLE table_1341690_20 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1341690_20 WHERE incumbent = "Robert Bauman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were the candidates in the district won by the incumbent Del Latta? ### Context: CREATE TABLE table_1341690_35 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341690_35 WHERE incumbent = "Del Latta" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were the candidates in the districts that was first elected in 1966? ### Context: CREATE TABLE table_1341690_35 (candidates VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341690_35 WHERE first_elected = 1966 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was running for office in the California 10 district? ### Context: CREATE TABLE table_1341690_5 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341690_5 WHERE district = "California 10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many parties won the election in the California 23 district? ### Context: CREATE TABLE table_1341690_5 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1341690_5 WHERE district = "California 23" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What republican candidate was first elected most recently? ### Context: CREATE TABLE table_1341690_5 (first_elected INTEGER, party VARCHAR) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1341690_5 WHERE party = "Republican" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Phillip Landrum was first elected in 1952 from the ninth district of Georgia. ### Context: CREATE TABLE table_1341707_12 (district VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT district FROM table_1341707_12 WHERE first_elected = 1952 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What party did the incumbent from the Illinois 12 district belong to? ### Context: CREATE TABLE table_1341707_15 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1341707_15 WHERE district = "Illinois 12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the democratic incumbent in the Illinois 11 district who was re-elected? ### Context: CREATE TABLE table_1341707_15 (incumbent VARCHAR, district VARCHAR, party VARCHAR, result VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341707_15 WHERE party = "Democratic" AND result = "Re-elected" AND district = "Illinois 11" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which incumbent was first elected in 1964? ### Context: CREATE TABLE table_1341707_15 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341707_15 WHERE first_elected = "1964" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What party did the incumbent from the Illinois 1 district belong to? ### Context: CREATE TABLE table_1341707_15 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1341707_15 WHERE district = "Illinois 1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What candidates ran in the election with don fuqua? ### Context: CREATE TABLE table_1341690_9 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341690_9 WHERE incumbent = "Don Fuqua" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many incumbent candidates in the election featuring sam m. gibbons (d) unopposed? ### Context: CREATE TABLE table_1341690_9 (incumbent VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(incumbent) FROM table_1341690_9 WHERE candidates = "Sam M. Gibbons (D) Unopposed" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the last year that someone is first elected? ### Context: CREATE TABLE table_1341690_9 (first_elected INTEGER) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1341690_9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the incumbent in 1940? ### Context: CREATE TABLE table_1341690_9 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341690_9 WHERE first_elected = 1940 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the party when the incumbent is sidney r. yates? ### Context: CREATE TABLE table_1341718_14 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341718_14 WHERE incumbent = "Sidney R. Yates" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what was the year first elected for district illinois 7? ### Context: CREATE TABLE table_1341718_14 (first_elected INTEGER, district VARCHAR) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1341718_14 WHERE district = "Illinois 7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many times was the candidates phil crane (r) 58.0% edward a. warman (d) 42.0%? ### Context: CREATE TABLE table_1341718_14 (incumbent VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(incumbent) FROM table_1341718_14 WHERE candidates = "Phil Crane (R) 58.0% Edward A. Warman (D) 42.0%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many times was it the district illinois 18? ### Context: CREATE TABLE table_1341718_14 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1341718_14 WHERE district = "Illinois 18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who were the candidates when the incumbent was ed derwinski? ### Context: CREATE TABLE table_1341718_14 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341718_14 WHERE incumbent = "Ed Derwinski" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was the first elected when the party was republican and the candidate were robert h. michel (r) 66.1% rosa lee fox (d) 33.9%? ### Context: CREATE TABLE table_1341718_14 (first_elected INTEGER, party VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT MIN(first_elected) FROM table_1341718_14 WHERE party = "Republican" AND candidates = "Robert H. Michel (R) 66.1% Rosa Lee Fox (D) 33.9%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the incumbent in district Texas 15? ### Context: CREATE TABLE table_1341707_45 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341707_45 WHERE district = "Texas 15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which district elected incumbent Earle Cabell? ### Context: CREATE TABLE table_1341718_44 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341718_44 WHERE incumbent = "Earle Cabell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result when Ray Roberts was elected? ### Context: CREATE TABLE table_1341718_44 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1341718_44 WHERE incumbent = "Ray Roberts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest year that a candidate was first elected? ### Context: CREATE TABLE table_1341738_11 (first_elected INTEGER) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1341738_11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Incumbent Bill Harsha was the winner in an election in which the candidates were who? ### Context: CREATE TABLE table_1341718_36 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341718_36 WHERE incumbent = "Bill Harsha" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the party of the first elected candidate in 1954? ### Context: CREATE TABLE table_1341738_36 (party VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT party FROM table_1341738_36 WHERE first_elected = 1954 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many districts does Donald D. Clancy represent? ### Context: CREATE TABLE table_1341738_36 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_1341738_36 WHERE incumbent = "Donald D. Clancy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which party is Lawrence H. Fountain part of? ### Context: CREATE TABLE table_1341738_34 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341738_34 WHERE incumbent = "Lawrence H. Fountain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the first person elected in North Carolina 8? ### Context: CREATE TABLE table_1341738_34 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1341738_34 WHERE district = "North Carolina 8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: who was the candidate elected to the democratic party in 1952? ### Context: CREATE TABLE table_1341738_34 (candidates VARCHAR, first_elected VARCHAR, party VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341738_34 WHERE first_elected = "1952" AND party = "Democratic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What district did Joe Waggonner belong to? ### Context: CREATE TABLE table_1341738_19 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341738_19 WHERE incumbent = "Joe Waggonner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the incumbent who was first eleccted in 1940? ### Context: CREATE TABLE table_1341738_19 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341738_19 WHERE first_elected = 1940 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What party does incumbent edwin reinecke represent? ### Context: CREATE TABLE table_1341738_6 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341738_6 WHERE incumbent = "Edwin Reinecke" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were the candidates in the election that featured incumbent don edwards? ### Context: CREATE TABLE table_1341738_6 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341738_6 WHERE incumbent = "Don Edwards" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who's the incumbent of Indiana 4 district? ### Context: CREATE TABLE table_1341843_15 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341843_15 WHERE district = "Indiana 4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who's the incumbent of the district with first election held in 1950? ### Context: CREATE TABLE table_1341843_15 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341843_15 WHERE first_elected = "1950" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was featured in the election of charles edward bennett redistricted from 2nd? ### Context: CREATE TABLE table_1341843_10 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341843_10 WHERE incumbent = "Charles Edward Bennett Redistricted from 2nd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the first elected for the republican party ### Context: CREATE TABLE table_1341865_23 (first_elected VARCHAR, party VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1341865_23 WHERE party = "Republican" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the district with philip philbin ### Context: CREATE TABLE table_1341865_23 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341865_23 WHERE incumbent = "Philip Philbin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the party with edward boland ### Context: CREATE TABLE table_1341865_23 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341865_23 WHERE incumbent = "Edward Boland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the district who had their first elected in 1966? ### Context: CREATE TABLE table_1341843_44 (district VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT district FROM table_1341843_44 WHERE first_elected = 1966 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the candidate when the incumbent was Richard C. White? ### Context: CREATE TABLE table_1341843_44 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341843_44 WHERE incumbent = "Richard C. White" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What district did Donald Ray Matthews belong to? ### Context: CREATE TABLE table_1341865_11 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341865_11 WHERE incumbent = "Donald Ray Matthews" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What party did Don Fuqua belong to? ### Context: CREATE TABLE table_1341865_11 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341865_11 WHERE incumbent = "Don Fuqua" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many parties won the election in the Louisiana 5 district? ### Context: CREATE TABLE table_1341865_20 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1341865_20 WHERE district = "Louisiana 5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many candidates were elected in the Louisiana 4 district? ### Context: CREATE TABLE table_1341865_20 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(first_elected) FROM table_1341865_20 WHERE district = "Louisiana 4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the winner in the Louisiana 7 district? ### Context: CREATE TABLE table_1341865_20 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341865_20 WHERE district = "Louisiana 7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's party with district being tennessee 3 ### Context: CREATE TABLE table_1341865_44 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1341865_44 WHERE district = "Tennessee 3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many party with district being tennessee 1 ### Context: CREATE TABLE table_1341865_44 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1341865_44 WHERE district = "Tennessee 1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many incumbent with district  being tennessee 5 ### Context: CREATE TABLE table_1341865_44 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(incumbent) FROM table_1341865_44 WHERE district = "Tennessee 5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's incumbent with district being tennessee 5 ### Context: CREATE TABLE table_1341865_44 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341865_44 WHERE district = "Tennessee 5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who ran in the race for Jack Brooks' seat? ### Context: CREATE TABLE table_1341865_45 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341865_45 WHERE incumbent = "Jack Brooks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: which section did seymour halpern run in ### Context: CREATE TABLE table_1341865_34 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341865_34 WHERE incumbent = "Seymour Halpern" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What district is incumbent albert w. johnson from? ### Context: CREATE TABLE table_1341865_40 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341865_40 WHERE incumbent = "Albert W. Johnson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many times was frank m. clark the incumbent? ### Context: CREATE TABLE table_1341865_40 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(result) FROM table_1341865_40 WHERE incumbent = "Frank M. Clark" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What district is incumbent elmer j. holland from? ### Context: CREATE TABLE table_1341865_40 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341865_40 WHERE incumbent = "Elmer J. Holland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: To which party does Frank T. Bow belong? ### Context: CREATE TABLE table_1341865_37 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341865_37 WHERE incumbent = "Frank T. Bow" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who ran in the race for the seat of incumbent Carl W. Rich? ### Context: CREATE TABLE table_1341865_37 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341865_37 WHERE incumbent = "Carl W. Rich" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In which district is the incumbent Carl W. Rich? ### Context: CREATE TABLE table_1341865_37 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341865_37 WHERE incumbent = "Carl W. Rich" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the candidates where incumbent Carl Vinson is? ### Context: CREATE TABLE table_1341884_12 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341884_12 WHERE incumbent = "Carl Vinson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the candidates for massachusetts 8 ### Context: CREATE TABLE table_1341884_23 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341884_23 WHERE district = "Massachusetts 8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What candidates were in the election when a republican was re-elected? ### Context: CREATE TABLE table_1341884_19 (candidates VARCHAR, result VARCHAR, party VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341884_19 WHERE result = "Re-elected" AND party = "Republican" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What district is incumbent frank chelf from? ### Context: CREATE TABLE table_1341884_19 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341884_19 WHERE incumbent = "Frank Chelf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many districts represented Edwin E. Willis? ### Context: CREATE TABLE table_1341884_20 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_1341884_20 WHERE incumbent = "Edwin E. Willis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were all the candidates when the first elected year was 1961? ### Context: CREATE TABLE table_1341884_20 (candidates VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341884_20 WHERE first_elected = 1961 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What party did Hale Boggs belong to? ### Context: CREATE TABLE table_1341884_20 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341884_20 WHERE incumbent = "Hale Boggs" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the political affiliation of the texas 12 district ### Context: CREATE TABLE table_1341884_45 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1341884_45 WHERE district = "Texas 12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many voted in the texas 6 section ### Context: CREATE TABLE table_1341884_45 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1341884_45 WHERE district = "Texas 6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the political affiliation of ray roberts ### Context: CREATE TABLE table_1341884_45 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341884_45 WHERE incumbent = "Ray Roberts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What district featured an election between james a. byrne (d) 59.3% joseph r. burns (r) 40.7%? ### Context: CREATE TABLE table_1341884_40 (district VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT district FROM table_1341884_40 WHERE candidates = "James A. Byrne (D) 59.3% Joseph R. Burns (R) 40.7%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the candidates for massachusetts 6 ### Context: CREATE TABLE table_1341897_23 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341897_23 WHERE district = "Massachusetts 6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the result for massachusetts 3 ### Context: CREATE TABLE table_1341897_23 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1341897_23 WHERE district = "Massachusetts 3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the candidate first elected in 1942 ### Context: CREATE TABLE table_1341897_23 (candidates VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341897_23 WHERE first_elected = 1942 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the party for massachusetts 3 ### Context: CREATE TABLE table_1341897_23 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1341897_23 WHERE district = "Massachusetts 3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What district is incumbent albert rains from? ### Context: CREATE TABLE table_1341897_3 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341897_3 WHERE incumbent = "Albert Rains" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many candidates represent the district of kenneth a. roberts? ### Context: CREATE TABLE table_1341897_3 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1341897_3 WHERE incumbent = "Kenneth A. Roberts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the incumbent in the Arkansas 2 district election? ### Context: CREATE TABLE table_1341897_6 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341897_6 WHERE district = "Arkansas 2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was Dale Alford first elected in the Arkansas 5 district? ### Context: CREATE TABLE table_1341897_6 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1341897_6 WHERE district = "Arkansas 5" </s>