What is {position held} of {Barack Obama} and {electoral district}
What did is the work part of Barack Obama and constituency?
What did is the job role of Barack Obama and constituency?
SELECT ?w ?p WHERE { resource:Barack_Obama property:position_held ?e . ?e property:position_held ?p . ?e property:electoral_district ?w . }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q76> . ?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:Q76 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P768 ?value1 . }