What is {position held} of {Gerry Adams} that is {end cause} is {dissolution of parliament} ?
Which was the position that Gerry Adams held that caused the dissolution of parliament?
What was Gerry Adams position held that cause the dissolution of parliament?
SELECT ?m WHERE { resource:Gerry_Adams property:position_held ?z . ?z property:end_cause resource:dissolution_of_parliament . ?z property:position_held ?m }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q76139> .
?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/P1534> <http://wikidata.dbpedia.org/resource/Q741182>
} 

SELECT ?obj WHERE { wd:Q76139 p:P39 ?s . ?s ps:P39 ?obj . ?s pq:P1534 wd:Q741182 }