CREATE TABLE table_name_40 (time VARCHAR2, laps VARCHAR2, rider VARCHAR2)

Which Time has Laps smaller than 28, and a Rider of nicky hayden?
SELECT time FROM table_name_40 WHERE laps < 28 AND rider = "nicky hayden"
SELECT "time" FROM "table_name_40" WHERE "laps" < 28 AND "nicky hayden" = "rider"