What is {title of head of government} of {lives in} of {Federico García Lorca} ?
Which is the title of the head of government where Frederico García Lorca lived in?
Which is the title of the head of government where Frederico García Lorca lived in?
SELECT ?g WHERE { resource:Federico_García_Lorca property:residence ?f . ?f property:office_held_by_head_of_government ?g }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q41408> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P551>. ?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/P1313> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q41408 wdt:P551 ?X . ?X wdt:P1313 ?answer}
mayor of Granada