What is {position held} of {Itamar Franco} that is {elected in} is {Brazilian legislative election, 1982} ?
In 1982 Itamar Franco was elected to what position?
What position was Itamar Franco elected to in 1982?
SELECT ?t WHERE { resource:Itamar_Franco property:position_held ?t . ?t property:elected_in resource:1982_Brazilian_legislative_election . ?t property:position_held ?t }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q485946> .
?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/Q4958850>
} 

SELECT ?obj WHERE { wd:Q485946 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P2715 wd:Q4958850 }