How many Laps with a Grid smaller than 3 did Driver NIki Lauda have?
CREATE TABLE table_name_42 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_42 WHERE driver = "niki lauda" AND grid < 3
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_42 (laps INTEGER, driver VARCHAR, grid VARCHAR) Question: How many Laps with a Grid smaller than 3 did Driver NIki Lauda have? [/INST] SELECT AVG(laps) FROM table_name_42 WHERE driver = "niki lauda" AND grid < 3 </s>