What party established in 1797 won an election in 2007?
CREATE TABLE table_name_17 (party VARCHAR, established VARCHAR, election VARCHAR)
SELECT party FROM table_name_17 WHERE established > 1797 AND election = 2007
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (party VARCHAR, established VARCHAR, election VARCHAR) Question: What party established in 1797 won an election in 2007? [/INST] SELECT party FROM table_name_17 WHERE established > 1797 AND election = 2007 </s>