Table: motogp_results
Columns: rider
manufacturer
laps
time_retired
grid

Question: What was the time/retired for the driver with fewer than 23 laps and grid larger than 23?
SQL: SELECT "time_retired" FROM motogp_results WHERE "laps" < 23 AND "grid" > 23

Question: How many laps by Jorge Lorenzo on the Aprilia with a grid bigger than 1?
SQL: SELECT SUM("laps") FROM motogp_results WHERE "manufacturer" = 'aprilia' AND "rider" = 'jorge lorenzo' AND "grid" > 1