what is the {replaced by} for {Lavrentiy Beria} has {position held} as {First Deputy Premier of the Soviet Union} ?
Who became the First Deputy Premier of the Soviet Union after Lavretiy Beria?
Who replaced Lavretiy Beria as the First Deputy Premier of the Soviet Union?
SELECT ?n WHERE { ?z property:replaced_by ?n . resource:Lavrentiy_Beria property:position_held ?z . ?z property:position_held resource:First_Deputy_Premier_of_the_Soviet_Union }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q141829> .
?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/Q5452917> .
?statement <http://www.wikidata.org/entity/P1366> ?value. 
} 

SELECT ?value WHERE { wd:Q141829 p:P39 ?s . ?s ps:P39 wd:Q5452917 . ?s pq:P1366 ?value}