Question: When and what position did Gregory VII hold?
Paraphrase: When and what function did Gregory VII hold?
SPARQL (Wikidata): SELECT ?value1 ?obj WHERE { wd:Q133063 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P582 ?value1 . }