What is {position held} of {Harold Wilson} and {elected in}
What position did Harold Wilson hold and when was he elected?
Harold Wilson was elected in what year and to what position?
SELECT ?o ?n WHERE { resource:Harold_Wilson property:position_held ?f . ?f property:position_held ?n . ?f property:elected_in ?o . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q128956> . ?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:Q128956 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P2715 ?value1 . }