What is {head of state} of {nationality} of {Francisco Serrão} ?
What is the head of state's nationality of Francisco Serrao?
What is the head of state's nationality of Francisco Serrao?
SELECT ?t WHERE { ?q property:office_held_by_head_of_state ?t . resource:Francisco_Serrão property:country_of_citizenship ?q }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q554452> . ?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/P1906> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q554452 wdt:P27 ?X . ?X wdt:P1906 ?answer}
President of Portugal