What is the average First Elected, when District is "Massachusetts 3"?
CREATE TABLE "massachusetts" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text
);
SELECT AVG("first_elected") FROM "massachusetts" WHERE "district"='massachusetts 3';