what is the {start time} for {Edinburgh} has {country} as {United Kingdom} ?
Date Edinburgh was founded in the United Kingdom?
When was Edinburgh founded in the United Kingdom?
SELECT ?m WHERE { resource:Edinburgh property:country ?s . ?s property:start_time ?m . ?s property:country resource:United_Kingdom }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23436> .
?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/Q145> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q23436 p:P17 ?s . ?s ps:P17 wd:Q145 . ?s pq:P580 ?value}