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