Abaixo está uma instrução que descreve uma tarefa de geração de SQL, combinada com uma entrada que fornece mais contexto sobre os esquemas de tabela disponíveis. Escreva o código SQL que responda adequadamente à solicitação
 ###Instrução: Qual estado Samuel Thatcher do partido Federalista representou?
 ###Tabelas: CREATE TABLE historical (historical_id AUTO_INCREMENT PRIMARY KEY, Begin Date VARCHAR, Representative VARCHAR, Date of birth VARCHAR, House term VARCHAR, State served VARCHAR, Party VARCHAR, Age (years, days) VARCHAR) CREATE TABLE performance_by_nation (performance_by_nation_id AUTO_INCREMENT PRIMARY KEY, Rank INT, Gold INT, Silver INT, Bronze INT, Total INT) CREATE TABLE nine_pieces (nine_pieces_id AUTO_INCREMENT PRIMARY KEY, Standard order INT, English translation VARCHAR, Transcription (based on Pinyin) VARCHAR, Traditional Chinese VARCHAR, Simplified Chinese VARCHAR) CREATE TABLE early_cbs_and_abc's___era_1959-1978 (early_cbs_and_abc's___era_1959-1978_id AUTO_INCREMENT PRIMARY KEY, Year INT, Network VARCHAR, Lap-by-lap VARCHAR, Pit reporters VARCHAR, Host VARCHAR) CREATE TABLE house_players (house_players_id AUTO_INCREMENT PRIMARY KEY, Task No. INT, Day announced VARCHAR, Description VARCHAR, Options VARCHAR, Viewers selection VARCHAR, Result VARCHAR)  
SELECT State served FROM historical WHERE Party = federalist AND Representative = samuel thatcher