What is {position held} of {H. H. Asquith} and {elected in}
What position was H. H. Asquith chosen to?
What position was H. H. Asquith elected to?
SELECT ?o ?b WHERE { ?a property:position_held ?b . resource:H._H._Asquith property:position_held ?a . ?a 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/Q166714> . ?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:Q166714 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P2715 ?value1 . }