When Baltimore County, Howard are represented, what's the first elected when the committee is environmental matters (vice-chair)?
CREATE TABLE table_name_37 (first_elected INTEGER, counties_represented VARCHAR, committee VARCHAR)
SELECT MAX(first_elected) FROM table_name_37 WHERE counties_represented = "baltimore county, howard" AND committee = "environmental matters (vice-chair)"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_37 (first_elected INTEGER, counties_represented VARCHAR, committee VARCHAR) Question: When Baltimore County, Howard are represented, what's the first elected when the committee is environmental matters (vice-chair)? [/INST] SELECT MAX(first_elected) FROM table_name_37 WHERE counties_represented = "baltimore county, howard" AND committee = "environmental matters (vice-chair)" </s>