human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Driver, Constructor, Laps, Time/Retired, Grid
###Question: When Jean Alesi had laps less than 24, what was his highest grid?
gpt
SELECT MAX Grid FROM table WHERE Driver = jean alesi AND Laps < 24