CREATE TABLE table_name_39 (laps INT, grid INT)

Tell me the average Laps for grid larger than 22
SELECT AVG(laps) FROM table_name_39 WHERE grid > 22
SELECT AVG("laps") FROM "table_name_39" WHERE "grid" > 22