How many laps did Valentino rossi have when riding a vehicle manufactured by yamaha?
CREATE TABLE table_name_77 (laps VARCHAR, manufacturer VARCHAR, rider VARCHAR)
SELECT laps FROM table_name_77 WHERE manufacturer = "yamaha" AND rider = "valentino rossi"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_77 (laps VARCHAR, manufacturer VARCHAR, rider VARCHAR) Question: How many laps did Valentino rossi have when riding a vehicle manufactured by yamaha? [/INST] SELECT laps FROM table_name_77 WHERE manufacturer = "yamaha" AND rider = "valentino rossi" </s>