CREATE TABLE table_50510 ("Rider" CLOB, "Manufacturer" CLOB, "Laps" FLOAT, "Time/Retired" CLOB, "Grid" FLOAT)

WHAT IS THE LOWEST GRID FOR RETIREMENT, AND LAPS LARGER THAN 17?
SELECT MIN("Grid") FROM table_50510 WHERE "Time/Retired" = 'retirement' AND "Laps" > '17'
SELECT MIN("Grid") FROM "table_50510" WHERE "Laps" > '17' AND "Time/Retired" = 'retirement'