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