What is {member of sports team} of {Rahul Dravid} that is {end time} is {2012-0-0} ?
In 2012, what team was Rahul Dravid playing for?
Which sport team was Rahul Dravid a member of in 2012?
SELECT ?j WHERE { ?d property:member_of_sports_team ?j . ?d property:end_time ?p . resource:Rahul_Dravid property:member_of_sports_team ?d . FILTER ( CONTAINS ( YEAR ( ?p ) , '2012' ) ) }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q470772> .
?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/P582> <2012-0-0>
} 

SELECT ?obj WHERE { wd:Q470772 p:P54 ?s . ?s ps:P54 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'2012')) }