What is the top lap that had a tyre time?
CREATE TABLE table_name_31 (laps INTEGER, time_retired VARCHAR)
SELECT MAX(laps) FROM table_name_31 WHERE time_retired = "tyre"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_31 (laps INTEGER, time_retired VARCHAR) Question: What is the top lap that had a tyre time? [/INST] SELECT MAX(laps) FROM table_name_31 WHERE time_retired = "tyre" </s>