human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Driver, Constructor, Laps, Time/Retired, Grid
###Question: When the driver richard attwood has a constructor of brm, what is the number of laps?
gpt
SELECT Laps FROM table WHERE Constructor = brm AND Driver = richard attwood