What is {position held} of {David Lloyd George} and {elected in}
What position does David Lloyd George hold?
What position does David Lloyd George hold?
SELECT ?a ?b WHERE { ?k property:elected_in ?a . . ?k property:position_held ?b . resource:David_Lloyd_George property:position_held ?k }
select distinct ?dataprop1 ?obj where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q134982> . ?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:Q134982 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P2715 ?value1 . }