Table: motorcycle_race_2007
Columns: rider
manufacturer
laps
time_retired
grid

Question: with a Time/Retired of +47.376 what is the lap sum?
SQL: SELECT SUM("laps") FROM motorcycle_race_2007 WHERE "time_retired" = '+47.376'

Question: with a Rider of marco melandri, and a Grid smaller than 10, what is the highest lap count?
SQL: SELECT MAX("laps") FROM motorcycle_race_2007 WHERE "rider" = 'marco melandri' AND "grid" < 10

Question: with more than 32 laps and sylvain guintoli as rider, what's the lowest grid ?
SQL: SELECT MIN("grid") FROM motorcycle_race_2007 WHERE "rider" = 'sylvain guintoli' AND "laps" > 32