Context: CREATE TABLE table_name_77 (laps INTEGER, grid VARCHAR, driver VARCHAR)
Question: How many laps did Nick Heidfeld drive on grids larger than 4?
Answer: SELECT SUM(laps) FROM table_name_77 WHERE grid > 4 AND driver = "nick heidfeld"