Table: superbike_valencia_2008
Columns: rider
bike
laps
time
grid

Question: What is the total number of laps for the time of +7.277 and the grid number of more than 6?
SQL: SELECT SUM("laps") FROM superbike_valencia_2008 WHERE "time" = '+7.277' AND "grid" > 6

Question: What is the smallest grid when the time is +8.051 and there were less than 23 laps?
SQL: SELECT MIN("grid") FROM superbike_valencia_2008 WHERE "time" = '+8.051' AND "laps" < 23