What is {member of sports team} of {Tillakaratne Dilshan} that is {start time} is {2007-0-0} ?
Tillakaratne Dilshan joined which sports team in the year 2007?
What sports team did Tillakaratne Dilshan join in 2007?
SELECT ?f WHERE { ?d property:member_of_sports_team ?f . FILTER ( CONTAINS ( YEAR ( ?a ) , '2007' ) ) . ?d property:start_time ?a . resource:Tillakaratne_Dilshan property:member_of_sports_team ?d }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q2724503> .
?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> <2007-0-0>
} 

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