CREATE TABLE table_name_27 (state_served VARCHAR(255), party VARCHAR(255), representative VARCHAR(255))
Which state did Samuel Thatcher of the Federalist party represent?
    
SQL: SELECT state_served FROM table_name_27 WHERE party = "federalist" AND representative = "samuel thatcher"