What is the least number of laps for the constructor Ferrari and where the grid number was less than 4?
CREATE TABLE table_name_64 (laps INTEGER, constructor VARCHAR, grid VARCHAR)
SELECT MIN(laps) FROM table_name_64 WHERE constructor = "ferrari" AND grid < 4
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_64 (laps INTEGER, constructor VARCHAR, grid VARCHAR) Question: What is the least number of laps for the constructor Ferrari and where the grid number was less than 4? [/INST] SELECT MIN(laps) FROM table_name_64 WHERE constructor = "ferrari" AND grid < 4 </s>