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 competitors who had more than 22 laps and time/retired of +17.276?
gpt
SELECT AVG Grid FROM table WHERE Time/Retired = +17.276 AND Laps > 22