what is the {replaces} for {U Thant} has {position held} as {United Nations Secretary-General} ?
How followed U Thant as UN Secretary General?
Who was the replacement of U Thant as UN Secretary-General?
SELECT ?u WHERE { resource:U_Thant property:position_held ?r . ?r property:position_held resource:Secretary-General_of_the_United_Nations . ?r property:replaces ?u }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1264> .
?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/Q81066> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q1264 p:P39 ?s . ?s ps:P39 wd:Q81066 . ?s pq:P1365 ?value}