CREATE TABLE table_name_77 (laps VARCHAR(255), manufacturer VARCHAR(255), rider VARCHAR(255))
How many laps did Valentino rossi have when riding a vehicle manufactured by yamaha?
    
SQL: SELECT laps FROM table_name_77 WHERE manufacturer = "yamaha" AND rider = "valentino rossi"