What is {position held} of {Gordon Brown} and {elected in}
When was the election of Gordon Brown, and what was his position?
When was Gordon Brown elected, and what position did he hold?
SELECT ?m ?o WHERE { ?q property:elected_in ?m . . ?q property:position_held ?o . resource:Gordon_Brown property:position_held ?q }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q10648> . ?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/P580> ?dataprop1 . } 
SELECT ?value1 ?obj WHERE { wd:Q10648 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P2715 ?value1 . }