Table: san_marino_grand_prix
Columns: driver
constructor
laps
time_retired
grid

Question: What is the average number of laps that has a Time/Retired of +1 lap, a Driver of olivier panis, and a Grid larger than 4?
SQL: SELECT AVG("laps") FROM san_marino_grand_prix WHERE "time_retired" = '+1 lap' AND "driver" = 'olivier panis' AND "grid" > 4

Question: What constructor has under 62 laps, a Time/Retired of gearbox, a Grid larger than 1, and pedro diniz driving?
SQL: SELECT "constructor" FROM san_marino_grand_prix WHERE "laps" < 62 AND "time_retired" = 'gearbox' AND "grid" > 1 AND "driver" = 'pedro diniz'

Question: What is the time/retired with 60 laps and a grid 19?
SQL: SELECT "time_retired" FROM san_marino_grand_prix WHERE "laps" = 60 AND "grid" = 19