What was the year elected in District 17?
CREATE TABLE table_name_87 (elected INTEGER, district VARCHAR)
SELECT MIN(elected) FROM table_name_87 WHERE district = 17
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (elected INTEGER, district VARCHAR) Question: What was the year elected in District 17? [/INST] SELECT MIN(elected) FROM table_name_87 WHERE district = 17 </s>