human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rider, Manufacturer, Laps, Time/Retired, Grid
###Question: What is the average grid for the competitiors who had laps smaller than 3?
gpt
SELECT AVG Grid FROM table WHERE Laps < 3