When the driver peter gethin has a grid less than 25, what is the average number of laps?
CREATE TABLE table_name_4 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_4 WHERE driver = "peter gethin" AND grid < 25
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_4 (laps INTEGER, driver VARCHAR, grid VARCHAR) Question: When the driver peter gethin has a grid less than 25, what is the average number of laps? [/INST] SELECT AVG(laps) FROM table_name_4 WHERE driver = "peter gethin" AND grid < 25 </s>