What is {twin city} of {Aichi Prefecture}, that has {has boroughs} is {Shire of Belfast} ?
What is the twin city of Aichi Prefecture, which has boroughs within the Shire of Belfast?
What is the twin city of Aichi Prefecture, which has boroughs in the Shire of Belfast?
SELECT ?y WHERE { resource:Aichi_Prefecture property:twinned_administrative_body ?y . ?y property:contains_administrative_territorial_entity resource:Shire_of_Belfast }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q80434> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P190>. ?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/P150> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q7498381> . }
SELECT ?answer WHERE { wd:Q80434 wdt:P190 ?answer . ?answer wdt:P150 wd:Q7498381}
Victoria