CREATE TABLE table_52871 ("Driver" TEXT, "Constructor" TEXT, "Laps" FLOAT, "Time/Retired" TEXT, "Grid" FLOAT)

What is the high lap total for a grid less than 6, and a Time/Retired of halfshaft?
SELECT MAX("Laps") FROM table_52871 WHERE "Grid" < '6' AND "Time/Retired" = 'halfshaft'
SELECT MAX("Laps") FROM "table_52871" WHERE "Grid" < '6' AND "Time/Retired" = 'halfshaft'