Question: when was   Ban Ki-moon has position held as United Nations Secretary-General ?
Paraphrase: When did Ban Ki-moon hold the position of UN Secretary-General?
SPARQL (Wikidata): SELECT ?value WHERE { wd:Q1253 p:P39 ?s . ?s ps:P39 wd:Q81066 . ?s pq:P582 ?value}