What is {position held} of {Atal Bihari Vajpayee} that is {replaces} is {P. V. Narasimha Rao in  Telugu} ?
What position did both Atal Bihari Vajpayee and P.V. Narasimha Rao hold in Telugu?
What position did Atal Bihari Vajpayee hold until being replaced by P. V. Narasimha Rao in Telugu?
SELECT ?y WHERE { resource:Atal_Bihari_Vajpayee property:position_held ?x . ?x property:position_held ?y . ?x property:replaces resource:P._V._Narasimha_Rao }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q233289> .
?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/Q275146>
} 

SELECT ?obj WHERE { wd:Q233289 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1365 wd:Q275146 }