Question: When did Charles Grey, 2nd Earl Grey, end his position as the Secretary of State for Foreign and Commonwealth Affairs?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q294662 p:P39 ?s . ?s ps:P39 wd:Q1371091 . ?s pq:P582 ?value}