Name the years with authority of state and decile more than 6 with roll less than 33
CREATE TABLE table_name_40 (years VARCHAR, roll VARCHAR, authority VARCHAR, decile VARCHAR)
SELECT years FROM table_name_40 WHERE authority = "state" AND decile > 6 AND roll < 33
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (years VARCHAR, roll VARCHAR, authority VARCHAR, decile VARCHAR) Question: Name the years with authority of state and decile more than 6 with roll less than 33 [/INST] SELECT years FROM table_name_40 WHERE authority = "state" AND decile > 6 AND roll < 33 </s>