question: What is the lowest number of Laps that have a Time of +24.440, and a Grid higher than 18?
answer: SELECT MIN(laps) FROM table_name_39 WHERE time = "+24.440" AND grid > 18
context: CREATE TABLE table_name_39 (laps INTEGER, time VARCHAR, grid VARCHAR)