CREATE TABLE table_name_40 (time VARCHAR(255), laps VARCHAR(255), rider VARCHAR(255))
Which Time has Laps smaller than 28, and a Rider of nicky hayden?
    
SQL: SELECT time FROM table_name_40 WHERE laps < 28 AND rider = "nicky hayden"