What is {location of work} of {Yayoi Kusama}, that has {has counties} is {Shinjuku-ku} ?
Where is the area of work by Yayoi Kusama that too has districts in Shinjuku-ku?
Where is the location of work by Yayoi Kusama that also has counties in Shinjuku-ku?
SELECT ?h WHERE { ?h property:contains_administrative_territorial_entity resource:Shinjuku-ku . resource:Yayoi_Kusama property:work_location ?h }
SELECT ?answer WHERE { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q231121> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P937>. ?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/Q179645> . }
SELECT ?answer WHERE { wd:Q231121 wdt:P937 ?answer . ?answer wdt:P150 wd:Q179645}
Tokyo