conversations
listlengths
3
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "CREATE TABLE table_1341973_11 (district VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "In which district is the incumbent Carl Vinson?" }, { "from": "gpt", "value": "SELECT district FROM table_1341973_11 WHERE incumbent = \"Carl Vinson\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1341930_40 (candidates VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Name the candidates for l. mendel rivers" }, { "from": "gpt", "value": "SELECT COUNT(candidates) FROM table_1341930_40 WHERE incumbent = \"L. Mendel Ri...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1341930_40 (result VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Name the result for south carolina 4" }, { "from": "gpt", "value": "SELECT result FROM table_1341930_40 WHERE district = \"South Carolina 4\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1341930_40 (candidates VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Name the candidates for south carolina 3" }, { "from": "gpt", "value": "SELECT candidates FROM table_1341930_40 WHERE district = \"South Carolina 3\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1341930_40 (incumbent VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "Name the incumbent for first elected 1956" }, { "from": "gpt", "value": "SELECT incumbent FROM table_1341930_40 WHERE first_elected = 1956" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1341930_5 (party VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Name the number of party with the incubent james william trimble" }, { "from": "gpt", "value": "SELECT COUNT(party) FROM table_1341930_5 WHERE incumbent = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1341930_5 (result VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "What is the result for first elected in 1944" }, { "from": "gpt", "value": "SELECT result FROM table_1341930_5 WHERE first_elected = 1944" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1341930_5 (party VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What is the number of party in the arkansas 1 district" }, { "from": "gpt", "value": "SELECT COUNT(party) FROM table_1341930_5 WHERE district = \"Arkansas 1\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1341973_3 (incumbent VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Who is the incumbent in the Alabama 6 voting district?" }, { "from": "gpt", "value": "SELECT incumbent FROM table_1341973_3 WHERE district = \"Alabama 6\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1341973_3 (candidates VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Which candidates were in the election where Frank W. Boykin was an incumbent?" }, { "from": "gpt", "value": "SELECT candidates FROM table_1341973_3 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1341973_3 (candidates VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Who were the candidates in the election where the incumbent is George M. Grant?" }, { "from": "gpt", "value": "SELECT candidates FROM table_1341973_3 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1341973_3 (candidates VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Which candidates ran in the Alabama 6 district?" }, { "from": "gpt", "value": "SELECT candidates FROM table_1341973_3 WHERE district = \"Alabama 6\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1341973_3 (first_elected INTEGER, district VARCHAR)" }, { "from": "human", "value": "What is the latest year listed with the Alabama 4 voting district?" }, { "from": "gpt", "value": "SELECT MAX(first_elected) FROM table_1341973_3 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_12 (result VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What was the result when incumbent Fred E. Busbey was elected?" }, { "from": "gpt", "value": "SELECT result FROM table_1342013_12 WHERE incumbent = \"Fred ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_12 (result VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "How many results are listed for the election where Noah M. Mason was elected?" }, { "from": "gpt", "value": "SELECT COUNT(result) FROM table_1342013_12 WHE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_12 (result VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What was the result when Leo E. Allen was elected?" }, { "from": "gpt", "value": "SELECT result FROM table_1342013_12 WHERE incumbent = \"Leo E. Allen\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_10 (party VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "Which party had a person who has been in the seat since 1914?" }, { "from": "gpt", "value": "SELECT party FROM table_1342013_10 WHERE first_elected = 19...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_10 (candidates VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Name all the candidates listed in the race where the incumbent is Prince Hulon Preston, Jr." }, { "from": "gpt", "value": "SELECT candidates FROM table...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_10 (candidates VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "How many candidates ran in the race where the incumbent is J. L. Pilcher?" }, { "from": "gpt", "value": "SELECT COUNT(candidates) FROM table_1342013_10...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_20 (first_elected INTEGER, incumbent VARCHAR)" }, { "from": "human", "value": "John W. Heselton was first elected in what year?" }, { "from": "gpt", "value": "SELECT MAX(first_elected) FROM table_1342013_20 WHERE incumbent = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_20 (party VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Thomas J. Lane is the incumbent of how many parties?" }, { "from": "gpt", "value": "SELECT COUNT(party) FROM table_1342013_20 WHERE incumbent = \"Thomas J. ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_20 (incumbent VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "Who is the incumbent first elected in 1944?" }, { "from": "gpt", "value": "SELECT incumbent FROM table_1342013_20 WHERE first_elected = 1944" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_20 (result VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "What was the result for the politician first elected in 1942?" }, { "from": "gpt", "value": "SELECT result FROM table_1342013_20 WHERE first_elected = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_34 (result VARCHAR, district VARCHAR)" }, { "from": "human", "value": "what's the result for district ohio 2" }, { "from": "gpt", "value": "SELECT result FROM table_1342013_34 WHERE district = \"Ohio 2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_34 (incumbent VARCHAR, candidates VARCHAR)" }, { "from": "human", "value": "who is the the incumbent with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5%" }, { "from": "gpt", "value": "SELECT incumbent FROM ta...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_34 (incumbent VARCHAR, district VARCHAR)" }, { "from": "human", "value": "who is the the incumbent with district being ohio 2" }, { "from": "gpt", "value": "SELECT incumbent FROM table_1342013_34 WHERE district = \"Ohio 2\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_34 (result VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "what's the result with incumbent being william h. ayres" }, { "from": "gpt", "value": "SELECT result FROM table_1342013_34 WHERE incumbent = \"William H. A...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_34 (party VARCHAR, candidates VARCHAR)" }, { "from": "human", "value": " how many party with candidates being john m. vorys (r) 61.5% jacob f. myers (d) 38.5%" }, { "from": "gpt", "value": "SELECT COUNT(party) FROM table_134201...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_4 (district VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "what district is Brooks Hays in" }, { "from": "gpt", "value": "SELECT district FROM table_1342013_4 WHERE incumbent = \"Brooks Hays\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_42 (district VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Omar Burleson was the incumbent in what district? " }, { "from": "gpt", "value": "SELECT district FROM table_1342013_42 WHERE incumbent = \"Omar Burleson...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_42 (district VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "In what district was incumbent first elected in 1938? " }, { "from": "gpt", "value": "SELECT district FROM table_1342013_42 WHERE first_elected = 193...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_37 (party VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Name the party for the pennsylvania 25" }, { "from": "gpt", "value": "SELECT party FROM table_1342013_37 WHERE district = \"Pennsylvania 25\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_37 (first_elected INTEGER, incumbent VARCHAR)" }, { "from": "human", "value": "Name the minumim first elected for alvin bush" }, { "from": "gpt", "value": "SELECT MIN(first_elected) FROM table_1342013_37 WHERE incumbent = \"Alv...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_37 (incumbent VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What is the incumbent for pennsylvania 15" }, { "from": "gpt", "value": "SELECT incumbent FROM table_1342013_37 WHERE district = \"Pennsylvania 15\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_13 (candidates VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What are the candidates for noah m. mason?" }, { "from": "gpt", "value": "SELECT COUNT(candidates) FROM table_1342149_13 WHERE incumbent = \"Noah M. Ma...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_13 (candidates VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What is the candidates for fred e. busbey?" }, { "from": "gpt", "value": "SELECT candidates FROM table_1342149_13 WHERE incumbent = \"Fred E. Busbey\""...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_13 (incumbent VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "What is the incumbent for 1932?" }, { "from": "gpt", "value": "SELECT incumbent FROM table_1342149_13 WHERE first_elected = 1932" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_9 (first_elected VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": " how many first elected with incumbent being charles edward bennett" }, { "from": "gpt", "value": "SELECT COUNT(first_elected) FROM table_1342013_9 W...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_9 (incumbent VARCHAR, district VARCHAR)" }, { "from": "human", "value": "who is the the incumbent with dbeingtrict being florida 2" }, { "from": "gpt", "value": "SELECT incumbent FROM table_1342013_9 WHERE district = \"Florida ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_9 (result VARCHAR, candidates VARCHAR)" }, { "from": "human", "value": "what's the result with candidates being charles edward bennett (d) unopposed" }, { "from": "gpt", "value": "SELECT result FROM table_1342013_9 WHERE candid...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_9 (result VARCHAR, district VARCHAR)" }, { "from": "human", "value": "what's the result with dbeingtrict being florida 4" }, { "from": "gpt", "value": "SELECT result FROM table_1342013_9 WHERE district = \"Florida 4\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_9 (party VARCHAR, candidates VARCHAR)" }, { "from": "human", "value": " how many party with candidates being charles edward bennett (d) unopposed" }, { "from": "gpt", "value": "SELECT COUNT(party) FROM table_1342013_9 WHERE can...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_9 (first_elected VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": " how many first elected with incumbent being william c. lantaff" }, { "from": "gpt", "value": "SELECT COUNT(first_elected) FROM table_1342013_9 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_11 (result VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What was the result of the election when Tic Forrester ran as an incumbent?" }, { "from": "gpt", "value": "SELECT result FROM table_1342149_11 WHERE incumb...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_5 (result VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What was the final result for Craig Hosmer?" }, { "from": "gpt", "value": "SELECT result FROM table_1342013_5 WHERE incumbent = \"Craig Hosmer\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342013_5 (district VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What district does Harlan Hagen represent?" }, { "from": "gpt", "value": "SELECT district FROM table_1342013_5 WHERE incumbent = \"Harlan Hagen\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_18 (candidates VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Who was the candidate in the election in the Louisiana 2 district? " }, { "from": "gpt", "value": "SELECT candidates FROM table_1342149_18 WHERE distric...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_18 (candidates VARCHAR, result VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What candidate was re-elected in the Louisiana 5 district? " }, { "from": "gpt", "value": "SELECT candidates FROM table_1342149_18 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_18 (party VARCHAR, result VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What party's candidate was re-elected in the Louisiana 6 district?" }, { "from": "gpt", "value": "SELECT party FROM table_1342149_18 WHERE re...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_18 (result VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What was the result in the election where Hale Boggs was the incumbent? " }, { "from": "gpt", "value": "SELECT result FROM table_1342149_18 WHERE incumbent...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_24 (result VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Name the result for mississippi 2" }, { "from": "gpt", "value": "SELECT result FROM table_1342149_24 WHERE district = \"Mississippi 2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_24 (candidates VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "Name the number of candidates for 1941" }, { "from": "gpt", "value": "SELECT COUNT(candidates) FROM table_1342149_24 WHERE first_elected = 1941" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_24 (candidates VARCHAR, result VARCHAR)" }, { "from": "human", "value": "Name the candidates for result of lost renomination democratic loss" }, { "from": "gpt", "value": "SELECT candidates FROM table_1342149_24 WHERE result = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_24 (result VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "Name the result for first elected of 1920" }, { "from": "gpt", "value": "SELECT result FROM table_1342149_24 WHERE first_elected = 1920" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_42 (first_elected INTEGER, district VARCHAR)" }, { "from": "human", "value": "In the District Tennessee 7 what is the number of first elected?" }, { "from": "gpt", "value": "SELECT MAX(first_elected) FROM table_1342149_42 WHERE...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_42 (result VARCHAR, candidates VARCHAR)" }, { "from": "human", "value": "What is the candidates result that is tom j. murray (d) unopposed?" }, { "from": "gpt", "value": "SELECT result FROM table_1342149_42 WHERE candidates = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_42 (incumbent VARCHAR, party VARCHAR)" }, { "from": "human", "value": "For the Republican party what are the names of the incumbents?" }, { "from": "gpt", "value": "SELECT incumbent FROM table_1342149_42 WHERE party = \"Republi...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_42 (party VARCHAR, candidates VARCHAR)" }, { "from": "human", "value": "How many parties match the canididates listed as howard baker, sr. (r) 68.9% boyd w. cox (d) 31.1%?" }, { "from": "gpt", "value": "SELECT COUNT(party) FROM...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_38 (district VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Which district had Paul B. Dague as the incumbent?" }, { "from": "gpt", "value": "SELECT district FROM table_1342149_38 WHERE incumbent = \"Paul B. Dague...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_43 (result VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "What was the result in the election where the incumbent was first elected in 1942? " }, { "from": "gpt", "value": "SELECT result FROM table_1342149_43 ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_43 (result VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What was the result of the election in the Texas 3 district? " }, { "from": "gpt", "value": "SELECT result FROM table_1342149_43 WHERE district = \"Texas 3\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_43 (party VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What party did incumbent Wright Patman belong to? " }, { "from": "gpt", "value": "SELECT party FROM table_1342149_43 WHERE incumbent = \"Wright Patman\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_43 (result VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What was the result of the election in the Texas 4 district? " }, { "from": "gpt", "value": "SELECT result FROM table_1342149_43 WHERE district = \"Texas 4\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_43 (party VARCHAR, result VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What party did the re-elected incumbent of the Texas 11 district belong to?" }, { "from": "gpt", "value": "SELECT party FROM table_1342149_43...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_6 (first_elected VARCHAR, district VARCHAR)" }, { "from": "human", "value": "List all those first elected in the California 22 voting district." }, { "from": "gpt", "value": "SELECT first_elected FROM table_1342149_6 WHERE dist...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_6 (incumbent VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "Who was the first elected incumbent in the 1946 election?" }, { "from": "gpt", "value": "SELECT incumbent FROM table_1342149_6 WHERE first_elected = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_6 (result VARCHAR, district VARCHAR)" }, { "from": "human", "value": "How many results does the California 29 voting district have?" }, { "from": "gpt", "value": "SELECT COUNT(result) FROM table_1342149_6 WHERE district = \"Cal...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342149_6 (party VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Which party had Clair Engle as an incumbent?" }, { "from": "gpt", "value": "SELECT party FROM table_1342149_6 WHERE incumbent = \"Clair Engle\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_13 (party VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What party does sid simpson represent?" }, { "from": "gpt", "value": "SELECT party FROM table_1342198_13 WHERE incumbent = \"Sid Simpson\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_13 (candidates VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "How many candidates ran against barratt o'hara?" }, { "from": "gpt", "value": "SELECT COUNT(candidates) FROM table_1342198_13 WHERE incumbent = \"Barra...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_13 (first_elected VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What year was incumbent barratt o'hara first elected?" }, { "from": "gpt", "value": "SELECT first_elected FROM table_1342198_13 WHERE incumbent = \"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_17 (first_elected INTEGER, incumbent VARCHAR)" }, { "from": "human", "value": "How many results for minimum first elected incumbent Noble Jones Gregory?" }, { "from": "gpt", "value": "SELECT MIN(first_elected) FROM table_134219...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_17 (district VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "How many results for incumbent Noble Jones Gregory?" }, { "from": "gpt", "value": "SELECT COUNT(district) FROM table_1342198_17 WHERE incumbent = \"Noble...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_18 (candidates VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Who is the candidate wehre district is louisiana 1?" }, { "from": "gpt", "value": "SELECT candidates FROM table_1342198_18 WHERE district = \"Louisiana ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_18 (party VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What is the party where the incumbent is overton brooks?" }, { "from": "gpt", "value": "SELECT party FROM table_1342198_18 WHERE incumbent = \"Overton Brook...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_18 (party VARCHAR, district VARCHAR)" }, { "from": "human", "value": "who athe party where district is louisiana 2?" }, { "from": "gpt", "value": "SELECT party FROM table_1342198_18 WHERE district = \"Louisiana 2\"" } ]
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_18 (candidates VARCHAR, district VARCHAR)" }, { "from": "human", "value": "who is the candidate where district is louisiana 3?" }, { "from": "gpt", "value": "SELECT candidates FROM table_1342198_18 WHERE district = \"Louisiana ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_18 (first_elected INTEGER, district VARCHAR)" }, { "from": "human", "value": "what is the minimum number first elected to district louisiana 5?" }, { "from": "gpt", "value": "SELECT MIN(first_elected) FROM table_1342198_18 WHER...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_36 (result VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What was the result when incumbent Tom Steed was elected?" }, { "from": "gpt", "value": "SELECT result FROM table_1342198_36 WHERE incumbent = \"Tom Steed\...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_38 (candidates VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What was the candidates for hardie scott" }, { "from": "gpt", "value": "SELECT candidates FROM table_1342198_38 WHERE incumbent = \"Hardie Scott\"" }...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_38 (candidates VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What is the number of candidates for pennsylvania 3" }, { "from": "gpt", "value": "SELECT COUNT(candidates) FROM table_1342198_38 WHERE district = \"Pen...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_38 (candidates VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What is the number of candidates for pennsylvania 21" }, { "from": "gpt", "value": "SELECT COUNT(candidates) FROM table_1342198_38 WHERE district = \"Pe...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_38 (party VARCHAR, first_elected VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What is the party for first elected 1948 for william t. granahan" }, { "from": "gpt", "value": "SELECT party FROM table_1342198_38 WH...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_6 (candidates VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "How many candidates were there in the race where Cecil R. King is the incumbent?" }, { "from": "gpt", "value": "SELECT COUNT(candidates) FROM table_1342...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342198_6 (district VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "How many districts have an incumbent first elected in 1944?" }, { "from": "gpt", "value": "SELECT COUNT(district) FROM table_1342198_6 WHERE first_ele...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_13 (incumbent VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Who was the incumbent in the Illinois 17 district?" }, { "from": "gpt", "value": "SELECT incumbent FROM table_1342218_13 WHERE district = \"Illinois 17\"...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_24 (candidates VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "How many people on this list are named thomas abernethy?" }, { "from": "gpt", "value": "SELECT COUNT(candidates) FROM table_1342218_24 WHERE incumbent ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_24 (first_elected VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "How many times was w. arthur winstead first elected?" }, { "from": "gpt", "value": "SELECT COUNT(first_elected) FROM table_1342218_24 WHERE incumben...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_24 (first_elected VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "How many times was william m. colmer winstead first elected?" }, { "from": "gpt", "value": "SELECT COUNT(first_elected) FROM table_1342218_24 WHERE ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_24 (result VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What was the result of the election with jamie l. whitten?" }, { "from": "gpt", "value": "SELECT result FROM table_1342218_24 WHERE incumbent = \"Jamie L. ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_35 (candidates VARCHAR, result VARCHAR, first_elected VARCHAR)" }, { "from": "human", "value": "What candidate was re-elected and was first elected in 1942? " }, { "from": "gpt", "value": "SELECT candidates FROM table_1342218_3...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_35 (candidates VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Who are the candidates in the election in the Ohio 9 district? " }, { "from": "gpt", "value": "SELECT candidates FROM table_1342218_35 WHERE district = ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_35 (first_elected INTEGER, incumbent VARCHAR)" }, { "from": "human", "value": "What year was incumbent Michael A. Feighan first elected? " }, { "from": "gpt", "value": "SELECT MIN(first_elected) FROM table_1342218_35 WHERE incu...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What party does the incumbent from the Ohio 5 district belong to? " }, { "from": "gpt", "value": "SELECT party FROM table_1342218_35 WHERE district = \"Ohio ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What party does the incumbent from the Ohio 20 district belong to? " }, { "from": "gpt", "value": "SELECT party FROM table_1342218_35 WHERE district = \"Ohio...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_35 (party VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What party does the incumbent from the Ohio 7 district belong to? " }, { "from": "gpt", "value": "SELECT party FROM table_1342218_35 WHERE district = \"Ohio ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_5 (candidates VARCHAR, district VARCHAR)" }, { "from": "human", "value": "Who is the candidate for the district Arkansas 2?" }, { "from": "gpt", "value": "SELECT candidates FROM table_1342218_5 WHERE district = \"Arkansas 2\"" ...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_5 (district VARCHAR, result VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "Which district has the incumbent Wilbur Mills and a re-elected result?" }, { "from": "gpt", "value": "SELECT district FROM table_1342218_5...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_43 (first_elected VARCHAR, district VARCHAR)" }, { "from": "human", "value": "What year was first-elected for the row of Texas 2?" }, { "from": "gpt", "value": "SELECT first_elected FROM table_1342218_43 WHERE district = \"Texa...
know_sql
chosen
[ { "from": "system", "value": "CREATE TABLE table_1342218_43 (result VARCHAR, incumbent VARCHAR)" }, { "from": "human", "value": "What was the result for the incumbent Milton H. West?" }, { "from": "gpt", "value": "SELECT result FROM table_1342218_43 WHERE incumbent = \"Milton H. West...
know_sql
chosen