shrine has what place of worship?
Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.0472h7w m.03chb6s m.0472g6s m.0472gjj m.04n5p57 m.01113ych m.01hzcj m.0262q5q m.045x5z m.0472frn m.0472fsc m.0472fwk m.0472fx9 m.0472fy9 m.0472fyk m.0472fz9 m.0472fzj m.0472g3j m.0472g4j m.0472g58 m.0472g70 m.0472gbj m.0472gdr m.0472gfh m.0472gg_ m.0472gl8 m.0472gph m.0472gsh m.0472gt7 m.0472gv0 m.0472gvs m.0472gxs m.0472gyh m.0472h2_ m.0472h37 m.0472h3z m.0472h7l m.0472h8c m.0472h93 m.0472h9m m.0472hc2 m.0472hdl m.0472hf1 m.0472hgb m.0472hhb m.0472hjl m.0472hqw m.0472hsm m.0472htm m.0472htw m.0472hv3 m.0472hww m.0472hxb m.0472hz2 m.0472j1b m.0472j5k m.0472j6k m.0472j8p m.0472j8y m.053bf15 m.05f5f7k m.06r7jc m.07kdjd m.0bw2_n m.0bw2m8 m.0gtx1vx m.0hf9d
Uramachi Shinmeigu Hokkaidō Shrine Obihiro Shrine Komagata Shrine Shrine of St. Anthony Parshuram Kund Borobudur Sankō Shrine Three Mountains of Dewa Chinju Hachiman Shrine Futahashira Shrine Yudonosan Shrine Kamikawa Shrine Sumiyoshi Shrine Sapporo Hachimangu Chokaisan Omonoimi Shrine Uesugi Shrine Washikura Shrine Otofuke Shrine Sendai Tōshō-gū Gassan Shrine Tsubonuma Hachiman Shrine Nishino Shrine Iwakiyama Shrine Hokkaidō Gokoku Shrine Sumiyoshi Shrine Tsuchizaki Shinmeisya Tatumaeyama Shrine Ohtakayama Shrine Furukawa Shrine Ino Hachiman Yakurai Shrine Morioka Hachimangu Higashimachi Kodai Shrine Kushihiki Hachimangu Shirahige Shrine Saruka Jinja Kifuso Shrine Utou Shrine Atago Shrine Aoso Shrine Asahikawa Shrine Okaburaya Shrine Sumiyoshi Shrine Myojin Shrine Kashima Miko Shrine Hagurosan Shrine Shiraoi Hachiman Shrine Kashima Shrine Miyagi Gokoku Shrine Ohkuni Shrine Torigoe Hachimangu Kogaikuni Shrine Hayama Shrine Tsukioka Shrine Yanonemori Shrine Ryozen Shrine Tsutsukowake Shrine Sanko Kumano Shrine Isasumi Shrine Usa Jingū Kamo Shrine Kumano Shrine Hachiman shrine Kumano shrine Shiogama Jinja Dome of the Rock
class entity
religion.place_of_worship m.02cwf_
religion.place_of_worship religion.type_of_place_of_worship
Place of worship Shrine
none none
religion.place_of_worship.type_of_place_of_worship
Type of place of worship
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX : <http://rdf.freebase.com/ns/> 
SELECT (?x0 AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :religion.place_of_worship . 
VALUES ?x1 { :m.02cwf_ } 
?x0 :religion.place_of_worship.type_of_place_of_worship ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND religion.place_of_worship (JOIN religion.place_of_worship.type_of_place_of_worship m.02cwf_))