When did Edward Brooke finish his position as Massachusetts' Attorney General?
SELECT ?value WHERE { wd:/Edward Brooke/ p:/position held/ ?s . ?s ps:/position held/ wd:/Massachusetts Attorney General/ . ?s pq:/end time/ ?value}