CREATE TABLE "table1_2668173_4" (
  "district" text,
  "incumbent" text,
  "party" text,
  "first_elected" real,
  "result" text,
  "candidates" text
);

Question: How many times did the incumbent was first elected and then lost re-election anti-masonic gain?
SQL: SELECT COUNT("first_elected") FROM "table1_2668173_4" WHERE "result"='Lost re-election Anti-Masonic gain';

Question: Who were the candidates if the incumbent was Henry Logan?
SQL: SELECT "candidates" FROM "table1_2668173_4" WHERE "incumbent"='Henry Logan';

Question: What was the district of the incumbent Mathias Morris?
SQL: SELECT "district" FROM "table1_2668173_4" WHERE "incumbent"='Mathias Morris';

Question: How many incumbents was first elected in the Anti-Masonic party?
SQL: SELECT COUNT("first_elected") FROM "table1_2668173_4" WHERE "party"='Anti-Masonic';