What year was Edward Smith-Stanley's last year as Prime Minister of the United Kingdom?
SELECT ?value WHERE { wd:Q237829 p:P39 ?s . ?s ps:P39 wd:Q14211 . ?s pq:P582 ?value}
edward smith-stanley, 14th earl of derby: Q237829 prime minister of the united kingdom: Q14211