Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
What year was republican, re-elected incumbent John all barham elected?

### Inputs:
table_name: table, columns: ['District', 'Incumbent', 'Party', 'Elected', 'Status']

### Response:
SELECT Elected FROM table WHERE Party = republican AND Status = re-elected AND Incumbent = john all barham