What is {twin town} of {Shiga Prefecture}, that has {has districts} is {Eugênio de Castro} ?
What is the twin city of the Shiga Prefecture that has districts in the Eugenio de Castro area?
What is the twin town of the Shiga Prefecture that has districts in the Eugenio de Castro area?
SELECT ?x WHERE { resource:Shiga_Prefecture property:twinned_administrative_body ?x . ?x property:contains_administrative_territorial_entity resource:Eugênio_de_Castro }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q131358> . ?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/Q1784295> . }
SELECT ?answer WHERE { wd:Q131358 wdt:P190 ?answer . ?answer wdt:P150 wd:Q1784295}
Rio Grande do Sul