what is the {end time} for {Constantinople} has {country} as {Ottoman Empire} ?
What year did the Ottoman Empire in Constantinople come to an end?
When was the end of the Ottoman Empire in Constantinople?
SELECT ?h WHERE { ?x property:end_time ?h . resource:Constantinople property:country ?x . ?x property:country resource:Ottoman_Empire }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q16869> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q12560> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q16869 p:P17 ?s . ?s ps:P17 wd:Q12560 . ?s pq:P582 ?value}