Context: CREATE TABLE table_name_8 (laps INTEGER, grid VARCHAR)
Question: What is the mean number of laps when the grid was 8?
Answer: SELECT AVG(laps) FROM table_name_8 WHERE grid = 8