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