What is {is in the arrondissement of} of {Cathedral of Santiago de Compostela}, that has {partner town} is {Mashhad} ?
What is the arrondissement of Cathedral of Santiago de Compostela, and has a partner town of Mashhad?
What is the arrondissement of Cathedral of Santiago de Compostela, and has a partner town of Mashhad?
SELECT ?t WHERE { resource:Cathedral_of_Santiago_de_Compostela property:located_in_the_administrative_territorial_entity ?t . ?t property:twinned_administrative_body resource:Mashhad }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q205136> . ?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> ?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/P190> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q121157> . }
SELECT ?answer WHERE { wd:Q205136 wdt:P131 ?answer . ?answer wdt:P190 wd:Q121157}
Santiago de Compostela