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

Question: What party is John McHugh a member of?
SQL: SELECT "party" FROM "new_york" WHERE "incumbent"='John McHugh';

Question: What's the party elected in the district that first elected in 1990?
SQL: SELECT "party" FROM "new_york" WHERE "first_elected"='1990';

Question: What's the first elected year of the district that Ed Towns is an incumbent of?
SQL: SELECT "first_elected" FROM "new_york" WHERE "incumbent"='Ed Towns';

Question: How many elections have resulted in retired democratic hold?
SQL: SELECT COUNT("party") FROM "new_york" WHERE "results"='Retired Democratic hold';

Question: What were the candidates in the district that first elected in 1980?
SQL: SELECT "candidates" FROM "new_york" WHERE "first_elected"='1980';