What is the highest Year, when Apparatus is "Vault", and when Rank-Final is less than 9?
CREATE TABLE table_name_45 (year INTEGER, apparatus VARCHAR, rank_final VARCHAR)
SELECT MAX(year) FROM table_name_45 WHERE apparatus = "vault" AND rank_final < 9
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_45 (year INTEGER, apparatus VARCHAR, rank_final VARCHAR) Question: What is the highest Year, when Apparatus is "Vault", and when Rank-Final is less than 9? [/INST] SELECT MAX(year) FROM table_name_45 WHERE apparatus = "vault" AND rank_final < 9 </s>