CREATE TABLE table_name_5 (laps INT, bike VARCHAR, grid VARCHAR, time VARCHAR)

What is the sum of the laps with a grid less than 28, retirement time, and a ducati 1098 f08 bikes?
SELECT SUM(laps) FROM table_name_5 WHERE grid < 28 AND time = "retirement" AND bike = "ducati 1098 f08"
SELECT SUM("laps") FROM "table_name_5" WHERE "bike" = "ducati 1098 f08" AND "grid" < 28 AND "retirement" = "time"