When did Severus Snape stop being the headmaster of Hogwarts?
SELECT ?value WHERE { wd:/Severus Snape/ p:/position held/ ?s . ?s ps:/position held/ wd:/Headmaster of Hogwarts/ . ?s pq:/end time/ ?value}