Which Time has Laps smaller than 28, and a Rider of nicky hayden?
CREATE TABLE table_name_40 (time VARCHAR, laps VARCHAR, rider VARCHAR)
SELECT time FROM table_name_40 WHERE laps < 28 AND rider = "nicky hayden"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_40 (time VARCHAR, laps VARCHAR, rider VARCHAR) Question: Which Time has Laps smaller than 28, and a Rider of nicky hayden? [/INST] SELECT time FROM table_name_40 WHERE laps < 28 AND rider = "nicky hayden" </s>