what is the {end time} for {Damascus} has {located in the administrative territorial entity} as {Phoenice} ?
On what date did Phonenice located in the administrative territorial entity for Damascus?
When was Phonenice located in the administrative territorial entity for Damascus?
SELECT ?v WHERE { ?p property:located_in_the_administrative_territorial_entity resource:Syria Phoenice . resource:Damascus property:located_in_the_administrative_territorial_entity ?p . ?p property:end_time ?v }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q3766> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q12902237> .
?statement <http://www.wikidata.org/entity/P582> ?value. 
} 

SELECT ?value WHERE { wd:Q3766 p:P131 ?s . ?s ps:P131 wd:Q12902237 . ?s pq:P582 ?value}