Question: When did William Petty stop being UK Prime Minister?
Paraphrase: On what date did William Petty concluded his role as the UK Prime Minister?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q312573 p:P39 ?s . ?s ps:P39 wd:Q14211 . ?s pq:P582 ?value}