I want the sum of Laps with Grid less than 11 for jean-pierre jarier
CREATE TABLE table_name_7 (laps INTEGER, grid VARCHAR, driver VARCHAR)
SELECT SUM(laps) FROM table_name_7 WHERE grid < 11 AND driver = "jean-pierre jarier"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_7 (laps INTEGER, grid VARCHAR, driver VARCHAR) Question: I want the sum of Laps with Grid less than 11 for jean-pierre jarier [/INST] SELECT SUM(laps) FROM table_name_7 WHERE grid < 11 AND driver = "jean-pierre jarier" </s>