You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1342233_42 (first_elected INTEGER, district VARCHAR)
system
When was the Tennessee 3 district incumbent first elected? 
user
SELECT MAX(first_elected) FROM table_1342233_42 WHERE district = "Tennessee 3"
assistant
<|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_1342233_42 (first_elected INTEGER, district VARCHAR)<|im_end|>
<|im_start|>user
When was the Tennessee 3 district incumbent first elected? <|im_end|>
