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"
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: What is the average First Elected, when District is 'Massachusetts 3'? ### Input: CREATE TABLE table_name_49 (
    first_elected INTEGER,
    district VARCHAR
) ### Response: SELECT AVG(first_elected) FROM table_name_49 WHERE district = "massachusetts 3"