Question: When did Lublin cease to be a Kingdom of Poland?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q37333 p:P17 ?s . ?s ps:P17 wd:Q696908 . ?s pq:P582 ?value}