What is {president} of {is in the commune of} of {Neuquén Province} ?
Who is {president} {within the commune of} of {Neuquén Territory
Who is {president} {in the commune of} of {Neuquén Province} ?
SELECT ?t WHERE { resource:Neuquén_Province property:located_in_the_administrative_territorial_entity ?z . ?z property:head_of_state ?t }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q44800> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P131>. ?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/P35> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?answer . }
SELECT ?answer WHERE { wd:Q44800 wdt:P131 ?X . ?X wdt:P35 ?answer}
Alberto Fernández