What is the average lap time for retired time of +23.707 and a Grid greater than 21?
CREATE TABLE table_name_23 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_23 WHERE time_retired = "+23.707" AND grid > 21
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_23 (laps INTEGER, time_retired VARCHAR, grid VARCHAR) Question: What is the average lap time for retired time of +23.707 and a Grid greater than 21? [/INST] SELECT AVG(laps) FROM table_name_23 WHERE time_retired = "+23.707" AND grid > 21 </s>