CREATE TABLE table_name_49 (first_elected INT, district VARCHAR)

What is the average First Elected, when District is 'Massachusetts 3'?
SELECT AVG(first_elected) FROM table_name_49 WHERE district = "massachusetts 3"
SELECT AVG("first_elected") FROM "table_name_49" WHERE "district" = "massachusetts 3"