What is {member of sports team} of {Brian Lara} that is {start time} is {1987-0-0} ?
Brian Lara joined which team in 1987?
Which sports team did Brian Lara joined at 1987-0-0?
SELECT ?o WHERE { resource:Brian_Lara property:member_of_sports_team ?a . FILTER ( CONTAINS ( YEAR ( ?l ) , '1987' ) ) . ?a property:start_time ?l . ?a property:member_of_sports_team ?o }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q202877> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P54> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P580> <1987-0-0>
} 

SELECT ?obj WHERE { wd:Q202877 p:P54 ?s . ?s ps:P54 ?obj . ?s pq:P580 ?x filter(contains(YEAR(?x),'1987')) }