question: What is the resident state for the president elected in 1864?
answer: SELECT resident_state FROM table_name_83 WHERE election_year = 1864
context: CREATE TABLE table_name_83 (resident_state VARCHAR, election_year VARCHAR)