Question: When was Henry V replaced by Lothair III as Holy Roman Emperor?
Paraphrase: Lothair III replaced Henry V as Holy Roman Emperor in what year?
SPARQL (Wikidata): SELECT ?obj WHERE { wd:Q151707 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1366 wd:Q77189 }