Table: san_marino_2005_race_2
Columns: driver
constructor
laps
time_retired
grid

Question: What is the highest number of laps with a +1:23.297 time/retired and a grid larger than 4?
SQL: SELECT MAX("laps") FROM san_marino_2005_race_2 WHERE "time_retired" = '+1:23.297' AND "grid" > 4

Question: What is the time/retired with a toyota constructor and a 5 grid?
SQL: SELECT "time_retired" FROM san_marino_2005_race_2 WHERE "constructor" = 'toyota' AND "grid" = 5

Question: What is the average number of laps with 16 grids?
SQL: SELECT AVG("laps") FROM san_marino_2005_race_2 WHERE "grid" = 16