What is {elected in} and {end cause} of {{David Trimble} has {position held} as {Member of the 1st Northern Ireland Assembly}}
When used to be David Trimble elected as a Member of the 1st Northern Ireland Assembly and what position did he hold?
When was David Trimble elected as a Member of the 1st Northern Ireland Assembly and what position did he hold?
SELECT ?l ?q WHERE { resource:David_Trimble property:position_held ?a . ?a property:elected_in ?l . ?a property:end_cause ?q . ?a property:position_held resource:Member_of_the_1st_Northern_Ireland_Assembly }
select distinct ?value1 ?value2 where { ?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q192556> . ?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> <http://wikidata.dbpedia.org/resource/Q37303731>. ?statement <http://www.wikidata.org/entity/P580> ?value1 . ?statement <http://www.wikidata.org/entity/P2842> ?value2 } 
SELECT ?value1 ?value2 WHERE { wd:Q192556 p:P39 ?s . ?s ps:P39 wd:Q37303731 . ?s pq:P2715 ?value1 . ?s pq:P1534 ?value2 }