What is {position held} of {Urho Kekkonen} that is {replaces} is {Ralf Törngren} ?
What position does Urho Kekkonen, who replaced Ralf Torngren, hold?
What is the position held by Urho Kekkonen who replaces Ralf Törngren?
SELECT ?u WHERE { resource:Urho_Kukkonen property:position_held ?g . ?g property:replaces resource:Ralf_Törngren . ?g property:position_held ?u }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q179858> .
?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> ?obj .
?statement <http://www.wikidata.org/entity/P1365> <http://wikidata.dbpedia.org/resource/Q728830>
} 

SELECT ?obj WHERE { wd:Q179858 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q728830 }