text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  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
  ### Answer:
  SELECT years FROM table_name_40 WHERE authority = "state" AND decile > 6 AND roll < 33