what is the {end time} for {Sanath Jayasuriya} has {member of sports team} as {Sri Lanka national cricket team} ?
When did Sanath Jayasuriya step away from the Sri Lanka national cricket team?
When did Sanath Jayasuriya leave the membership of the Sri Lanka national cricket team?
SELECT ?f WHERE { ?w property:end_time ?f . ?w property:member_of_sports_team resource:Sri_Lanka_national_cricket_team . resource:Sanath_Jayasuriya property:member_of_sports_team ?w }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q378810> .
?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> <http://wikidata.dbpedia.org/resource/Q203092> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q378810 p:P54 ?s . ?s ps:P54 wd:Q203092 . ?s pq:P582 ?value}