You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_27 (state_served VARCHAR, party VARCHAR, representative VARCHAR)
system
Which state did Samuel Thatcher of the Federalist party represent?
user
SELECT state_served FROM table_name_27 WHERE party = "federalist" AND representative = "samuel thatcher"
assistant
<|im_start|>system
You are an text to SQL query translator. Users will ask you questions in English and you will generate a SQL query based on the provided SCHEMA.
SCHEMA:
CREATE TABLE table_name_27 (state_served VARCHAR, party VARCHAR, representative VARCHAR)<|im_end|>
<|im_start|>user
Which state did Samuel Thatcher of the Federalist party represent?<|im_end|>
