what is the {replaced by} for {Joaquim Chissano} has {position held} as {Chairperson of the African Union} ?
Tell me the position when Joaquim Chissano was replaced as the Chairperson of the African Union.
What was the position when Joaquim Chissano replaced as the Chairperson of the African Union ?
SELECT ?w WHERE { ?m property:position_held resource:Chairperson_of_the_African_Union . ?m property:replaced_by ?w . resource:Joaquim_Chissano property:position_held ?m }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q208355> .
?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/Q946339> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q208355 p:P39 ?s . ?s ps:P39 wd:Q946339 . ?s pq:P1366 ?value}