How many laps did Nick Heidfeld drive on grids larger than 4?
CREATE TABLE table_name_77 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT SUM(laps) FROM table_name_77 WHERE grid > 4 AND driver = "nick heidfeld"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (laps INTEGER, grid VARCHAR, driver VARCHAR) Question: How many laps did Nick Heidfeld drive on grids larger than 4? [/INST] SELECT SUM(laps) FROM table_name_77 WHERE grid > 4 AND driver = "nick heidfeld" </s>