What is the mean number of laps when the grid was 8?
CREATE TABLE table_name_8 (laps INTEGER, grid VARCHAR)
SELECT AVG(laps) FROM table_name_8 WHERE grid = 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_8 (laps INTEGER, grid VARCHAR) Question: What is the mean number of laps when the grid was 8? [/INST] SELECT AVG(laps) FROM table_name_8 WHERE grid = 8 </s>