What is {border} of {Ōsaka Prefecture}, that has {twin town} is {Special Region of Yogyakarta} ?
What borders Osaka Prefecture the place the twin town is Special Region of Yogyakarta?
What borders Osaka Prefecture where the twin town is Special Region of Yogyakarta?
SELECT ?j WHERE { ?j property:twinned_administrative_body resource:Yogyakarta . resource:Ōsaka_Prefecture property:shares_border_with ?j }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q122723> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P47>. ?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/Q3741> . }
SELECT ?answer WHERE { wd:Q122723 wdt:P47 ?answer . ?answer wdt:P190 wd:Q3741}
Kyōto Prefecture