question: What is the average First Elected, when District is "Massachusetts 3"?
answer: SELECT AVG(first_elected) FROM table_name_49 WHERE district = "massachusetts 3"
context: CREATE TABLE table_name_49 (first_elected INTEGER, district VARCHAR)