conversations listlengths 3 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "CREATE TABLE table_1341690_20 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What are all the results where Robert Bauman is the incumbent politician?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1341690_20 WHERE incumben... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341690_35 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who were the candidates in the district won by the incumbent Del Latta?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341690_35 WHERE in... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341690_35 (candidates VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Who were the candidates in the districts that was first elected in 1966?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341690_35 WHE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341690_5 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who was running for office in the California 10 district?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341690_5 WHERE district = \"Califo... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341690_5 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "How many parties won the election in the California 23 district?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_1341690_5 WHERE district = \"Ca... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341690_5 (first_elected INTEGER, party VARCHAR)"
},
{
"from": "human",
"value": "What republican candidate was first elected most recently?"
},
{
"from": "gpt",
"value": "SELECT MAX(first_elected) FROM table_1341690_5 WHERE party = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341707_12 (district VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Phillip Landrum was first elected in 1952 from the ninth district of Georgia."
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341707_12 WH... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341707_15 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What party did the incumbent from the Illinois 12 district belong to? "
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341707_15 WHERE district = \"I... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341707_15 (incumbent VARCHAR, district VARCHAR, party VARCHAR, result VARCHAR)"
},
{
"from": "human",
"value": "Who was the democratic incumbent in the Illinois 11 district who was re-elected? "
},
{
"from": "gpt",
"value": "SELECT in... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341707_15 (incumbent VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Which incumbent was first elected in 1964? "
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1341707_15 WHERE first_elected = \"1964\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341707_15 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What party did the incumbent from the Illinois 1 district belong to? "
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341707_15 WHERE district = \"Il... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341690_9 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What candidates ran in the election with don fuqua?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341690_9 WHERE incumbent = \"Don Fuqua\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341690_9 (incumbent VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "How many incumbent candidates in the election featuring sam m. gibbons (d) unopposed?"
},
{
"from": "gpt",
"value": "SELECT COUNT(incumbent) FROM table_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341690_9 (first_elected INTEGER)"
},
{
"from": "human",
"value": "What is the last year that someone is first elected?"
},
{
"from": "gpt",
"value": "SELECT MAX(first_elected) FROM table_1341690_9"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341690_9 (incumbent VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Who was the incumbent in 1940?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1341690_9 WHERE first_elected = 1940"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341718_14 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what is the party when the incumbent is sidney r. yates?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341718_14 WHERE incumbent = \"Sidney R. Yat... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341718_14 (first_elected INTEGER, district VARCHAR)"
},
{
"from": "human",
"value": "what was the year first elected for district illinois 7?"
},
{
"from": "gpt",
"value": "SELECT MAX(first_elected) FROM table_1341718_14 WHERE distric... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341718_14 (incumbent VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "how many times was the candidates phil crane (r) 58.0% edward a. warman (d) 42.0%?"
},
{
"from": "gpt",
"value": "SELECT COUNT(incumbent) FROM table_13... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341718_14 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "how many times was it the district illinois 18?"
},
{
"from": "gpt",
"value": "SELECT COUNT(candidates) FROM table_1341718_14 WHERE district = \"Illinoi... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341718_14 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "who were the candidates when the incumbent was ed derwinski?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341718_14 WHERE incumbent = \... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341718_14 (first_elected INTEGER, party VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "When was the first elected when the party was republican and the candidate were robert h. michel (r) 66.1% rosa lee fox (d) 33.9%?"
},
{
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341707_45 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who is the incumbent in district Texas 15?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1341707_45 WHERE district = \"Texas 15\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341718_44 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Which district elected incumbent Earle Cabell?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341718_44 WHERE incumbent = \"Earle Cabell\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341718_44 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What was the result when Ray Roberts was elected?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1341718_44 WHERE incumbent = \"Ray Roberts\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341738_11 (first_elected INTEGER)"
},
{
"from": "human",
"value": "What is the highest year that a candidate was first elected?"
},
{
"from": "gpt",
"value": "SELECT MAX(first_elected) FROM table_1341738_11"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341718_36 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Incumbent Bill Harsha was the winner in an election in which the candidates were who?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_13417... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341738_36 (party VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "What was the party of the first elected candidate in 1954?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341738_36 WHERE first_elected = 1954"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341738_36 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many districts does Donald D. Clancy represent?"
},
{
"from": "gpt",
"value": "SELECT COUNT(district) FROM table_1341738_36 WHERE incumbent = \"Donal... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341738_34 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Which party is Lawrence H. Fountain part of?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341738_34 WHERE incumbent = \"Lawrence H. Fountain\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341738_34 (first_elected VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who was the first person elected in North Carolina 8?"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1341738_34 WHERE district = \"No... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341738_34 (candidates VARCHAR, first_elected VARCHAR, party VARCHAR)"
},
{
"from": "human",
"value": "who was the candidate elected to the democratic party in 1952?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341738_3... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341738_19 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What district did Joe Waggonner belong to?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341738_19 WHERE incumbent = \"Joe Waggonner\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341738_19 (incumbent VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "What is the name of the incumbent who was first eleccted in 1940?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1341738_19 WHERE first_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341738_6 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What party does incumbent edwin reinecke represent?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341738_6 WHERE incumbent = \"Edwin Reinecke\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341738_6 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who were the candidates in the election that featured incumbent don edwards?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341738_6 WHERE... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341843_15 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who's the incumbent of Indiana 4 district?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1341843_15 WHERE district = \"Indiana 4\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341843_15 (incumbent VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Who's the incumbent of the district with first election held in 1950?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1341843_15 WHERE fi... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341843_10 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who was featured in the election of charles edward bennett redistricted from 2nd?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341843_1... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_23 (first_elected VARCHAR, party VARCHAR)"
},
{
"from": "human",
"value": "Name the first elected for the republican party"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1341865_23 WHERE party = \"Republican\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_23 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Name the district with philip philbin"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341865_23 WHERE incumbent = \"Philip Philbin\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_23 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Name the party with edward boland"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341865_23 WHERE incumbent = \"Edward Boland\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341843_44 (district VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "What was the district who had their first elected in 1966?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341843_44 WHERE first_elected =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341843_44 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who was the candidate when the incumbent was Richard C. White?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341843_44 WHERE incumbent =... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_11 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What district did Donald Ray Matthews belong to?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341865_11 WHERE incumbent = \"Donald Ray Matt... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_11 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What party did Don Fuqua belong to?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341865_11 WHERE incumbent = \"Don Fuqua\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_20 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "How many parties won the election in the Louisiana 5 district?"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_1341865_20 WHERE district = \"Lo... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_20 (first_elected VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "How many candidates were elected in the Louisiana 4 district?"
},
{
"from": "gpt",
"value": "SELECT COUNT(first_elected) FROM table_1341865_20 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_20 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who was the winner in the Louisiana 7 district?"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1341865_20 WHERE district = \"Louisiana 7\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_44 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "what's party with district being tennessee 3"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341865_44 WHERE district = \"Tennessee 3\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_44 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "how many party with district being tennessee 1"
},
{
"from": "gpt",
"value": "SELECT COUNT(party) FROM table_1341865_44 WHERE district = \"Tennessee 1\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_44 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": " how many incumbent with district being tennessee 5"
},
{
"from": "gpt",
"value": "SELECT COUNT(incumbent) FROM table_1341865_44 WHERE district = \"Tenn... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_44 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "what's incumbent with district being tennessee 5"
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1341865_44 WHERE district = \"Tennessee 5\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_45 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who ran in the race for Jack Brooks' seat?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341865_45 WHERE incumbent = \"Jack Brooks\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_34 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "which section did seymour halpern run in"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341865_34 WHERE incumbent = \"Seymour Halpern\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_40 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What district is incumbent albert w. johnson from?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341865_40 WHERE incumbent = \"Albert W. Joh... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_40 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many times was frank m. clark the incumbent?"
},
{
"from": "gpt",
"value": "SELECT COUNT(result) FROM table_1341865_40 WHERE incumbent = \"Frank M. Cla... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_40 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What district is incumbent elmer j. holland from?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341865_40 WHERE incumbent = \"Elmer J. Holla... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_37 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "To which party does Frank T. Bow belong?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341865_37 WHERE incumbent = \"Frank T. Bow\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_37 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Who ran in the race for the seat of incumbent Carl W. Rich?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341865_37 WHERE incumbent = \"... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341865_37 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "In which district is the incumbent Carl W. Rich?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341865_37 WHERE incumbent = \"Carl W. Rich\""... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341884_12 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Name the candidates where incumbent Carl Vinson is?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341884_12 WHERE incumbent = \"Carl Vin... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341884_23 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Name the candidates for massachusetts 8"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341884_23 WHERE district = \"Massachusetts 8\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341884_19 (candidates VARCHAR, result VARCHAR, party VARCHAR)"
},
{
"from": "human",
"value": "What candidates were in the election when a republican was re-elected?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341884_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341884_19 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What district is incumbent frank chelf from?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341884_19 WHERE incumbent = \"Frank Chelf\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341884_20 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many districts represented Edwin E. Willis?"
},
{
"from": "gpt",
"value": "SELECT COUNT(district) FROM table_1341884_20 WHERE incumbent = \"Edwin E. ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341884_20 (candidates VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Who were all the candidates when the first elected year was 1961?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341884_20 WHERE firs... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341884_20 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What party did Hale Boggs belong to?"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341884_20 WHERE incumbent = \"Hale Boggs\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341884_45 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "what is the political affiliation of the texas 12 district"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341884_45 WHERE district = \"Texas 12\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341884_45 (first_elected VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "how many voted in the texas 6 section"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1341884_45 WHERE district = \"Texas 6\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341884_45 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "what is the political affiliation of ray roberts"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341884_45 WHERE incumbent = \"Ray Roberts\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341884_40 (district VARCHAR, candidates VARCHAR)"
},
{
"from": "human",
"value": "What district featured an election between james a. byrne (d) 59.3% joseph r. burns (r) 40.7%?"
},
{
"from": "gpt",
"value": "SELECT district FROM tabl... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_23 (candidates VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Name the candidates for massachusetts 6"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341897_23 WHERE district = \"Massachusetts 6\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_23 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Name the result for massachusetts 3"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1341897_23 WHERE district = \"Massachusetts 3\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_23 (candidates VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Name the candidate first elected in 1942"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341897_23 WHERE first_elected = 1942"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_23 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Name the party for massachusetts 3"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341897_23 WHERE district = \"Massachusetts 3\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_3 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What district is incumbent albert rains from?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341897_3 WHERE incumbent = \"Albert Rains\""
}
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_3 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many candidates represent the district of kenneth a. roberts?"
},
{
"from": "gpt",
"value": "SELECT COUNT(candidates) FROM table_1341897_3 WHERE inc... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_6 (incumbent VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "Who was the incumbent in the Arkansas 2 district election? "
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1341897_6 WHERE district = \"Arkans... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_6 (first_elected VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "When was Dale Alford first elected in the Arkansas 5 district? "
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1341897_6 WHERE distric... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_6 (first_elected INTEGER, district VARCHAR)"
},
{
"from": "human",
"value": "When was James William Trimble first elected in the Arkansas 3 district? "
},
{
"from": "gpt",
"value": "SELECT MIN(first_elected) FROM table_1341897_... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_6 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "When party did the incumbent in the Arkansas 5 district belong to? "
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341897_6 WHERE district = \"Arkans... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_6 (result VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What was the result in the Arkansas 5 district election? "
},
{
"from": "gpt",
"value": "SELECT result FROM table_1341897_6 WHERE district = \"Arkansas 5\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_6 (party VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What party did the incumbent in the Arkansas 2 district belong to? "
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341897_6 WHERE district = \"Arkans... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_42 (candidates VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many candidates were there in the election for William Jennings Bryan Dorn's seat?"
},
{
"from": "gpt",
"value": "SELECT COUNT(candidates) FROM tab... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_42 (first_elected INTEGER)"
},
{
"from": "human",
"value": "What is the earliest year that a candidate was first elected?"
},
{
"from": "gpt",
"value": "SELECT MIN(first_elected) FROM table_1341897_42"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_45 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What was the result of the election in which Lindley Beckworth was the incumbent?"
},
{
"from": "gpt",
"value": "SELECT result FROM table_1341897_45 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_45 (incumbent VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Which incumbent was first elected in 1936? "
},
{
"from": "gpt",
"value": "SELECT incumbent FROM table_1341897_45 WHERE first_elected = 1936"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341897_45 (result VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What was the result of the election in which Walter E. Rogers was the incumbent? "
},
{
"from": "gpt",
"value": "SELECT result FROM table_1341897_45 WHERE ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341930_10 (first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "When was Paul Rogers first elected?"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1341930_10 WHERE incumbent = \"Paul Rogers\""
}... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341930_10 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "Which district is James A. Haley from?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341930_10 WHERE incumbent = \"James A. Haley\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341930_10 (first_elected INTEGER)"
},
{
"from": "human",
"value": "What year were the latest elections?"
},
{
"from": "gpt",
"value": "SELECT MAX(first_elected) FROM table_1341930_10"
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341930_24 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "In what district is the incumbent John Bell Williams?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341930_24 WHERE incumbent = \"John Bell ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341930_24 (first_elected VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "In what year was John Bell Williams first elected?"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1341930_24 WHERE incumbent = \"Joh... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341930_24 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "How many districts have W. Arthur Winstead as elected official?"
},
{
"from": "gpt",
"value": "SELECT COUNT(district) FROM table_1341930_24 WHERE incumbe... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341930_11 (district VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What is the district for carl vinson?"
},
{
"from": "gpt",
"value": "SELECT district FROM table_1341930_11 WHERE incumbent = \"Carl Vinson\""
}
] | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341930_11 (first_elected INTEGER, incumbent VARCHAR)"
},
{
"from": "human",
"value": "What is the most first elected for james c. davis?"
},
{
"from": "gpt",
"value": "SELECT MAX(first_elected) FROM table_1341930_11 WHERE incumbent = ... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341930_11 (first_elected VARCHAR, district VARCHAR)"
},
{
"from": "human",
"value": "What is the first elected for georgia 4?"
},
{
"from": "gpt",
"value": "SELECT first_elected FROM table_1341930_11 WHERE district = \"Georgia 4\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341930_18 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "which affiliation does edwin e. willis affiliate with"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341930_18 WHERE incumbent = \"Edwin E. Willis\... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341930_18 (party VARCHAR, incumbent VARCHAR)"
},
{
"from": "human",
"value": "which affiliation is james h. morrison part of"
},
{
"from": "gpt",
"value": "SELECT party FROM table_1341930_18 WHERE incumbent = \"James H. Morrison\""
... | know_sql | chosen |
[
{
"from": "system",
"value": "CREATE TABLE table_1341973_11 (candidates VARCHAR, first_elected VARCHAR)"
},
{
"from": "human",
"value": "Who is the candidate that was first elected in 1914?"
},
{
"from": "gpt",
"value": "SELECT candidates FROM table_1341973_11 WHERE first_elected = 1... | know_sql | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.