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