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_22 (term VARCHAR, district VARCHAR, party VARCHAR)
system
Which term had a Democratic representative from district 7?
user
SELECT term FROM table_name_22 WHERE district = "7" AND party = "democratic"
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_22 (term VARCHAR, district VARCHAR, party VARCHAR)<|im_end|>
<|im_start|>user
Which term had a Democratic representative from district 7?<|im_end|>
