what is the {start time} for {Podgorica} has {country} as {Principality of Montenegro} ?
When did Podgorica start as Principality of Montenegro?
When Podgorica started as Principality of Montenegro?
SELECT ?r WHERE { ?s property:country resource:Principality_of_Montenegro . resource:Podgorica property:country ?s . ?s property:start_time ?r }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q23564> .
?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/Q779011> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q23564 p:P17 ?s . ?s ps:P17 wd:Q779011 . ?s pq:P580 ?value}