question: What is the least number of laps for the constructor Ferrari and where the grid number was less than 4?
answer: SELECT MIN(laps) FROM table_name_64 WHERE constructor = "ferrari" AND grid < 4
context: CREATE TABLE table_name_64 (laps INTEGER, constructor VARCHAR, grid VARCHAR)