what is the {end time} for {Hristo Stoichkov} has {member of sports team} as {PFC CSKA  Sofia} ?
When did Hristo Stoichkov's membership with the PFC CSKA Sofia sports team end?
When did Hristo Stoichkov relieve from his/her membership from PFC CSKA Sofia sports team?
SELECT ?f WHERE { ?x property:member_of_sports_team resource:PFC_CSKA_-_Sofia . resource:Hristo_Stoichkov property:member_of_sports_team ?x . ?x property:end_time ?f }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q187125> .
?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/Q136433> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q187125 p:P54 ?s . ?s ps:P54 wd:Q136433 . ?s pq:P582 ?value}