text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE table_name_27 (state_served VARCHAR, party VARCHAR, representative VARCHAR)
  ### Question:
  Which state did Samuel Thatcher of the Federalist party represent?
  ### Answer:
  SELECT state_served FROM table_name_27 WHERE party = "federalist" AND representative = "samuel thatcher"