Where the grid is under 19, the time finished was logged as received outside assistance, what's the total number of laps?
CREATE TABLE table_name_15 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT COUNT(laps) FROM table_name_15 WHERE time_retired = "received outside assistance" AND grid < 19
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_15 (laps VARCHAR, time_retired VARCHAR, grid VARCHAR) Question: Where the grid is under 19, the time finished was logged as received outside assistance, what's the total number of laps? [/INST] SELECT COUNT(laps) FROM table_name_15 WHERE time_retired = "received outside assistance" AND grid < 19 </s>