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 was the candidates for hardie scott ### Context: CREATE TABLE table_1342198_38 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342198_38 WHERE incumbent = "Hardie Scott" </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 candidates for pennsylvania 3 ### Context: CREATE TABLE table_1342198_38 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1342198_38 WHERE district = "Pennsylvania 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 number of candidates for pennsylvania 21 ### Context: CREATE TABLE table_1342198_38 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1342198_38 WHERE district = "Pennsylvania 21" </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 for first elected 1948 for william t. granahan ### Context: CREATE TABLE table_1342198_38 (party VARCHAR, first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342198_38 WHERE first_elected = 1948 AND incumbent = "William T. Granahan" </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 race where Cecil R. King is the incumbent? ### Context: CREATE TABLE table_1342198_6 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1342198_6 WHERE incumbent = "Cecil R. King" </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 an incumbent first elected in 1944? ### Context: CREATE TABLE table_1342198_6 (district VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_1342198_6 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: Who was the incumbent in the Illinois 17 district? ### Context: CREATE TABLE table_1342218_13 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342218_13 WHERE district = "Illinois 17" </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 people on this list are named thomas abernethy? ### Context: CREATE TABLE table_1342218_24 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1342218_24 WHERE incumbent = "Thomas Abernethy" </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 w. arthur winstead first elected? ### Context: CREATE TABLE table_1342218_24 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(first_elected) FROM table_1342218_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: How many times was william m. colmer winstead first elected? ### Context: CREATE TABLE table_1342218_24 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(first_elected) FROM table_1342218_24 WHERE incumbent = "William M. Colmer" </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 with jamie l. whitten? ### Context: CREATE TABLE table_1342218_24 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342218_24 WHERE incumbent = "Jamie L. Whitten" </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 and was first elected in 1942? ### Context: CREATE TABLE table_1342218_35 (candidates VARCHAR, result VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342218_35 WHERE result = "Re-elected" AND 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: Who are the candidates in the election in the Ohio 9 district? ### Context: CREATE TABLE table_1342218_35 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342218_35 WHERE district = "Ohio 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: What year was incumbent Michael A. Feighan first elected? ### Context: CREATE TABLE table_1342218_35 (first_elected INTEGER, incumbent VARCHAR) [/INST] ### Response: SELECT MIN(first_elected) FROM table_1342218_35 WHERE incumbent = "Michael A. Feighan" </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 the incumbent from the Ohio 5 district belong to? ### Context: CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1342218_35 WHERE district = "Ohio 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 does the incumbent from the Ohio 20 district belong to? ### Context: CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1342218_35 WHERE district = "Ohio 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 party does the incumbent from the Ohio 7 district belong to? ### Context: CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1342218_35 WHERE district = "Ohio 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: Who is the candidate for the district Arkansas 2? ### Context: CREATE TABLE table_1342218_5 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342218_5 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: Which district has the incumbent Wilbur Mills and a re-elected result? ### Context: CREATE TABLE table_1342218_5 (district VARCHAR, result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342218_5 WHERE result = "Re-elected" AND incumbent = "Wilbur Mills" </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 first-elected for the row of Texas 2? ### Context: CREATE TABLE table_1342218_43 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342218_43 WHERE district = "Texas 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 was the result for the incumbent Milton H. West? ### Context: CREATE TABLE table_1342218_43 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342218_43 WHERE incumbent = "Milton H. West" </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 is associated with Texas 2? ### Context: CREATE TABLE table_1342218_43 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1342218_43 WHERE district = "Texas 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 the result is retired to run for U.S. Senate Democratic Hold, who is the candidate? ### Context: CREATE TABLE table_1342218_43 (candidates VARCHAR, result VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342218_43 WHERE result = "Retired to run for U.S. Senate Democratic hold" </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 has a result of being re-elected in the Texas 7 District? ### Context: CREATE TABLE table_1342218_43 (candidates VARCHAR, result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342218_43 WHERE result = "Re-elected" AND district = "Texas 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: Which party is associated with the candidate Albert Sidney Camp (D) unopposed? ### Context: CREATE TABLE table_1342233_11 (party VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342233_11 WHERE candidates = "Albert Sidney Camp (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: Which district is associated with the incumbent Carl Vinson? ### Context: CREATE TABLE table_1342233_11 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342233_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: Which candidates are associated with the Georgia 7 district? ### Context: CREATE TABLE table_1342233_11 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342233_11 WHERE district = "Georgia 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 candidate is associated with the Georgia 4 district? ### Context: CREATE TABLE table_1342233_11 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342233_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: What year was incumbent joe b. bates first elected? ### Context: CREATE TABLE table_1342233_17 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342233_17 WHERE incumbent = "Joe B. Bates" </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 is incumbent virgil chapman from? ### Context: CREATE TABLE table_1342233_17 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342233_17 WHERE incumbent = "Virgil Chapman" </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 clair engle first elected? ### Context: CREATE TABLE table_1342218_6 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342218_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 is the result of the first elected is 1943? ### Context: CREATE TABLE table_1342218_6 (result VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT result FROM table_1342218_6 WHERE first_elected = 1943 </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 the the end number where albert rains was running ### Context: CREATE TABLE table_1342233_3 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(result) FROM table_1342233_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: what the was the final in which frank w. boykin was running ### Context: CREATE TABLE table_1342233_3 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342233_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: Name the total number of first elected for sol bloom ### Context: CREATE TABLE table_1342233_32 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(first_elected) FROM table_1342233_32 WHERE incumbent = "Sol Bloom" </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 ellsworth b. buck ### Context: CREATE TABLE table_1342233_32 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342233_32 WHERE incumbent = "Ellsworth B. Buck" </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 new york 35? ### Context: CREATE TABLE table_1342233_32 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342233_32 WHERE district = "New York 35" </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 for new york 20? ### Context: CREATE TABLE table_1342233_32 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1342233_32 WHERE district = "New York 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 was the result of the election featuring r. ewing thomason (d) unopposed? ### Context: CREATE TABLE table_1342233_43 (result VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT result FROM table_1342233_43 WHERE candidates = "R. Ewing Thomason (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 district is eugene worley from? ### Context: CREATE TABLE table_1342233_43 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342233_43 WHERE incumbent = "Eugene Worley" </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 result with candidates being richard j. welch (r) unopposed ### Context: CREATE TABLE table_1342233_6 (result VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(result) FROM table_1342233_6 WHERE candidates = "Richard J. Welch (R) 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 incumbent being jack z. anderson ### Context: CREATE TABLE table_1342233_6 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342233_6 WHERE incumbent = "Jack Z. Anderson" </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 district with result being re-elected and candidates being clarence f. lea (d) unopposed ### Context: CREATE TABLE table_1342233_6 (district VARCHAR, result VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT district FROM table_1342233_6 WHERE result = "Re-elected" AND candidates = "Clarence F. Lea (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 first elected with incumbent being clair engle ### Context: CREATE TABLE table_1342233_6 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342233_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: who is the the candidates with incumbent being alfred j. elliott ### Context: CREATE TABLE table_1342233_6 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342233_6 WHERE incumbent = "Alfred J. Elliott" </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 jack z. anderson (r) unopposed ### Context: CREATE TABLE table_1342233_6 (incumbent VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342233_6 WHERE candidates = "Jack Z. Anderson (R) 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 parties does incumbent carl vinson represent? ### Context: CREATE TABLE table_1342249_11 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342249_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: How many parties does incumbent stephen pace represent? ### Context: CREATE TABLE table_1342249_11 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342249_11 WHERE incumbent = "Stephen Pace" </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 Noah M. Mason was incumbent? ### Context: CREATE TABLE table_1342249_13 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342249_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: In what year was Leo E. Allen first elected? ### Context: CREATE TABLE table_1342249_13 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342249_13 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: Who were the candidates when Sid Simpson was the incumbent? ### Context: CREATE TABLE table_1342249_13 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342249_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: What was the result of Robert L. F. Sikes' election bid? ### Context: CREATE TABLE table_1342256_10 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342256_10 WHERE incumbent = "Robert L. F. Sikes" </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 an incumbent first elected in 1940? ### Context: CREATE TABLE table_1342256_10 (district VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_1342256_10 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: How many races involve incumbent Pat Cannon? ### Context: CREATE TABLE table_1342256_10 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(result) FROM table_1342256_10 WHERE incumbent = "Pat Cannon" </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 1940? ### Context: CREATE TABLE table_1342256_10 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342256_10 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 first electedfor district ohio 18 ### Context: CREATE TABLE table_1342249_35 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342249_35 WHERE district = "Ohio 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: What is the incumbent for ohio 12? ### Context: CREATE TABLE table_1342249_35 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342249_35 WHERE district = "Ohio 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 are all of the candidates in the election featuring james r. domengeaux? ### Context: CREATE TABLE table_1342256_18 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342256_18 WHERE incumbent = "James R. Domengeaux" </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 that ran for the seat where Harold D. Cooley is the incumbent? ### Context: CREATE TABLE table_1342256_33 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342256_33 WHERE incumbent = "Harold D. Cooley" </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 partys have a candidate first elected in 1923? ### Context: CREATE TABLE table_1342256_33 (party VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342256_33 WHERE first_elected = 1923 </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 number of candidates when Leon Sacks was incumbent? ### Context: CREATE TABLE table_1342256_38 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1342256_38 WHERE incumbent = "Leon Sacks" </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 Pennsylvania 13? ### Context: CREATE TABLE table_1342256_38 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1342256_38 WHERE district = "Pennsylvania 13" </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 Pennsylvania 27? ### Context: CREATE TABLE table_1342256_38 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342256_38 WHERE district = "Pennsylvania 27" </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 contenders In the New York 19 polling area race? ### Context: CREATE TABLE table_1342256_32 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342256_32 WHERE district = "New York 19" </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 polling areas are there with John Taber as the sitting Representative? ### Context: CREATE TABLE table_1342256_32 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_1342256_32 WHERE incumbent = "John Taber" </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 contenders In the New York 29 polling area race? ### Context: CREATE TABLE table_1342256_32 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342256_32 WHERE district = "New York 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 political party is involved where John J. Delaney is the sitting Representative? ### Context: CREATE TABLE table_1342256_32 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342256_32 WHERE incumbent = "John J. Delaney" </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 sitting Representative In the New York 10 polling area race? ### Context: CREATE TABLE table_1342256_32 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342256_32 WHERE district = "New York 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 sitting Representatives are there in the New York 10 polling area? ### Context: CREATE TABLE table_1342256_32 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(incumbent) FROM table_1342256_32 WHERE district = "New York 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: What is the district for james p. richards? ### Context: CREATE TABLE table_1342256_40 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342256_40 WHERE incumbent = "James P. Richards" </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 candidate for south carolina 4? ### Context: CREATE TABLE table_1342256_40 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342256_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: What is the candidate for south carolina 3? ### Context: CREATE TABLE table_1342256_40 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342256_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: What is the first elected for south carolina 4? ### Context: CREATE TABLE table_1342256_40 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342256_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: How many candidates were in the election featuring brooks hays (d) unopposed? ### Context: CREATE TABLE table_1342256_5 (first_elected VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(first_elected) FROM table_1342256_5 WHERE candidates = "Brooks Hays (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 party does clyde t. ellis represent? ### Context: CREATE TABLE table_1342256_5 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342256_5 WHERE incumbent = "Clyde T. Ellis" </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 j. phillips (r) 57.6% n. e. west (d) 42.4% ### Context: CREATE TABLE table_1342256_6 (party VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342256_6 WHERE candidates = "John J. Phillips (R) 57.6% N. E. West (D) 42.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's the result with dbeingtrict being california 10 ### Context: CREATE TABLE table_1342256_6 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1342256_6 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: what's the party with first elected being 1926 ### Context: CREATE TABLE table_1342256_6 (party VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT party FROM table_1342256_6 WHERE first_elected = "1926" </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 incumbent with result being new seat republican gain ### Context: CREATE TABLE table_1342256_6 (incumbent VARCHAR, result VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342256_6 WHERE result = "New seat 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: what was the maxiumum for the first elected? ### Context: CREATE TABLE table_1342270_24 (first_elected INTEGER) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1342270_24 </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 first elected with incumbent being joe starnes ### Context: CREATE TABLE table_1342270_3 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342270_3 WHERE incumbent = "Joe Starnes" </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 first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003% ### Context: CREATE TABLE table_1342270_3 (first_elected VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342270_3 WHERE candidates = "Joe Starnes (D) 100.0% George Bogus ( W/I ) 0.003%" </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 dbeingtrict being alabama 6 ### Context: CREATE TABLE table_1342270_3 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342270_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 are all the district with incumbent being sam hobbs ### Context: CREATE TABLE table_1342270_3 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342270_3 WHERE incumbent = "Sam Hobbs" </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 result with district being alabama 1 ### Context: CREATE TABLE table_1342270_3 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1342270_3 WHERE district = "Alabama 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 maximum first elected with district being alabama 5 ### Context: CREATE TABLE table_1342270_3 (first_elected INTEGER, district VARCHAR) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1342270_3 WHERE district = "Alabama 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 Tennessee 6 district election? ### Context: CREATE TABLE table_1342270_42 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1342270_42 WHERE district = "Tennessee 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: In how many districts was the incumbent Estes Kefauver? ### Context: CREATE TABLE table_1342270_42 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_1342270_42 WHERE incumbent = "Estes Kefauver" </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 any of the incumbents were first elected? ### Context: CREATE TABLE table_1342270_42 (first_elected INTEGER) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1342270_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 Tennessee 2 district election? ### Context: CREATE TABLE table_1342270_42 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1342270_42 WHERE district = "Tennessee 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 district is incumbent robert l. mouton from? ### Context: CREATE TABLE table_1342292_17 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342292_17 WHERE incumbent = "Robert L. Mouton" </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: William Fadjo Cravens is the only candidate who was first elected in 1939. ### Context: CREATE TABLE table_1342270_5 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(first_elected) FROM table_1342270_5 WHERE incumbent = "William Fadjo Cravens" </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: William Fadjo Cravens serves the fourth district of Arkansas. ### Context: CREATE TABLE table_1342270_5 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342270_5 WHERE incumbent = "William Fadjo Cravens" </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 party with district being alabama 3 ### Context: CREATE TABLE table_1342292_2 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1342292_2 WHERE district = "Alabama 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's the incumbent with candidates being sam hobbs (d) 88.2% c. w. mckay (r) 11.8% ### Context: CREATE TABLE table_1342292_2 (incumbent VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342292_2 WHERE candidates = "Sam Hobbs (D) 88.2% C. W. McKay (R) 11.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's the party with incumbent being john sparkman ### Context: CREATE TABLE table_1342292_2 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342292_2 WHERE incumbent = "John Sparkman" </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 dbeingtrict with candidates being william b. bankhead (d) 71.3% e. m. reed (r) 28.7% ### Context: CREATE TABLE table_1342292_2 (district VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_1342292_2 WHERE candidates = "William B. Bankhead (D) 71.3% E. M. Reed (R) 28.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 the party with incumbent being william b. bankhead ### Context: CREATE TABLE table_1342292_2 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342292_2 WHERE incumbent = "William B. Bankhead" </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 district  with first elected being 1938 ### Context: CREATE TABLE table_1342292_2 (district VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT district FROM table_1342292_2 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: How many incumbents were first elected in 1930? ### Context: CREATE TABLE table_1342292_45 (party VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342292_45 WHERE first_elected = 1930 </s>