What rank had more than 165 laps and a finish of 5?
CREATE TABLE table_name_17 (rank VARCHAR, laps VARCHAR, finish VARCHAR)
SELECT rank FROM table_name_17 WHERE laps > 165 AND finish = "5"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_17 (rank VARCHAR, laps VARCHAR, finish VARCHAR) Question: What rank had more than 165 laps and a finish of 5? [/INST] SELECT rank FROM table_name_17 WHERE laps > 165 AND finish = "5" </s>