what is the {replaces} for {José Mujica} has {position held} as {President pro tempore of the Union of South American Nations} ?
Who was Jose Mujica's successor as President pro tempore of the Union of South American Nations?
Who replaced Jose Mujica as President pro tempore of the Union of South American Nations?
SELECT ?j WHERE { ?q property:replaces ?j . ?q property:position_held resource:President_pro_tempore_of_the_Union_of_South_American_Nations . resource:José_Mujica property:position_held ?q }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q9094> .
?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/Q3068962> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q9094 p:P39 ?s . ?s ps:P39 wd:Q3068962 . ?s pq:P1365 ?value}