What is the average First Elected, when District is "Massachusetts 3"?
CREATE TABLE table_name_49 (first_elected INTEGER, district VARCHAR)
SELECT AVG(first_elected) FROM table_name_49 WHERE district = "massachusetts 3"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_49 (first_elected INTEGER, district VARCHAR) Question: What is the average First Elected, when District is "Massachusetts 3"? [/INST] SELECT AVG(first_elected) FROM table_name_49 WHERE district = "massachusetts 3" </s>