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

Question: How many parties is the incumbent Bob Brady a member of?
SQL: SELECT COUNT("party") FROM "pennsylvania" WHERE "incumbent"='Bob Brady';

Question: How many candidates were there in the district won by Joe Hoeffel?
SQL: SELECT COUNT("candidates") FROM "pennsylvania" WHERE "incumbent"='Joe Hoeffel';

Question: Who were the candidates in district Pennsylvania 3?
SQL: SELECT "candidates" FROM "pennsylvania" WHERE "district"='Pennsylvania 3';

Question: What's the first elected year of the district whose incumbent is Jim Greenwood?
SQL: SELECT MAX("first_elected") FROM "pennsylvania" WHERE "incumbent"='Jim Greenwood';