What is {position held} of {Clement Attlee} and {elected in}
What is the publish of Clement Clement Attlee and when he was once sworn in?
What is the post of Clement Attlee and when he was sworn in?
SELECT ?c ?d WHERE { resource:Clement_Attlee property:position_held ?c . ?c property:elected_in ?c . . ?c property:position_held ?d }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q129006> . ?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:Q129006 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P2715 ?value1 . }