Which term had a Democratic representative from district 7?
CREATE TABLE table_name_22 (term VARCHAR, district VARCHAR, party VARCHAR)
SELECT term FROM table_name_22 WHERE district = "7" AND party = "democratic"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_22 (term VARCHAR, district VARCHAR, party VARCHAR) Question: Which term had a Democratic representative from district 7? [/INST] SELECT term FROM table_name_22 WHERE district = "7" AND party = "democratic" </s>