what is the {replaces} for {Indira Gandhi} has {position held} as {Minister of Defence of India} ?
Which politician took over from Indira Gandhi as Defense Minister of India?
Who replaced Indira Gandhi as Defense Minister of India?
SELECT ?a WHERE { ?x property:replaces ?a . ?x property:position_held resource:Minister_of_Defence_of_India . resource:Indira_Gandhi property:position_held ?x }
select distinct ?value  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q1149> .
?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/Q3533315> .
?statement <http://www.wikidata.org/entity/P1365> ?value. 
} 

SELECT ?value WHERE { wd:Q1149 p:P39 ?s . ?s ps:P39 wd:Q3533315 . ?s pq:P1365 ?value}