What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain?
CREATE TABLE table_name_40 (
    first_elected INTEGER,
    results VARCHAR,
    incumbent VARCHAR
)
SELECT MAX(first_elected) FROM table_name_40 WHERE results = "lost re-election democratic gain" AND incumbent = "john hostettler"
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the latest year for first elected with john hostettler as incumbent and a result of lost re-election democratic gain? ### Input: CREATE TABLE table_name_40 (
    first_elected INTEGER,
    results VARCHAR,
    incumbent VARCHAR
) ### Response: SELECT MAX(first_elected) FROM table_name_40 WHERE results = "lost re-election democratic gain" AND incumbent = "john hostettler"