What is {holds position} of {Martin McGuinness}, that has {prequel of} is {Member of the 55th Parliament of the United Kingdom} ?
"What is {holds position} of {Martin McGuinness}, which has {prequel of} is {Part of the 55th Parliament of the Joined together Kingdom} ?"
"What is {holds position} of {Martin McGuinness}, which has {prequel of} is {Member of the 55th Parliament of the United Kingdom} ?"
SELECT ?h WHERE { ?h property:followed_by resource:Member_of_the_55th_Parliament_of_the_United_Kingdom . resource:Martin_McGuinness property:position_held ?h }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q57689> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P39>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?answer. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P156> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q35494253> . }
SELECT ?answer WHERE { wd:Q57689 wdt:P39 ?answer . ?answer wdt:P156 wd:Q35494253}
Member of the 54th Parliament of the United Kingdom