Context: CREATE TABLE table_name_17 (rank VARCHAR, laps VARCHAR, finish VARCHAR)
Question: What rank had more than 165 laps and a finish of 5?
Answer: SELECT rank FROM table_name_17 WHERE laps > 165 AND finish = "5"