Table: election_results_1800
Columns: district
incumbent
party
first_elected
result
candidates

Question: How many incumbents are there in Pennsylvania 5?
SQL: SELECT COUNT("incumbent") FROM election_results_1800 WHERE "district" = 'Pennsylvania 5'

Question: What are the parties listed for Pennsylvania 8?
SQL: SELECT "party" FROM election_results_1800 WHERE "district" = 'Pennsylvania 8'

Question: Name the incumbent for candidates Joseph Hiester (dr) 83.2% Roswell Wells (f) 16.8%.
SQL: SELECT "incumbent" FROM election_results_1800 WHERE "candidates" = 'Joseph Hiester (DR) 83.2% Roswell Wells (F) 16.8%'

Question: What was the result for Andrew Gregg?
SQL: SELECT "result" FROM election_results_1800 WHERE "incumbent" = 'Andrew Gregg'

Question: What was the result for Pennsylvania 8?
SQL: SELECT "result" FROM election_results_1800 WHERE "district" = 'Pennsylvania 8'