what is the {end time} for {Dragan Džajić} has {member of sports team} as {Yugoslavia national football team} ?
on what date Dragan Džajić leave Yugoslavia's national footbal team
When did Dragan Džajić leave Yugoslavia's national footbal team
SELECT ?c WHERE { ?s property:member_of_sports_team resource:Yugoslavia_national_association_football_team . ?s property:end_time ?c . resource:Dragan_Džajić property:member_of_sports_team ?s }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q297357> .
?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/Q188363> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q297357 p:P54 ?s . ?s ps:P54 wd:Q188363 . ?s pq:P582 ?value}