What is {position held} of {Rafael Correa} that is {elected in} is {Ecuadorian general election, 2009} ?
Give the position Rafael Correa was elected to in the Ecuadorian general election in 2009.
What position Rafael Correa was elected in Ecuadorian general election, 2009?
SELECT ?y WHERE { ?h property:position_held ?y . resource:Rafael_Correa_Delgado property:position_held ?h . ?h property:elected_in resource:2009_Ecuadorian_general_election }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q19581> .
?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/Q2635828>
} 

SELECT ?obj WHERE { wd:Q19581 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P2715 wd:Q2635828 }