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: How many districts does Ed Jones represent? ### Context: CREATE TABLE table_1341718_43 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_1341718_43 WHERE incumbent = "Ed Jones" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year of the first election of the district whose incumbent is Edwin E. Willis? ### Context: CREATE TABLE table_1341843_19 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1341843_19 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: What district is F. Edward Hebert the incumbent in? ### Context: CREATE TABLE table_1341843_19 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341843_19 WHERE incumbent = "F. Edward Hebert" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were the candidates in the district whose incumbent is Joe Waggonner? ### Context: CREATE TABLE table_1341843_19 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341843_19 WHERE incumbent = "Joe Waggonner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the district that Otto Passman is the incumbent of? ### Context: CREATE TABLE table_1341843_19 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341843_19 WHERE incumbent = "Otto Passman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 that has a republican? ### Context: CREATE TABLE table_1341930_21 (district VARCHAR, party VARCHAR) [/INST] ### Response: SELECT district FROM table_1341930_21 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: What party is incumbent thomas j. lane from? ### Context: CREATE TABLE table_1341930_21 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341930_21 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: What is the last year that someone is first elected in this table? ### Context: CREATE TABLE table_1341930_21 (first_elected INTEGER) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1341930_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: how many party with candidates being alton lennon (d) 89.0% c. dana malpass (r) 11.0% ### Context: CREATE TABLE table_1341930_33 (party VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1341930_33 WHERE candidates = "Alton Lennon (D) 89.0% C. Dana Malpass (R) 11.0%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many first elected with district being north carolina 2 ### Context: CREATE TABLE table_1341930_33 (first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT COUNT(first_elected) FROM table_1341930_33 WHERE district = "North Carolina 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 incumbent with district being north carolina 6 ### Context: CREATE TABLE table_1341930_33 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1341930_33 WHERE district = "North Carolina 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's the party with incumbent being herbert covington bonner ### Context: CREATE TABLE table_1341930_33 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1341930_33 WHERE incumbent = "Herbert Covington Bonner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 incumbent being lawrence h. fountain ### Context: CREATE TABLE table_1341930_33 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1341930_33 WHERE incumbent = "Lawrence H. Fountain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what's the candidates with party being democratic and dbeingtrict being north carolina 1 ### Context: CREATE TABLE table_1341930_33 (candidates VARCHAR, party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341930_33 WHERE party = "Democratic" AND district = "North Carolina 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 was the result of the election of incumbent john shelley? ### Context: CREATE TABLE table_1341973_6 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1341973_6 WHERE incumbent = "John Shelley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What candidates ran in the election that included john shelley? ### Context: CREATE TABLE table_1341973_6 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1341973_6 WHERE incumbent = "John Shelley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the incumbent clyde doyle? ### Context: CREATE TABLE table_1341973_6 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1341973_6 WHERE incumbent = "Clyde Doyle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 california 2? ### Context: CREATE TABLE table_1341973_6 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1341973_6 WHERE district = "California 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 of the election of the incumbent harry r. sheppard? ### Context: CREATE TABLE table_1341973_6 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1341973_6 WHERE incumbent = "Harry R. Sheppard" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Frank J. Becker represent? ### Context: CREATE TABLE table_1342013_31 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342013_31 WHERE incumbent = "Frank J. Becker" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of party had a candidate resigned when appointed judge democratic hold? ### Context: CREATE TABLE table_1342013_31 (party VARCHAR, result VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342013_31 WHERE result = "Resigned when appointed judge 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 district did incumbent Ralph A. Gamble represent? ### Context: CREATE TABLE table_1342013_31 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342013_31 WHERE incumbent = "Ralph A. Gamble" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 candidate in the election of percy priest (d) 90.8% robert m. donihi (r) 9.2%? ### Context: CREATE TABLE table_1342013_41 (incumbent VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342013_41 WHERE candidates = "Percy Priest (D) 90.8% Robert M. Donihi (R) 9.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 tom j. murray from? ### Context: CREATE TABLE table_1342013_41 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342013_41 WHERE incumbent = "Tom J. Murray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What candidates were in the election when james patrick sutton was incumbent? ### Context: CREATE TABLE table_1342013_41 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342013_41 WHERE incumbent = "James Patrick Sutton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has Albert Rains as their representative? ### Context: CREATE TABLE table_1342149_3 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342149_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: Carl Elliott is a member of which party? ### Context: CREATE TABLE table_1342149_3 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342149_3 WHERE incumbent = "Carl 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: How many were first elected when the incumbent was Morgan M. Moulder? ### Context: CREATE TABLE table_1342198_25 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(first_elected) FROM table_1342198_25 WHERE incumbent = "Morgan M. Moulder" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Phil J. Welch first elected? ### Context: CREATE TABLE table_1342198_25 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342198_25 WHERE incumbent = "Phil J. Welch" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was Dewey Short associated with? ### Context: CREATE TABLE table_1342198_25 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342198_25 WHERE incumbent = "Dewey Short" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the district with Republican party in place? ### Context: CREATE TABLE table_1342198_25 (district VARCHAR, party VARCHAR) [/INST] ### Response: SELECT district FROM table_1342198_25 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: Who ran for office in the Alabama 1 district? ### Context: CREATE TABLE table_1342198_3 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342198_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 year was first elected william m. wheeler (d) unopposed? ### Context: CREATE TABLE table_1342218_11 (first_elected VARCHAR, candidates VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342218_11 WHERE candidates = "William M. Wheeler (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 does incumbent james c. davis represent? ### Context: CREATE TABLE table_1342218_11 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342218_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 district is incumbent melvin price from? ### Context: CREATE TABLE table_1342233_13 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342233_13 WHERE incumbent = "Melvin Price" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sid simpson from? ### Context: CREATE TABLE table_1342233_13 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342233_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: Who was the candidate in the election in the Tennessee 9 district? ### Context: CREATE TABLE table_1342233_42 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342233_42 WHERE district = "Tennessee 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: When was the Tennessee 3 district incumbent first elected? ### Context: CREATE TABLE table_1342233_42 (first_elected INTEGER, district VARCHAR) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1342233_42 WHERE district = "Tennessee 3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What district was Harold Earthman the incumbent in? ### Context: CREATE TABLE table_1342233_42 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342233_42 WHERE incumbent = "Harold Earthman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 new york 1 ### Context: CREATE TABLE table_1342249_32 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1342249_32 WHERE district = "New York 1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the first elected for lost renomination democratic loss ### Context: CREATE TABLE table_1342249_32 (first_elected VARCHAR, result VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342249_32 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: How many results have Jere Cooper as incumbent? ### Context: CREATE TABLE table_1342249_42 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342249_42 WHERE incumbent = "Jere Cooper" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won the election of 1942 in the district Illinois 13? ### Context: CREATE TABLE table_1342256_13 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342256_13 WHERE district = "Illinois 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 ran for the House in the 1924 election? ### Context: CREATE TABLE table_1342256_11 (candidates VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342256_11 WHERE first_elected = 1924 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Stephen Pace elected? ### Context: CREATE TABLE table_1342256_11 (first_elected INTEGER, incumbent VARCHAR) [/INST] ### Response: SELECT MIN(first_elected) FROM table_1342256_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: How many incumbents were elected in the 1926 election? ### Context: CREATE TABLE table_1342256_11 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT COUNT(incumbent) FROM table_1342256_11 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: Who were the candidates when Noble Jones Gregory was incumbent? ### Context: CREATE TABLE table_1342270_17 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342270_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: What is the district for harry lane englebright? ### Context: CREATE TABLE table_1342338_6 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT district FROM table_1342338_6 WHERE incumbent = "Harry Lane Englebright" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 california 2? ### Context: CREATE TABLE table_1342338_6 (result VARCHAR, district VARCHAR) [/INST] ### Response: SELECT result FROM table_1342338_6 WHERE district = "California 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 is the party for richard j. welch? ### Context: CREATE TABLE table_1342338_6 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1342338_6 WHERE incumbent = "Richard J. Welch" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winners were there in the race of 1922 ### Context: CREATE TABLE table_1342359_23 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT COUNT(incumbent) FROM table_1342359_23 WHERE first_elected = 1922 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when henry e. barbour ran? ### Context: CREATE TABLE table_1342379_5 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342379_5 WHERE incumbent = "Henry E. Barbour" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 incumbent being whitmell p. martin ### Context: CREATE TABLE table_1342393_17 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(party) FROM table_1342393_17 WHERE incumbent = "Whitmell P. Martin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 james o'connor ### Context: CREATE TABLE table_1342393_17 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342393_17 WHERE incumbent = "James O'Connor" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many incumbent with first elected being 1924 ### Context: CREATE TABLE table_1342393_17 (incumbent VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT COUNT(incumbent) FROM table_1342393_17 WHERE first_elected = 1924 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 kentucky 9 ### Context: CREATE TABLE table_1342393_16 (incumbent VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_1342393_16 WHERE district = "Kentucky 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: Name the party or first elected is 1920 ### Context: CREATE TABLE table_1342393_16 (party VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT party FROM table_1342393_16 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: What is the candidates for first elected 1914 ### Context: CREATE TABLE table_1342393_16 (candidates VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342393_16 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: What was the result of the election for incumbent Cordell Hull? ### Context: CREATE TABLE table_1342393_41 (result VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT result FROM table_1342393_41 WHERE incumbent = "Cordell Hull" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Cordell Hull is the incumbent in how many districts? ### Context: CREATE TABLE table_1342393_41 (district VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(district) FROM table_1342393_41 WHERE incumbent = "Cordell Hull" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total number of votes for Tom Connally ### Context: CREATE TABLE table_1342393_42 (first_elected INTEGER, incumbent VARCHAR) [/INST] ### Response: SELECT MIN(first_elected) FROM table_1342393_42 WHERE incumbent = "Tom Connally" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 william f. stevenson first elected? ### Context: CREATE TABLE table_1342451_38 (first_elected VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_1342451_38 WHERE incumbent = "William F. Stevenson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the last year on this list someone was first elected? ### Context: CREATE TABLE table_1342451_38 (first_elected INTEGER) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1342451_38 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 featured in the election for incumbent samuel j. nicholls' seat? ### Context: CREATE TABLE table_1342451_38 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1342451_38 WHERE incumbent = "Samuel J. Nicholls" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the last year incumbent frederick h. dominick was first elected? ### Context: CREATE TABLE table_1342451_38 (first_elected INTEGER, incumbent VARCHAR) [/INST] ### Response: SELECT MAX(first_elected) FROM table_1342451_38 WHERE incumbent = "Frederick H. Dominick" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who were the candidates when the winner was first elected in 1910? ### Context: CREATE TABLE table_1346137_4 (candidates VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1346137_4 WHERE first_elected = "1910" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning party when the incumbent was richard s. whaley? ### Context: CREATE TABLE table_1346137_4 (party VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT party FROM table_1346137_4 WHERE incumbent = "Richard S. Whaley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 different set of candidates were there when the incumbent was david e. finley? ### Context: CREATE TABLE table_1346137_4 (candidates VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT COUNT(candidates) FROM table_1346137_4 WHERE incumbent = "David E. Finley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning part in the district of South Carolina 3? ### Context: CREATE TABLE table_1346137_4 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_1346137_4 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: Who were the candidates in the district of South Carolina 5? ### Context: CREATE TABLE table_1346137_4 (candidates VARCHAR, district VARCHAR) [/INST] ### Response: SELECT candidates FROM table_1346137_4 WHERE district = "South Carolina 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: When was incumbent John N. Tillman first elected? ### Context: CREATE TABLE table_1346118_4 (first_elected INTEGER, incumbent VARCHAR) [/INST] ### Response: SELECT MIN(first_elected) FROM table_1346118_4 WHERE incumbent = "John N. Tillman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 location and attendance when the team's record was 16-44? ### Context: CREATE TABLE table_13464416_8 (location_attendance VARCHAR, record VARCHAR) [/INST] ### Response: SELECT location_attendance FROM table_13464416_8 WHERE record = "16-44" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 day was the game at chicago? ### Context: CREATE TABLE table_13464416_8 (date VARCHAR, team VARCHAR) [/INST] ### Response: SELECT date FROM table_13464416_8 WHERE team = "Chicago" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 high point scorers in game 7? ### Context: CREATE TABLE table_13464416_4 (high_points VARCHAR, game VARCHAR) [/INST] ### Response: SELECT high_points FROM table_13464416_4 WHERE game = 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 had the high rebound total against golden state? ### Context: CREATE TABLE table_13464416_4 (high_rebounds VARCHAR, team VARCHAR) [/INST] ### Response: SELECT high_rebounds FROM table_13464416_4 WHERE team = "Golden State" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 have there been helps by damon stoudamire (13) ### Context: CREATE TABLE table_13464416_6 (record VARCHAR, high_assists VARCHAR) [/INST] ### Response: SELECT COUNT(record) FROM table_13464416_6 WHERE high_assists = "Damon Stoudamire (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 made the recovers where the score is 12-30 ### Context: CREATE TABLE table_13464416_6 (high_rebounds VARCHAR, record VARCHAR) [/INST] ### Response: SELECT high_rebounds FROM table_13464416_6 WHERE record = "12-30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: tell who made the most scores on new jersey ### Context: CREATE TABLE table_13464416_6 (high_points VARCHAR, team VARCHAR) [/INST] ### Response: SELECT high_points FROM table_13464416_6 WHERE team = "New Jersey" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: how many times was the participation at omni coliseum 7,194? ### Context: CREATE TABLE table_13464416_6 (game VARCHAR, location_attendance VARCHAR) [/INST] ### Response: SELECT game FROM table_13464416_6 WHERE location_attendance = "Omni Coliseum 7,194" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: The minimum average number of dancers is 34.1 how many times ### Context: CREATE TABLE table_1354805_3 (number_of_dances INTEGER, average VARCHAR) [/INST] ### Response: SELECT MIN(number_of_dances) FROM table_1354805_3 WHERE average = "34.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 Number of dances is 11 and competition finish is larger than 2.0 total ### Context: CREATE TABLE table_1354805_3 (total VARCHAR, number_of_dances VARCHAR, competition_finish VARCHAR) [/INST] ### Response: SELECT total FROM table_1354805_3 WHERE number_of_dances = 11 AND competition_finish > 2.0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the club that has 30 points? ### Context: CREATE TABLE table_13564637_5 (club VARCHAR, points VARCHAR) [/INST] ### Response: SELECT club FROM table_13564637_5 WHERE points = "30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What were all the tries for when the try bonus was 8? ### Context: CREATE TABLE table_13564637_5 (tries_for VARCHAR, try_bonus VARCHAR) [/INST] ### Response: SELECT tries_for FROM table_13564637_5 WHERE try_bonus = "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 were the points for when there were 30 tries against? ### Context: CREATE TABLE table_13564637_5 (points_for VARCHAR, tries_against VARCHAR) [/INST] ### Response: SELECT points_for FROM table_13564637_5 WHERE tries_against = "30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 numbers were recorded points against when the tries were for 43? ### Context: CREATE TABLE table_13564637_5 (points_against VARCHAR, tries_for VARCHAR) [/INST] ### Response: SELECT COUNT(points_against) FROM table_13564637_5 WHERE tries_for = "43" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tries against when points against 287? ### Context: CREATE TABLE table_13564637_5 (tries_against VARCHAR, points_against VARCHAR) [/INST] ### Response: SELECT tries_against FROM table_13564637_5 WHERE points_against = "287" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What were all the points for Tonyrefail RFC? ### Context: CREATE TABLE table_13564637_5 (points_for VARCHAR, club VARCHAR) [/INST] ### Response: SELECT points_for FROM table_13564637_5 WHERE club = "Tonyrefail RFC" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Pink cytoplasm is seen in a test that specifically stains what? ### Context: CREATE TABLE table_13570_1 (specifically_stains VARCHAR, cytoplasm VARCHAR) [/INST] ### Response: SELECT specifically_stains FROM table_13570_1 WHERE cytoplasm = "Pink" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 cytoplasms result in a blue nucleus? ### Context: CREATE TABLE table_13570_1 (cytoplasm VARCHAR, nucleus VARCHAR) [/INST] ### Response: SELECT COUNT(cytoplasm) FROM table_13570_1 WHERE nucleus = "Blue" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: A nucleus that is blue/black will specifically stain what? ### Context: CREATE TABLE table_13570_1 (specifically_stains VARCHAR, nucleus VARCHAR) [/INST] ### Response: SELECT specifically_stains FROM table_13570_1 WHERE nucleus = "Blue/black" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: The pink cytoplasm will have a nucleus of what color? ### Context: CREATE TABLE table_13570_1 (nucleus VARCHAR, cytoplasm VARCHAR) [/INST] ### Response: SELECT nucleus FROM table_13570_1 WHERE cytoplasm = "Pink" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 stain is used commonly for elastic fibers? ### Context: CREATE TABLE table_13570_1 (stain VARCHAR, common_use VARCHAR) [/INST] ### Response: SELECT stain FROM table_13570_1 WHERE common_use = "Elastic fibers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: where is hte second place winner from united kingdom? ### Context: CREATE TABLE table_1359212_2 (winner VARCHAR, second_place VARCHAR) [/INST] ### Response: SELECT winner FROM table_1359212_2 WHERE second_place = "United Kingdom" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 locations has spain as the winner? ### Context: CREATE TABLE table_1359212_2 (location VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT COUNT(location) FROM table_1359212_2 WHERE winner = "Spain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 artist performing at heineken music hall? ### Context: CREATE TABLE table_1359212_2 (artist VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT artist FROM table_1359212_2 WHERE venue = "Heineken Music Hall" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 amount has spain as second place and the language is russian? ### Context: CREATE TABLE table_1359212_2 (margin VARCHAR, second_place VARCHAR, language VARCHAR) [/INST] ### Response: SELECT COUNT(margin) FROM table_1359212_2 WHERE second_place = "Spain" AND language = "Russian" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Curtiss XBTC aircraft are retired? ### Context: CREATE TABLE table_13605170_2 (retired VARCHAR, aircraft_type VARCHAR) [/INST] ### Response: SELECT COUNT(retired) FROM table_13605170_2 WHERE aircraft_type = "Curtiss XBTC" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Airspeed Fleet Shadower aircraft are retired? ### Context: CREATE TABLE table_13605170_2 (retired VARCHAR, aircraft_type VARCHAR) [/INST] ### Response: SELECT retired FROM table_13605170_2 WHERE aircraft_type = "Airspeed Fleet Shadower" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 origin of aircraft in service in 1943 and retired in 1954? ### Context: CREATE TABLE table_13605170_2 (national_origin VARCHAR, retired VARCHAR, in_service VARCHAR) [/INST] ### Response: SELECT national_origin FROM table_13605170_2 WHERE retired = "1954" AND in_service = "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: Who was the winner when the time was 1:24.00? ### Context: CREATE TABLE table_1360997_2 (winner_2nd VARCHAR, time VARCHAR) [/INST] ### Response: SELECT winner_2nd FROM table_1360997_2 WHERE time = "1:24.00" </s>