CREATE TABLE table_name_77 (laps VARCHAR, manufacturer VARCHAR, rider VARCHAR)

How many laps did Valentino rossi have when riding a vehicle manufactured by yamaha?
SELECT laps FROM table_name_77 WHERE manufacturer = "yamaha" AND rider = "valentino rossi"
SELECT "laps" FROM "table_name_77" WHERE "manufacturer" = "yamaha" AND "rider" = "valentino rossi"