Table schema:
CREATE TABLE table_name_31 (laps INTEGER, grid VARCHAR)

Question: What is the average number of laps for a grid of 6?
SQL: SELECT AVG(laps) FROM table_name_31 WHERE grid = 6