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: When was James William Trimble first elected in the Arkansas 3 district? ### Context: CREATE TABLE table_1341897_6 (first_elected INTEGER, district VARCHAR) [/INST] ### Response: SELECT MIN(first_elected) FROM table_1341897_6 WHERE district = "Arkansas 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: When party did the incumbent in the Arkansas 5 district belong to? ### Context: CREATE TABLE table_1341897_6 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1341897_6 WHERE district = "Arkansas 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 was the result in the Arkansas 5 district election? ### Context: CREATE TABLE table_1341897_6 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1341897_6 WHERE district = "Arkansas 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 party did the incumbent in the Arkansas 2 district belong to? ### Context: CREATE TABLE table_1341897_6 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party 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: How many candidates were there in the election for William Jennings Bryan Dorn's seat? ### Context: CREATE TABLE table_1341897_42 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1341897_42 WHERE incumbent = "William Jennings Bryan Dorn" </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 earliest year that a candidate was first elected? ### Context: CREATE TABLE table_1341897_42 (first_elected INTEGER) [/INST] ### Response: SELECT MIN(first_elected) FROM table_1341897_42 </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 of the election in which Lindley Beckworth was the incumbent? ### Context: CREATE TABLE table_1341897_45 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1341897_45 WHERE incumbent = "Lindley Beckworth" </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 1936? ### Context: CREATE TABLE table_1341897_45 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341897_45 WHERE first_elected = 1936 </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 of the election in which Walter E. Rogers was the incumbent? ### Context: CREATE TABLE table_1341897_45 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1341897_45 WHERE incumbent = "Walter E. Rogers" </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 Paul Rogers first elected? ### Context: CREATE TABLE table_1341930_10 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1341930_10 WHERE incumbent = "Paul Rogers" </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 is James A. Haley from? ### Context: CREATE TABLE table_1341930_10 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341930_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: What year were the latest elections? ### Context: CREATE TABLE table_1341930_10 (first_elected INTEGER) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1341930_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: In what district is the incumbent John Bell Williams? ### Context: CREATE TABLE table_1341930_24 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341930_24 WHERE incumbent = "John Bell Williams" </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 what year was John Bell Williams first elected? ### Context: CREATE TABLE table_1341930_24 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1341930_24 WHERE incumbent = "John Bell Williams" </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 have W. Arthur Winstead as elected official? ### Context: CREATE TABLE table_1341930_24 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_1341930_24 WHERE incumbent = "W. Arthur Winstead" </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 for carl vinson? ### Context: CREATE TABLE table_1341930_11 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341930_11 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: What is the most first elected for james c. davis? ### Context: CREATE TABLE table_1341930_11 (first_elected INTEGER, incumbent VARCHAR) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1341930_11 WHERE incumbent = "James C. Davis" </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 first elected for georgia 4? ### Context: CREATE TABLE table_1341930_11 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1341930_11 WHERE district = "Georgia 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: which affiliation does edwin e. willis affiliate with ### Context: CREATE TABLE table_1341930_18 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341930_18 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: which affiliation is james h. morrison part of ### Context: CREATE TABLE table_1341930_18 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341930_18 WHERE incumbent = "James H. Morrison" </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 candidate that was first elected in 1914? ### Context: CREATE TABLE table_1341973_11 (candidates VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341973_11 WHERE first_elected = 1914 </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 Vinson? ### Context: CREATE TABLE table_1341973_11 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341973_11 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 l. mendel rivers ### Context: CREATE TABLE table_1341930_40 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1341930_40 WHERE incumbent = "L. Mendel Rivers" </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 south carolina 4 ### Context: CREATE TABLE table_1341930_40 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1341930_40 WHERE district = "South Carolina 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: Name the candidates for south carolina 3 ### Context: CREATE TABLE table_1341930_40 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341930_40 WHERE district = "South Carolina 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 incumbent for first elected 1956 ### Context: CREATE TABLE table_1341930_40 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341930_40 WHERE first_elected = 1956 </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 number of party with the incubent james william trimble ### Context: CREATE TABLE table_1341930_5 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1341930_5 WHERE incumbent = "James William Trimble" </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 result for first elected in 1944 ### Context: CREATE TABLE table_1341930_5 (result VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT result FROM table_1341930_5 WHERE first_elected = 1944 </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 number of party in the arkansas 1 district ### Context: CREATE TABLE table_1341930_5 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1341930_5 WHERE district = "Arkansas 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: Who is the incumbent in the Alabama 6 voting district? ### Context: CREATE TABLE table_1341973_3 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341973_3 WHERE district = "Alabama 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: Which candidates were in the election where Frank W. Boykin was an incumbent? ### Context: CREATE TABLE table_1341973_3 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341973_3 WHERE incumbent = "Frank W. Boykin" </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 where the incumbent is George M. Grant? ### Context: CREATE TABLE table_1341973_3 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341973_3 WHERE incumbent = "George M. Grant" </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 candidates ran in the Alabama 6 district? ### Context: CREATE TABLE table_1341973_3 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341973_3 WHERE district = "Alabama 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 latest year listed with the Alabama 4 voting district? ### Context: CREATE TABLE table_1341973_3 (first_elected INTEGER, district VARCHAR) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1341973_3 WHERE district = "Alabama 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: What was the result when incumbent Fred E. Busbey was elected? ### Context: CREATE TABLE table_1342013_12 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342013_12 WHERE incumbent = "Fred E. Busbey" </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 results are listed for the election where Noah M. Mason was elected? ### Context: CREATE TABLE table_1342013_12 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(result) FROM table_1342013_12 WHERE incumbent = "Noah M. Mason" </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 Leo E. Allen was elected? ### Context: CREATE TABLE table_1342013_12 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342013_12 WHERE incumbent = "Leo E. Allen" </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 had a person who has been in the seat since 1914? ### Context: CREATE TABLE table_1342013_10 (party VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT party FROM table_1342013_10 WHERE first_elected = 1914 </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 all the candidates listed in the race where the incumbent is Prince Hulon Preston, Jr. ### Context: CREATE TABLE table_1342013_10 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342013_10 WHERE incumbent = "Prince Hulon Preston, Jr." </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 ran in the race where the incumbent is J. L. Pilcher? ### Context: CREATE TABLE table_1342013_10 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1342013_10 WHERE incumbent = "J. L. Pilcher" </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: John W. Heselton was first elected in what year? ### Context: CREATE TABLE table_1342013_20 (first_elected INTEGER, incumbent VARCHAR) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1342013_20 WHERE incumbent = "John W. Heselton" </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: Thomas J. Lane is the incumbent of how many parties? ### Context: CREATE TABLE table_1342013_20 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342013_20 WHERE incumbent = "Thomas J. Lane" </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 first elected in 1944? ### Context: CREATE TABLE table_1342013_20 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342013_20 WHERE first_elected = 1944 </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 for the politician first elected in 1942? ### Context: CREATE TABLE table_1342013_20 (result VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT result FROM table_1342013_20 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: what's the result for district ohio 2 ### Context: CREATE TABLE table_1342013_34 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1342013_34 WHERE district = "Ohio 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: who is the the incumbent with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5% ### Context: CREATE TABLE table_1342013_34 (incumbent VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342013_34 WHERE candidates = "John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.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 is the the incumbent with district being ohio 2 ### Context: CREATE TABLE table_1342013_34 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342013_34 WHERE district = "Ohio 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: what's the result with incumbent being william h. ayres ### Context: CREATE TABLE table_1342013_34 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342013_34 WHERE incumbent = "William H. Ayres" </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 candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5% ### Context: CREATE TABLE table_1342013_34 (party VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342013_34 WHERE candidates = "John M. Vorys (R) 61.5% Jacob F. Myers (D) 38.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 district is Brooks Hays in ### Context: CREATE TABLE table_1342013_4 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342013_4 WHERE incumbent = "Brooks Hays" </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: Omar Burleson was the incumbent in what district? ### Context: CREATE TABLE table_1342013_42 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342013_42 WHERE incumbent = "Omar Burleson" </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 what district was incumbent first elected in 1938? ### Context: CREATE TABLE table_1342013_42 (district VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT district FROM table_1342013_42 WHERE first_elected = 1938 </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 the pennsylvania 25 ### Context: CREATE TABLE table_1342013_37 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1342013_37 WHERE district = "Pennsylvania 25" </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 minumim first elected for alvin bush ### Context: CREATE TABLE table_1342013_37 (first_elected INTEGER, incumbent VARCHAR) [/INST] ### Response: SELECT MIN(first_elected) FROM table_1342013_37 WHERE incumbent = "Alvin Bush" </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 incumbent for pennsylvania 15 ### Context: CREATE TABLE table_1342013_37 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342013_37 WHERE district = "Pennsylvania 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: What are the candidates for noah m. mason? ### Context: CREATE TABLE table_1342149_13 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1342149_13 WHERE incumbent = "Noah M. Mason" </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 candidates for fred e. busbey? ### Context: CREATE TABLE table_1342149_13 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342149_13 WHERE incumbent = "Fred E. Busbey" </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 incumbent for 1932? ### Context: CREATE TABLE table_1342149_13 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342149_13 WHERE first_elected = 1932 </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 first elected with incumbent being charles edward bennett ### Context: CREATE TABLE table_1342013_9 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(first_elected) FROM table_1342013_9 WHERE incumbent = "Charles Edward Bennett" </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 the incumbent with dbeingtrict being florida 2 ### Context: CREATE TABLE table_1342013_9 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342013_9 WHERE district = "Florida 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: what's the result with candidates being charles edward bennett (d) unopposed ### Context: CREATE TABLE table_1342013_9 (result VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT result FROM table_1342013_9 WHERE candidates = "Charles Edward Bennett (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's the result with dbeingtrict being florida 4 ### Context: CREATE TABLE table_1342013_9 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1342013_9 WHERE district = "Florida 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: how many party with candidates being charles edward bennett (d) unopposed ### Context: CREATE TABLE table_1342013_9 (party VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342013_9 WHERE candidates = "Charles Edward Bennett (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: how many first elected with incumbent being william c. lantaff ### Context: CREATE TABLE table_1342013_9 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(first_elected) FROM table_1342013_9 WHERE incumbent = "William C. Lantaff" </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 of the election when Tic Forrester ran as an incumbent? ### Context: CREATE TABLE table_1342149_11 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342149_11 WHERE incumbent = "Tic Forrester" </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 final result for Craig Hosmer? ### Context: CREATE TABLE table_1342013_5 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342013_5 WHERE incumbent = "Craig Hosmer" </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 does Harlan Hagen represent? ### Context: CREATE TABLE table_1342013_5 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342013_5 WHERE incumbent = "Harlan Hagen" </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 in the election in the Louisiana 2 district? ### Context: CREATE TABLE table_1342149_18 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342149_18 WHERE district = "Louisiana 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: What candidate was re-elected in the Louisiana 5 district? ### Context: CREATE TABLE table_1342149_18 (candidates VARCHAR, result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342149_18 WHERE result = "Re-elected" AND 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: What party's candidate was re-elected in the Louisiana 6 district? ### Context: CREATE TABLE table_1342149_18 (party VARCHAR, result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1342149_18 WHERE result = "Re-elected" AND district = "Louisiana 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 was the result in the election where Hale Boggs was the incumbent? ### Context: CREATE TABLE table_1342149_18 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342149_18 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: Name the result for mississippi 2 ### Context: CREATE TABLE table_1342149_24 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1342149_24 WHERE district = "Mississippi 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: Name the number of candidates for 1941 ### Context: CREATE TABLE table_1342149_24 (candidates VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1342149_24 WHERE first_elected = 1941 </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 result of lost renomination democratic loss ### Context: CREATE TABLE table_1342149_24 (candidates VARCHAR, result VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342149_24 WHERE result = "Lost renomination Democratic loss" </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 first elected of 1920 ### Context: CREATE TABLE table_1342149_24 (result VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT result FROM table_1342149_24 WHERE first_elected = 1920 </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 the District Tennessee 7 what is the number of first elected? ### Context: CREATE TABLE table_1342149_42 (first_elected INTEGER, district VARCHAR) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1342149_42 WHERE district = "Tennessee 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 is the candidates result that is tom j. murray (d) unopposed? ### Context: CREATE TABLE table_1342149_42 (result VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT result FROM table_1342149_42 WHERE candidates = "Tom J. Murray (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: For the Republican party what are the names of the incumbents? ### Context: CREATE TABLE table_1342149_42 (incumbent VARCHAR, party VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342149_42 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: How many parties match the canididates listed as howard baker, sr. (r) 68.9% boyd w. cox (d) 31.1%? ### Context: CREATE TABLE table_1342149_42 (party VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342149_42 WHERE candidates = "Howard Baker, Sr. (R) 68.9% Boyd W. Cox (D) 31.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: Which district had Paul B. Dague as the incumbent? ### Context: CREATE TABLE table_1342149_38 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342149_38 WHERE incumbent = "Paul B. Dague" </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 in the election where the incumbent was first elected in 1942? ### Context: CREATE TABLE table_1342149_43 (result VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT result FROM table_1342149_43 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: What was the result of the election in the Texas 3 district? ### Context: CREATE TABLE table_1342149_43 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1342149_43 WHERE district = "Texas 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 party did incumbent Wright Patman belong to? ### Context: CREATE TABLE table_1342149_43 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342149_43 WHERE incumbent = "Wright Patman" </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 of the election in the Texas 4 district? ### Context: CREATE TABLE table_1342149_43 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1342149_43 WHERE district = "Texas 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: What party did the re-elected incumbent of the Texas 11 district belong to? ### Context: CREATE TABLE table_1342149_43 (party VARCHAR, result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1342149_43 WHERE result = "Re-elected" AND district = "Texas 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: List all those first elected in the California 22 voting district. ### Context: CREATE TABLE table_1342149_6 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342149_6 WHERE district = "California 22" </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 elected incumbent in the 1946 election? ### Context: CREATE TABLE table_1342149_6 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342149_6 WHERE first_elected = "1946" </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 results does the California 29 voting district have? ### Context: CREATE TABLE table_1342149_6 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(result) FROM table_1342149_6 WHERE district = "California 29" </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 had Clair Engle as an incumbent? ### Context: CREATE TABLE table_1342149_6 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342149_6 WHERE incumbent = "Clair Engle" </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 sid simpson represent? ### Context: CREATE TABLE table_1342198_13 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342198_13 WHERE incumbent = "Sid Simpson" </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 ran against barratt o'hara? ### Context: CREATE TABLE table_1342198_13 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1342198_13 WHERE incumbent = "Barratt O'Hara" </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 incumbent barratt o'hara first elected? ### Context: CREATE TABLE table_1342198_13 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342198_13 WHERE incumbent = "Barratt O'Hara" </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 results for minimum first elected incumbent Noble Jones Gregory? ### Context: CREATE TABLE table_1342198_17 (first_elected INTEGER, incumbent VARCHAR) [/INST] ### Response: SELECT MIN(first_elected) FROM table_1342198_17 WHERE incumbent = "Noble Jones Gregory" </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 results for incumbent Noble Jones Gregory? ### Context: CREATE TABLE table_1342198_17 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_1342198_17 WHERE incumbent = "Noble Jones Gregory" </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 candidate wehre district is louisiana 1? ### Context: CREATE TABLE table_1342198_18 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342198_18 WHERE district = "Louisiana 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 is the party where the incumbent is overton brooks? ### Context: CREATE TABLE table_1342198_18 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342198_18 WHERE incumbent = "Overton 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: who athe party where district is louisiana 2? ### Context: CREATE TABLE table_1342198_18 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1342198_18 WHERE district = "Louisiana 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: who is the candidate where district is louisiana 3? ### Context: CREATE TABLE table_1342198_18 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342198_18 WHERE district = "Louisiana 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 is the minimum number first elected to district louisiana 5? ### Context: CREATE TABLE table_1342198_18 (first_elected INTEGER, district VARCHAR) [/INST] ### Response: SELECT MIN(first_elected) FROM table_1342198_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: What was the result when incumbent Tom Steed was elected? ### Context: CREATE TABLE table_1342198_36 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342198_36 WHERE incumbent = "Tom Steed" </s>