What is {position held} of {Lenín Moreno} that is {elected in} is {Ecuadorian general election, 2006} ?
Lenin Moreno was elected as what in the 2006 Ecuardorian elections?
To what position was Lenín Moreno elected as during the Ecuadorian general election in 2006?
SELECT ?e WHERE { ?q property:position_held ?e . ?q property:elected_in resource:2006_Ecuadorian_general_election . resource:Lenín_Moreno property:position_held ?q }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q518626> .
?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/P2715> <http://wikidata.dbpedia.org/resource/Q1285633>
} 

SELECT ?obj WHERE { wd:Q518626 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P2715 wd:Q1285633 }