When did the Hermann von Werberg stop being the manager/director of Order of Saint John (Bailiwick of Brandenburg)?
SELECT ?value WHERE { wd:Q4498889 p:P1037 ?s . ?s ps:P1037 wd:Q15815394 . ?s pq:P582 ?value}
order of saint john (bailiwick of brandenburg): Q4498889 hermann von werberg: Q15815394