What is the average grid with a number of laps smaller than 8?
CREATE TABLE table_name_27 (grid INTEGER, laps INTEGER)
SELECT AVG(grid) FROM table_name_27 WHERE laps < 8
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_27 (grid INTEGER, laps INTEGER) Question: What is the average grid with a number of laps smaller than 8? [/INST] SELECT AVG(grid) FROM table_name_27 WHERE laps < 8 </s>