Question: When did William Petty stop being UK Prime Minister?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q312573 p:P39 ?s . ?s ps:P39 wd:Q14211 . ?s pq:P582 ?value}