Table: election_results_8
Columns: district
incumbent
party
first_elected
result
candidates

Question: What is the district for the party federalist and the candidates are william craik (f) 51.0% benjamin edwards 49.0%?
SQL: SELECT "district" FROM election_results_8 WHERE "party" = 'Federalist' AND "candidates" = 'William Craik (F) 51.0% Benjamin Edwards 49.0%'

Question: What is the party when the incumbent is samuel smith?
SQL: SELECT "party" FROM election_results_8 WHERE "incumbent" = 'Samuel Smith'

Question: What is the party when the incumbent is samuel smith?
SQL: SELECT "party" FROM election_results_8 WHERE "incumbent" = 'Samuel Smith'

Question:  What is the result for the district Maryland 7?
SQL: SELECT "result" FROM election_results_8 WHERE "district" = 'Maryland 7'

Question: Who is the candidates for district maryland 1?
SQL: SELECT "candidates" FROM election_results_8 WHERE "district" = 'Maryland 1'