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_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"