hinduism is the religion of which monastery?
Entity
m.06_wzv
Sringeri Sharada Peetham
class entity
religion.monastery m.03j6c
religion.monastery religion.religion
Monastery Hinduism
none none
religion.monastery.religion
Religion
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.monastery . 
VALUES ?x1 { :m.03j6c } 
?x0 :religion.monastery.religion ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND religion.monastery (JOIN religion.monastery.religion m.03j6c))