Question: When did Pyotr Stolypin stop being the Minister of the Interior of Russia?
Paraphrase: What year was Pyotr Stolypin's last as the Minister of the Interior of Russia?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q138487 p:P39 ?s . ?s ps:P39 wd:Q1518581 . ?s pq:P582 ?value}