what is the {end time} for {Nazareth} has {country} as {Ottoman Empire} ?
When did Nazareth break away from the Ottoman Empire?
When did the Ottoman Empire lose control over Nazareth?
SELECT ?a WHERE { resource:Nazareth property:country ?y . ?y property:end_time ?a . ?y 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/Q430776> .
?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:Q430776 p:P17 ?s . ?s ps:P17 wd:Q12560 . ?s pq:P582 ?value}