question: What year was republican, re-elected incumbent John all barham elected?
answer: SELECT elected FROM table_name_92 WHERE party = "republican" AND status = "re-elected" AND incumbent = "john all barham"
context: CREATE TABLE table_name_92 (elected VARCHAR, incumbent VARCHAR, party VARCHAR, status VARCHAR)