Question: When did Zakopane become part of the Kingdom of Galicia and Lodomeria?
Paraphrase: When did Zakopane join the Kingdom of Galicia and Lodomeria?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q144786 p:P131 ?s . ?s ps:P131 wd:Q2396442 . ?s pq:P580 ?value}