When the driver richard attwood has a constructor of brm, what is the number of laps?
CREATE TABLE table_name_87 (laps VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_87 WHERE constructor = "brm" AND driver = "richard attwood"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_87 (laps VARCHAR, constructor VARCHAR, driver VARCHAR) Question: When the driver richard attwood has a constructor of brm, what is the number of laps? [/INST] SELECT laps FROM table_name_87 WHERE constructor = "brm" AND driver = "richard attwood" </s>