what is the {replaces} for {Vespasian} has {position held} as {Roman emperor} ?
Who was the Roman emperor after Vespasian?
Who replaced Vespasian as Roman emperor?
SELECT ?m WHERE { ?o property:position_held resource:Roman_emperor . ?o property:replaces ?m . resource:Vespasian property:position_held ?o }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1419> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q842606> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q1419 p:P39 ?s . ?s ps:P39 wd:Q842606 . ?s pq:P1365 ?value}