the basilica is a place of worship for which religion?
Entity
m.0c8wxp
Catholicism
class entity
religion.religion m.0f85g
religion.religion religion.type_of_place_of_worship
Religion Basilica
none none
religion.religion.types_of_places_of_worship
Types of places 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.religion . 
VALUES ?x1 { :m.0f85g } 
?x0 :religion.religion.types_of_places_of_worship ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND religion.religion (JOIN religion.religion.types_of_places_of_worship m.0f85g))