CREATE TABLE table_name_64 (grid INTEGER, laps VARCHAR(255), time VARCHAR(255))
Which Grid has Laps smaller than 24, and a Time of retirement?
    
SQL: SELECT MIN(grid) FROM table_name_64 WHERE laps < 24 AND time = "retirement"