human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rider, Bike, Laps, Time, Grid
###Question: What is the time of Troy Bayliss with less than 8 grids?
gpt
SELECT Time FROM table WHERE Grid < 8 AND Rider = troy bayliss