When did Severus Snape stop being the headmaster of Hogwarts?
SELECT ?value WHERE { wd:Q176772 p:P39 ?s . ?s ps:P39 wd:Q2473303 . ?s pq:P582 ?value}
severus snape: Q176772 headmaster of hogwarts: Q2473303