Table: race_results_2008_spanish
Columns: rider
manufacturer
laps
time
grid

Question: How many grids does Ducati have with Casey Stoner as a rider with fewer than 27 laps?
SQL: SELECT COUNT("grid") FROM race_results_2008_spanish WHERE "manufacturer" = 'ducati' AND "rider" = 'casey stoner' AND "laps" < 27

Question: Which manufacturer has a time of +10.142?
SQL: SELECT "manufacturer" FROM race_results_2008_spanish WHERE "time" = '+10.142'

Question: What is Loris Capirossi's time?
SQL: SELECT "time" FROM race_results_2008_spanish WHERE "rider" = 'loris capirossi'