When was George Hamilton-Gordon, 4th Earl of Aberdeen as the Prime Minister of the United Kingdom?
SELECT ?value WHERE { wd:Q24631 p:P39 ?s . ?s ps:P39 wd:Q14211 . ?s pq:P580 ?value}
george hamilton-gordon, 4th earl of aberdeen: Q24631 prime minister of the united kingdom: Q14211