what is the {start time} for {Zakopane} has {located in the administrative territorial entity} as {Kingdom of Galicia and Lodomeria} ?
When did Zakopane join the Kingdom of Galicia and Lodomeria?
When did Zakopane become part of the Kingdom of Galicia and Lodomeria?
SELECT ?m WHERE { resource:Zakopane property:located_in_the_administrative_territorial_entity ?w . ?w property:start_time ?m . ?w property:located_in_the_administrative_territorial_entity resource:Kingdom_of_Galicia_and_Lodomeria }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q144786> .
?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/Q2396442> .
?statement <http://www.wikidata.org/entity/P580> ?value. 
} 

SELECT ?value WHERE { wd:Q144786 p:P131 ?s . ?s ps:P131 wd:Q2396442 . ?s pq:P580 ?value}