Table schema:
CREATE TABLE table_name_31 (laps INTEGER, time_retired VARCHAR)

Question: What is the top lap that had a tyre time?
SQL: SELECT MAX(laps) FROM table_name_31 WHERE time_retired = "tyre"