Table: election_results_20
Columns: district
incumbent
party
first_elected
result
candidates

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

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

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

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