What is {position held} of {Jeremy Corbyn} and {elected in}
What is Jeremy Corbyn's position and when was he chosen?
What position does Jeremy Corbyn hold and when was he elected?
SELECT ?y ?h WHERE { ?w property:elected_in ?y . . resource:Jeremy_Corbyn property:position_held ?w . ?w property:position_held ?h }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q291169> . ?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:Q291169 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P2715 ?value1 . }