What is {has counties} of {sovereign state} of {Hōryū-ji} ?
What nation incorporates the paramount state of HOryu-ji?
What country includes the sovereign state of HOryu-ji?
SELECT ?k WHERE { resource:Hōryū-ji property:country ?t . ?t property:contains_administrative_territorial_entity ?k }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q261932> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P17>. ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?X . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?X. ?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> ?answer . }
SELECT ?answer WHERE { wd:Q261932 wdt:P17 ?X . ?X wdt:P150 ?answer}
Tokyo Kagoshima Prefecture Tochigi Prefecture Miyagi Prefecture Iwate Prefecture Aomori Prefecture Fukushima Prefecture Chiba Prefecture Aichi Prefecture Akita Prefecture Ibaraki Prefecture Kyōto Prefecture Ōsaka Prefecture Fukuoka Prefecture Ehime Prefecture Yamagata Prefecture Yamaguchi Prefecture Kanagawa Prefecture Nagano Prefecture Saitama Prefecture Mie Prefecture Gunma Prefecture Hyōgo Prefecture Miyazaki Prefecture Kumamoto Prefecture Gifu Prefecture Ishikawa Prefecture Nara Prefecture Wakayama Prefecture Shizuoka Prefecture Shiga Prefecture Niigata Prefecture Yamanashi Prefecture Shimane Prefecture Toyama Prefecture Okayama Prefecture Fukui Prefecture Ōita Prefecture Tottori Prefecture Kōchi Prefecture Saga Prefecture Tokushima Prefecture Kagawa Prefecture Nagasaki Prefecture Hiroshima Prefecture Okinawa Prefecture Hokkaidō