conversations listlengths 3 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_1342218_43 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What party is associated with Texas 2?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1342218_43 WHERE district = \"Texas 2\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342218_43 (candidates VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "When the result is retired to run for U.S. Senate Democratic Hold, who is the candidate?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_13422... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342218_43 (candidates VARCHAR, result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What candidate has a result of being re-elected in the Texas 7 District?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_134... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_11 (party VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "Which party is associated with the candidate Albert Sidney Camp (D) unopposed?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_1342233_11 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_11 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Which district is associated with the incumbent Carl Vinson?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342233_11 WHERE incumbent = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_11 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Which candidates are associated with the Georgia 7 district?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342233_11 WHERE district = \"G... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_11 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What candidate is associated with the Georgia 4 district?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342233_11 WHERE district = \"Geor... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_17 (first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What year was incumbent joe b. bates first elected?"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1342233_17 WHERE incumbent = \"Jo... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_17 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What party is incumbent virgil chapman from?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1342233_17 WHERE incumbent = \"Virgil Chapman\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342218_6 (first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What year was clair engle first elected?"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1342218_6 WHERE incumbent = \"Clair Engle\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342218_6 (result VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "what is the result of the first elected is 1943?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342218_6 WHERE first_elected = 1943"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_3 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what the the end number where albert rains was running"
},
{
"from": "gpt",
"value": "SELECT COUNT(result) FROM table_1342233_3 WHERE incumbent = \"Albert R... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_3 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what the was the final in which frank w. boykin was running"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342233_3 WHERE incumbent = \"Frank W. B... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_32 (first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Name the total number of first elected for sol bloom"
},
{
"from": "gpt",
"value": "SELECT COUNT(first_elected) FROM table_1342233_32 WHERE incumben... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_32 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Name the candidates for ellsworth b. buck"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342233_32 WHERE incumbent = \"Ellsworth B. Buck\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_32 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What are the candidates for new york 35?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342233_32 WHERE district = \"New York 35\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_32 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What is the party for new york 20?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1342233_32 WHERE district = \"New York 20\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_43 (result VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "What was the result of the election featuring r. ewing thomason (d) unopposed?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342233_43 WHERE ca... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_43 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What district is eugene worley from?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1342233_43 WHERE incumbent = \"Eugene Worley\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_6 (result VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": " how many result with candidates being richard j. welch (r) unopposed"
},
{
"from": "gpt",
"value": "SELECT COUNT(result) FROM table_1342233_6 WHERE candid... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_6 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what's the result with incumbent being jack z. anderson"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342233_6 WHERE incumbent = \"Jack Z. Anders... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_6 (district VARCHAR, result VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "what's the district with result being re-elected and candidates being clarence f. lea (d) unopposed"
},
{
"from": "gpt",
"value": "SELECT... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_6 (first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what's the first elected with incumbent being clair engle"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1342233_6 WHERE incumbent = ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_6 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "who is the the candidates with incumbent being alfred j. elliott"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342233_6 WHERE incumbent =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342233_6 (incumbent VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "who is the the incumbent with candidates being jack z. anderson (r) unopposed"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1342233_6 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342249_11 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many parties does incumbent carl vinson represent?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_1342249_11 WHERE incumbent = \"Carl Vin... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342249_11 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many parties does incumbent stephen pace represent?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_1342249_11 WHERE incumbent = \"Stephen... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342249_13 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who were the candidates when Noah M. Mason was incumbent?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342249_13 WHERE incumbent = \"No... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342249_13 (first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "In what year was Leo E. Allen first elected?"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1342249_13 WHERE incumbent = \"Leo E. Al... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342249_13 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who were the candidates when Sid Simpson was the incumbent?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342249_13 WHERE incumbent = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_10 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What was the result of Robert L. F. Sikes' election bid?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342256_10 WHERE incumbent = \"Robert L. F... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_10 (district VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "How many districts have an incumbent first elected in 1940?"
},
{
"from": "gpt",
"value": "SELECT COUNT(district) FROM table_1342256_10 WHERE first_e... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_10 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many races involve incumbent Pat Cannon?"
},
{
"from": "gpt",
"value": "SELECT COUNT(result) FROM table_1342256_10 WHERE incumbent = \"Pat Cannon\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_10 (incumbent VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Which incumbent was first elected in 1940?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1342256_10 WHERE first_elected = 1940"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342249_35 (first_elected VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What is the first electedfor district ohio 18"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1342249_35 WHERE district = \"Ohio 18\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342249_35 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What is the incumbent for ohio 12?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1342249_35 WHERE district = \"Ohio 12\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_18 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who are all of the candidates in the election featuring james r. domengeaux?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342256_18 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_33 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Name all the candidates that ran for the seat where Harold D. Cooley is the incumbent?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_33 (party VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "How many partys have a candidate first elected in 1923?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_1342256_33 WHERE first_elected = 1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_38 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what was the number of candidates when Leon Sacks was incumbent?"
},
{
"from": "gpt",
"value": "SELECT COUNT(candidates) FROM table_1342256_38 WHERE in... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_38 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What was the result in Pennsylvania 13?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342256_38 WHERE district = \"Pennsylvania 13\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_38 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who was the incumbent in Pennsylvania 27?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1342256_38 WHERE district = \"Pennsylvania 27\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_32 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who are the contenders In the New York 19 polling area race?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342256_32 WHERE district = \"N... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_32 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many polling areas are there with John Taber as the sitting Representative?"
},
{
"from": "gpt",
"value": "SELECT COUNT(district) FROM table_1342256_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_32 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who are the contenders In the New York 29 polling area race?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342256_32 WHERE district = \"N... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_32 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Which political party is involved where John J. Delaney is the sitting Representative?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1342256_32 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_32 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who is the sitting Representative In the New York 10 polling area race?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1342256_32 WHERE distr... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_32 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "How many sitting Representatives are there in the New York 10 polling area?"
},
{
"from": "gpt",
"value": "SELECT COUNT(incumbent) FROM table_1342256_32 ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_40 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What is the district for james p. richards?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1342256_40 WHERE incumbent = \"James P. Richards\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_40 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What is the candidate for south carolina 4?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342256_40 WHERE district = \"South Carolina 4\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_40 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What is the candidate for south carolina 3?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342256_40 WHERE district = \"South Carolina 3\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_40 (first_elected VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What is the first elected for south carolina 4?"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1342256_40 WHERE district = \"South Ca... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_5 (first_elected VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "How many candidates were in the election featuring brooks hays (d) unopposed?"
},
{
"from": "gpt",
"value": "SELECT COUNT(first_elected) FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_5 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What party does clyde t. ellis represent?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1342256_5 WHERE incumbent = \"Clyde T. Ellis\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_6 (party VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": " how many party with candidates being john j. phillips (r) 57.6% n. e. west (d) 42.4%"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_1342256_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_6 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "what's the result with dbeingtrict being california 10"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342256_6 WHERE district = \"California 10\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_6 (party VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "what's the party with first elected being 1926"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1342256_6 WHERE first_elected = \"1926\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342256_6 (incumbent VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "what's the incumbent with result being new seat republican gain"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1342256_6 WHERE result = \"New se... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_24 (first_elected INTEGER)"
},
{
"from": "human",
"value": "what was the maxiumum for the first elected?"
},
{
"from": "gpt",
"value": "SELECT MAX(first_elected) FROM table_1342270_24"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_3 (first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what's the first elected with incumbent being joe starnes"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1342270_3 WHERE incumbent = ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_3 (first_elected VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "what's the first elected with candidates being joe starnes (d) 100.0% george bogus ( w/i ) 0.003%"
},
{
"from": "gpt",
"value": "SELECT first_electe... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_3 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": " how many party with dbeingtrict being alabama 6"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_1342270_3 WHERE district = \"Alabama 6\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_3 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what are all the district with incumbent being sam hobbs"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1342270_3 WHERE incumbent = \"Sam Hobbs... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_3 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "what are all the result with district being alabama 1"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342270_3 WHERE district = \"Alabama 1\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_3 (first_elected INTEGER, district VARCHAR)"
},
{
"from": "human",
"value": "what is the maximum first elected with district being alabama 5"
},
{
"from": "gpt",
"value": "SELECT MAX(first_elected) FROM table_1342270_3 WHERE di... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_42 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What was the result in the Tennessee 6 district election?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342270_42 WHERE district = \"Tennessee 6\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_42 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "In how many districts was the incumbent Estes Kefauver? "
},
{
"from": "gpt",
"value": "SELECT COUNT(district) FROM table_1342270_42 WHERE incumbent = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_42 (first_elected INTEGER)"
},
{
"from": "human",
"value": "What is the latest year any of the incumbents were first elected? "
},
{
"from": "gpt",
"value": "SELECT MAX(first_elected) FROM table_1342270_42"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_42 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What was the result of the Tennessee 2 district election? "
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342270_42 WHERE district = \"Tennessee 2... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_17 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What district is incumbent robert l. mouton from?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1342292_17 WHERE incumbent = \"Robert L. Mout... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_5 (first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "William Fadjo Cravens is the only candidate who was first elected in 1939."
},
{
"from": "gpt",
"value": "SELECT COUNT(first_elected) FROM table_1342... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342270_5 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "William Fadjo Cravens serves the fourth district of Arkansas."
},
{
"from": "gpt",
"value": "SELECT district FROM table_1342270_5 WHERE incumbent = \"Will... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_2 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "what's the party with district being alabama 3"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1342292_2 WHERE district = \"Alabama 3\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_2 (incumbent VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "what's the incumbent with candidates being sam hobbs (d) 88.2% c. w. mckay (r) 11.8%"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1342292_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_2 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what's the party with incumbent being john sparkman"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1342292_2 WHERE incumbent = \"John Sparkman\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_2 (district VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": " how many dbeingtrict with candidates being william b. bankhead (d) 71.3% e. m. reed (r) 28.7%"
},
{
"from": "gpt",
"value": "SELECT COUNT(district) FROM... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_2 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what's the party with incumbent being william b. bankhead"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1342292_2 WHERE incumbent = \"William B. Ban... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_2 (district VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "what's the district with first elected being 1938"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1342292_2 WHERE first_elected = 1938"
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_45 (party VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "How many incumbents were first elected in 1930?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_1342292_45 WHERE first_elected = 1930"
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_45 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "In how many districts is the incumbent Dave E. Satterfield, Jr."
},
{
"from": "gpt",
"value": "SELECT COUNT(result) FROM table_1342292_45 WHERE incumbent =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_45 (result VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "What was the election result for the candidate first elected in 1918?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342292_45 WHERE first_el... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_4 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many parties does william b. cravens represent?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_1342292_4 WHERE incumbent = \"William B. Cr... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_4 (district VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "What district had someone first elected in 1932?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1342292_4 WHERE first_elected = 1932"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_4 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What candidates ran in the election when the incumbent was william j. driver?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342292_4 WHER... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_42 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who are all the candidates when Sam Rayburn was incumbent?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342292_42 WHERE incumbent = \"S... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342292_42 (party VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "What was the party that was frist elected in 1919?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1342292_42 WHERE first_elected = 1919"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342315_12 (first_elected INTEGER, incumbent VARCHAR)"
},
{
"from": "human",
"value": "When was incumbent Leo E. Allen first elected?"
},
{
"from": "gpt",
"value": "SELECT MIN(first_elected) FROM table_1342315_12 WHERE incumbent = \"Le... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342315_12 (district VARCHAR, party VARCHAR)"
},
{
"from": "human",
"value": "Which district has a Republican elected?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1342315_12 WHERE party = \"Republican\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342315_17 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many districts does riley joseph wilson?"
},
{
"from": "gpt",
"value": "SELECT COUNT(district) FROM table_1342315_17 WHERE incumbent = \"Riley Joseph... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342315_17 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many districts for rené l. derouen?"
},
{
"from": "gpt",
"value": "SELECT COUNT(district) FROM table_1342315_17 WHERE incumbent = \"René L. DeRouen\"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342315_42 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who are the candidates in the race where Wright Patman is the incumbent?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342315_42 WHERE i... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342331_11 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What candidates ran in the election when john s. wood was the incumbent?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342331_11 WHERE i... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342331_11 (result VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "What was the result of the election held in 1914?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342331_11 WHERE first_elected = 1914"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342315_4 (first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many first elections have Claude Fuller as incumbent?"
},
{
"from": "gpt",
"value": "SELECT COUNT(first_elected) FROM table_1342315_4 WHERE incum... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342315_10 (first_elected VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "How many winners were there in the Georgia 1 district?"
},
{
"from": "gpt",
"value": "SELECT COUNT(first_elected) FROM table_1342315_10 WHERE distric... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342315_10 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who ran for office at the Georgia 4 district in this election?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342315_10 WHERE district = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342331_18 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What district has Riley Joseph Wilson as the incumbent?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1342331_18 WHERE incumbent = \"Riley Jo... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342331_18 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What candidate is in Louisiana 6?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1342331_18 WHERE district = \"Louisiana 6\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342331_43 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what happened during the election for Richard M. Kleberg?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1342331_43 WHERE incumbent = \"Richard M.... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1342331_43 (first_elected INTEGER, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What year was the first election when Fritz G. Lanham was elected?"
},
{
"from": "gpt",
"value": "SELECT MAX(first_elected) FROM table_1342331_43 WH... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.