Question: What year was Edward Smith-Stanley's last year as Prime Minister of the United Kingdom?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q237829 p:P39 ?s . ?s ps:P39 wd:Q14211 . ?s pq:P582 ?value}