CREATE TABLE "massachusetts" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "results" text,
  "candidates" text
);

Question: Which district is Joe Moakley?
SQL: SELECT "district" FROM "massachusetts" WHERE "incumbent"='Joe Moakley';

Question: What is the lowest first elected?
SQL: SELECT MIN("first_elected") FROM "massachusetts";