What is {location of birth} of {Junípero Serra}, that has {capital city} is {Petra} ?
Where is the birthplace with a capital city of Petra of Jinipero Serra
What is the location of birth, with a capital city of Petra, of Junipero Serra?
SELECT ?x WHERE { ?x property:capital resource:Petra . resource:Junípero_Serra property:place_of_birth ?x }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q522107> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P19>. ?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/P36> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q24019630> . }
SELECT ?answer WHERE { wd:Q522107 wdt:P19 ?answer . ?answer wdt:P36 wd:Q24019630}
Petra, Majorca