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_1341897_42 (first_elected INTEGER)
system
What is the earliest year that a candidate was first elected?
user
SELECT MIN(first_elected) FROM table_1341897_42
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_1341897_42 (first_elected INTEGER)<|im_end|>
<|im_start|>user
What is the earliest year that a candidate was first elected?<|im_end|>
