What is the average first elected year that has a district of 11 and a committee of environmental matters?
CREATE TABLE table_name_18 (first_elected INTEGER, district VARCHAR, committee VARCHAR)
SELECT AVG(first_elected) FROM table_name_18 WHERE district = "11" AND committee = "environmental matters"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_18 (first_elected INTEGER, district VARCHAR, committee VARCHAR) Question: What is the average first elected year that has a district of 11 and a committee of environmental matters? [/INST] SELECT AVG(first_elected) FROM table_name_18 WHERE district = "11" AND committee = "environmental matters" </s>