human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rider, Manufacturer, Laps, Time/Retired, Grid
###Question: How many laps did Valentino rossi have when riding a vehicle manufactured by yamaha?
gpt
SELECT Laps FROM table WHERE Manufacturer = yamaha AND Rider = valentino rossi