What is {premier} of {national of} of {Denis Leary} ?
Who is {premier} of {national} {Denis Leary} ?
Who is {premier} of {national} {Denis Leary} ?
SELECT ?k WHERE { ?w property:head_of_government ?k . resource:Denis_Leary property:country_of_citizenship ?w }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q310283> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P27>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P6> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q310283 wdt:P27 ?X . ?X wdt:P6 ?answer}
Joe Biden