text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE table_name_49 (first_elected INTEGER, district VARCHAR)
  ### 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"