conversations listlengths 3 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_2668199_2 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who were the candidates in districk Pennsylvania 12?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668199_2 WHERE district = \"Pennsylvani... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668199_2 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What is the result for district pennsylvania 6?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_2668199_2 WHERE district = \"Pennsylvania 6\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668199_2 (incumbent VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "Who was the incumbent when the candidates were John banks (am) 52.2% samuel power (j) 47.8%?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668199_2 (first_elected VARCHAR, district VARCHAR, result VARCHAR, party VARCHAR)"
},
{
"from": "human",
"value": "How many times was the result was re-elected and the party was anti-masonic in the district Pennsylvania 24?"
},
{
"from": ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668199_2 (candidates VARCHAR, party VARCHAR, result VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Who were all the candidates when the results were re-elected, first elected was 1832 and the party was jacksonian?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_26681728_1 (rank_qualifying INTEGER, score_qualifying VARCHAR, location VARCHAR, year VARCHAR)"
},
{
"from": "human",
"value": "In Ghent in 2011, what was the rank-qualifying value when the score-qualifying value was 14.850"
},
{
"from": "... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_26681728_1 (rank_final INTEGER, apparatus VARCHAR)"
},
{
"from": "human",
"value": "What was the maximum rank-final score on the floor exercise?"
},
{
"from": "gpt",
"value": "SELECT MAX(rank_final) FROM table_26681728_1 WHERE apparatu... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_26681728_1 (rank_final INTEGER, score_final VARCHAR)"
},
{
"from": "human",
"value": "What was the maximum rank-final value for a score of 14.975?"
},
{
"from": "gpt",
"value": "SELECT MAX(rank_final) FROM table_26681728_1 WHERE score_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_26681728_1 (location VARCHAR, score_final VARCHAR)"
},
{
"from": "human",
"value": "Where did the event with a final score of 15.050 occur?"
},
{
"from": "gpt",
"value": "SELECT location FROM table_26681728_1 WHERE score_final = \"15.0... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668243_22 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "how many \"Party\" are in district south carolina 2?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_2668243_22 WHERE district = \"South Caroli... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668243_22 (party VARCHAR, result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What \"party\" was re-elected in district South Carolina 7?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668243_22 WHERE result = ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668243_22 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "who were the \"candidate\" of South Carolina 6?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668243_22 WHERE district = \"South Carolina... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668243_22 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who was the \"incumbent\" of district south carolina 7?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668243_22 WHERE district = \"South Ca... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668243_25 (first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many people were first elected when john roane was the incumbent?"
},
{
"from": "gpt",
"value": "SELECT COUNT(first_elected) FROM table_2668243_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668243_25 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What party did john s. barbour represent?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668243_25 WHERE incumbent = \"John S. Barbour\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668243_25 (result VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "What was the result of the election featuring andrew stevenson (j) 100%?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_2668243_25 WHERE candidat... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668243_25 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What candidate(s) ran for election when nathaniel h. claiborne was the incumbent?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668243_2... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668254_17 (incumbent VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Who was the ran as an incumbent leader first in 1818?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668254_17 WHERE first_elected = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668254_17 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who were the running candidates when Joshua Sands was the incumbent?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668254_17 WHERE incum... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668264_17 (result VARCHAR, party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What was the result of the election where stephen van rensselaer was the incumbent and the party represented was the adams-clay federalist party?"
},
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668254_25 (district VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "How many district has a candidate that was first elected on 1811?"
},
{
"from": "gpt",
"value": "SELECT COUNT(district) FROM table_2668254_25 WHERE f... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668254_8 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "In what district was the incumbent Charles A. Wickliffe? "
},
{
"from": "gpt",
"value": "SELECT district FROM table_2668254_8 WHERE incumbent = \"Charles ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668254_8 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What party did the incumbent Thomas P. Moore belong to?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668254_8 WHERE incumbent = \"Thomas P. Moore\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668254_8 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who were the candidates in the Kentucky 9 district? "
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668254_8 WHERE district = \"Kentucky 9\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668254_8 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who were the candidates in the Kentucky 5 district? "
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668254_8 WHERE district = \"Kentucky 5\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668254_22 (incumbent VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "Who was the incumbent when the candidate was william drayton (j)?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668254_22 WHERE candidate... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668254_22 (party VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "What party did candidate george mcduffie (j) represent?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668254_22 WHERE candidates = \"George McDuf... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668264_8 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What party did robert p. letcher represent?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668264_8 WHERE incumbent = \"Robert P. Letcher\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668264_8 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What district(s) did henry clay represent?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_2668264_8 WHERE incumbent = \"Henry Clay\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668264_8 (candidates VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "Who were the candidates for election that had a result of a retired jacksonian gain?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668264_8 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668329_25 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What ended up happening in the district Virginia 22?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_2668329_25 WHERE district = \"Virginia 22\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668329_25 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What party won the Virginia 4 district?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668329_25 WHERE district = \"Virginia 4\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668329_25 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "How many people won the election in the district of Virginia 4?"
},
{
"from": "gpt",
"value": "SELECT COUNT(result) FROM table_2668329_25 WHERE district = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668329_25 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who is the incumbent in the Virginia 6 district?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668329_25 WHERE district = \"Virginia 6\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668329_11 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What is Samuel Smith's party?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668329_11 WHERE incumbent = \"Samuel Smith\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668329_11 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what is Peter Little's party?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668329_11 WHERE incumbent = \"Peter Little\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668329_11 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What was the result of Samuel Smith's race?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_2668329_11 WHERE incumbent = \"Samuel Smith\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668329_18 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Name the result for north carolina 9"
},
{
"from": "gpt",
"value": "SELECT COUNT(result) FROM table_2668329_18 WHERE district = \"North Carolina 9\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668329_18 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Name the party for hutchins g. burton"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668329_18 WHERE incumbent = \"Hutchins G. Burton\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668329_18 (result VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "Name the result for thomas h. hall (dr) 53.0% william clarke (f) 47.0%"
},
{
"from": "gpt",
"value": "SELECT COUNT(result) FROM table_2668329_18 WHERE can... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668329_18 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Name the candidates for felix walker"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668329_18 WHERE incumbent = \"Felix Walker\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668336_24 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who are the candidates when the incumbent is john pegram?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668336_24 WHERE incumbent = \"Jo... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668336_24 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who are the candidates for district virginia 12?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668336_24 WHERE district = \"Virginia 12\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668336_24 (result VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "What is the result when the candidates are alexander smyth (dr) 100%"
},
{
"from": "gpt",
"value": "SELECT result FROM table_2668336_24 WHERE candidates =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668336_24 (incumbent VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "How many times is the candidates charles f. mercer (f) 100%?"
},
{
"from": "gpt",
"value": "SELECT COUNT(incumbent) FROM table_2668336_24 WHERE candida... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668347_14 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "how many times was the incumbent is john b. yates?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_2668347_14 WHERE incumbent = \"John B. Yate... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668347_14 (first_elected VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "when was the first elected when the candidates is thomas lawyer (dr) 54.9% william beekman (f) 45.1%?"
},
{
"from": "gpt",
"value": "SELECT first_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668347_14 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "who are the candidates for district new york 10?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668347_14 WHERE district = \"New York 10\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668347_14 (party VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "how many times were the candidates thomas h. hubbard (dr) 51.5% simeon ford (f) 48.4%?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_266834... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668347_14 (district VARCHAR, party VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "what is the district when the party is federalist and first elected is 1814?"
},
{
"from": "gpt",
"value": "SELECT district FROM table... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668347_17 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Name the candidates for pennsylvania 14"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668347_17 WHERE district = \"Pennsylvania 14\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668347_17 (incumbent VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "Name the incumbent for jacob spangler (dr) 67.1% jacob hay (f) 32.9%"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668347_17 WHERE candid... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668347_17 (first_elected INTEGER)"
},
{
"from": "human",
"value": "Name the most first elected"
},
{
"from": "gpt",
"value": "SELECT MAX(first_elected) FROM table_2668347_17"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668347_17 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Name the number of candidates for samuel d. ingham"
},
{
"from": "gpt",
"value": "SELECT COUNT(candidates) FROM table_2668347_17 WHERE incumbent = \"S... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668347_22 (district VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "Which district did William A. Burwell (Dr) belong to? "
},
{
"from": "gpt",
"value": "SELECT district FROM table_2668347_22 WHERE candidates = \"William... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668367_13 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What was the result in the district represented by Thomas R. Gold?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_2668367_13 WHERE incumbent = \"T... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668352_5 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who is every incumbent when Kentucky 2 is the district?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668352_5 WHERE district = \"Kentucky 2... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668352_5 (first_elected VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who is first elected when Kentucky 6 is the district?"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_2668352_5 WHERE district = \"Kent... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668352_5 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What is every district for incumbent Joseph Desha?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_2668352_5 WHERE incumbent = \"Joseph Desha\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668352_16 (party VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "Which party experienced a result of lost re-election democratic-republican hold?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668352_16 WHERE result... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668352_16 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many districts have John C. Calhoun as the incumbent?"
},
{
"from": "gpt",
"value": "SELECT COUNT(district) FROM table_2668352_16 WHERE incumbent = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668367_7 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who was the incumbent in the Kentucky 8 district? "
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668367_7 WHERE district = \"Kentucky 8\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668367_7 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What was the result in the election in the Kentucky 8 district? "
},
{
"from": "gpt",
"value": "SELECT result FROM table_2668367_7 WHERE district = \"Kentuck... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668367_7 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What was the result in the election in the Kentucky 1 district? "
},
{
"from": "gpt",
"value": "SELECT result FROM table_2668367_7 WHERE district = \"Kentuck... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668374_13 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What district had an election with incumbent john smilie?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_2668374_13 WHERE incumbent = \"John S... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668374_13 (district VARCHAR, first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many districts first elected someone in 1808 and had george smith as the incumbent?"
},
{
"from": "gpt",
"value": "SELECT COUN... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668374_18 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who was the incumbent in Virginia 3?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668374_18 WHERE district = \"Virginia 3\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668374_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "What incumbent was a federalist that was first elected in 1803?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668374_18... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668374_18 (party VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "How many parties were first elected in 1805?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_2668374_18 WHERE first_elected = \"1805\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668374_18 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What district was John Dawson from?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_2668374_18 WHERE incumbent = \"John Dawson\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668374_10 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who were the running candidates when Samuel Riker was the incumbent?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668374_10 WHERE incum... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668367_14 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who were the candidates in the district where the incumbent was Nathaniel Macon?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668367_14... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668367_14 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What party did the incumbent Joseph Pearson belong to?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668367_14 WHERE incumbent = \"Joseph Pearson\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668401_12 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "How many incumbents are there in Pennsylvania 5?"
},
{
"from": "gpt",
"value": "SELECT COUNT(incumbent) FROM table_2668401_12 WHERE district = \"Pennsylv... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668401_12 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What are the parties listed for Pennsylvania 8?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668401_12 WHERE district = \"Pennsylvania 8\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668401_12 (incumbent VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "Name the incumbent for candidates Joseph Hiester (dr) 83.2% Roswell Wells (f) 16.8%."
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668401... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668401_12 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What was the result for Andrew Gregg?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_2668401_12 WHERE incumbent = \"Andrew Gregg\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668401_12 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What was the result for Pennsylvania 8?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_2668401_12 WHERE district = \"Pennsylvania 8\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668401_17 (party VARCHAR, district VARCHAR, result VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "What party did the incumbent from the Virginia 5 district who was re-elected and was first elected in 1797 belong to?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668401_17 (first_elected VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "When was the incumbent first elected in the district where the result was a democratic-republican gain? "
},
{
"from": "gpt",
"value": "SELECT first_el... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668401_17 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "In what district was the incumbent Edwin Gray? "
},
{
"from": "gpt",
"value": "SELECT district FROM table_2668401_17 WHERE incumbent = \"Edwin Gray\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668401_17 (first_elected VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "When was the incumbent from the Virginia 10 district first elected? "
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_2668401_17 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668387_18 (result VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "Name the result for walter jones (dr) 99.0% henry lee (f) 1.0%"
},
{
"from": "gpt",
"value": "SELECT result FROM table_2668387_18 WHERE candidates = \"Wal... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668387_18 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Name the district for matthew clay"
},
{
"from": "gpt",
"value": "SELECT district FROM table_2668387_18 WHERE incumbent = \"Matthew Clay\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668387_18 (first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Name the number of first elected for john smith"
},
{
"from": "gpt",
"value": "SELECT COUNT(first_elected) FROM table_2668387_18 WHERE incumbent = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668387_18 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Name the incumbent for virginia 18"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668387_18 WHERE district = \"Virginia 18\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668387_18 (district VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "Name the district for john randolph (dr)"
},
{
"from": "gpt",
"value": "SELECT district FROM table_2668387_18 WHERE candidates = \"John Randolph (DR)\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668387_18 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Name the incumbent for virginia 4"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668387_18 WHERE district = \"Virginia 4\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668420_17 (first_elected INTEGER)"
},
{
"from": "human",
"value": "When was the earliest person elected?"
},
{
"from": "gpt",
"value": "SELECT MIN(first_elected) FROM table_2668420_17"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668420_17 (party VARCHAR, result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What party was re-elected to Virginia 12?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_2668420_17 WHERE result = \"Re-elected\" AND... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668405_17 (first_elected INTEGER)"
},
{
"from": "human",
"value": "What is the latest first elected?"
},
{
"from": "gpt",
"value": "SELECT MAX(first_elected) FROM table_2668405_17"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668405_17 (first_elected VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "How many times were the candidates leven powell (f) 63.8% roger west (dr) 36.4%?"
},
{
"from": "gpt",
"value": "SELECT COUNT(first_elected) FROM ta... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668405_17 (district VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "What is the district with the candidates leven powell (f) 63.8% roger west (dr) 36.4%?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_2668405... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668405_17 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What is the district with the incumbent john nicholas?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_2668405_17 WHERE incumbent = \"John Nich... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668405_17 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "How many were in district virginia 6?"
},
{
"from": "gpt",
"value": "SELECT COUNT(candidates) FROM table_2668405_17 WHERE district = \"Virginia 6\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668416_18 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "If the district is Virginia 8, who is the Incumbent?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_2668416_18 WHERE district = \"Virginia 8\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668416_18 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "If the district is Virginia 17, who are the candidates?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_2668416_18 WHERE district = \"Virgin... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_2668416_18 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "In how many different parts was the incumbent Abraham B. Venable?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_2668416_18 WHERE incumbent =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_26686908_2 (date VARCHAR, circuit VARCHAR)"
},
{
"from": "human",
"value": "What is the date for the mount panorama circuit?"
},
{
"from": "gpt",
"value": "SELECT date FROM table_26686908_2 WHERE circuit = \"Mount Panorama circuit\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_26686908_2 (city___state VARCHAR, date VARCHAR)"
},
{
"from": "human",
"value": "What was the location for the date 7–10 october?"
},
{
"from": "gpt",
"value": "SELECT city___state FROM table_26686908_2 WHERE date = \"7–10 October\""
... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.