CREATE TABLE table_name_27 (state_served VARCHAR, party VARCHAR, representative VARCHAR)

Which state did Samuel Thatcher of the Federalist party represent?
SELECT state_served FROM table_name_27 WHERE party = "federalist" AND representative = "samuel thatcher"
SELECT "state_served" FROM "table_name_27" WHERE "federalist" = "party" AND "representative" = "samuel thatcher"