what is the {end time} for {Ottoman Empire} has {capital} as {Bursa} ?
When was Bursa no longer the capital of the Ottoman Empire?
When was did Bursa cease being the capital of the Ottoman Empire?
SELECT ?y WHERE { ?y property:capital resource:Bursa . ?y property:end_time ?y . resource:Ottoman_Empire property:capital ?y }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q12560> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P36> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q40738> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q12560 p:P36 ?s . ?s ps:P36 wd:Q40738 . ?s pq:P582 ?value}