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