What is {member of sports team} of {Yao Ming} that is {start time} is {2002-1-1} ?
In 2002, which team did Yao Ming play for?
What team did Yao Ming play for in 2002?
SELECT ?i WHERE { ?j property:start_time ?v . resource:Yao_Ming property:member_of_sports_team ?j . FILTER ( CONTAINS ( YEAR ( ?v ) , '2002' ) ) . ?j property:member_of_sports_team ?i }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q58590> .
?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> <2002-1-1>
} 

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