what is the place of worship for type catholic church?
Entity Entity Entity
m.010rcvd0 m.0bhbt6_ m.0h_f915
Holy Trinity Church, Cork St. John's Catholic Church St. Mary's Catholic Church
class entity
religion.place_of_worship m.02vxy_
religion.place_of_worship religion.type_of_place_of_worship
Place of worship catholic church
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.02vxy_ } 
?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.02vxy_))