which celestial object category has a subcategory of a celestial object category with objects (58504) 1996 vz3?
Entity Entity
m.043tx4c m.0gggxt
Minor planet Small Solar System body
class class entity
astronomy.celestial_object_category astronomy.celestial_object_category m.0hgmy4x
astronomy.celestial_object_category astronomy.celestial_object_category astronomy.asteroid
Celestial object category Celestial object category (58504) 1996 VZ3
none none none
astronomy.celestial_object_category.subcategory_of astronomy.celestial_object_category.objects
Subcategory of Objects
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 :astronomy.celestial_object_category . 
?x1 :type.object.type :astronomy.celestial_object_category . 
VALUES ?x2 { :m.0hgmy4x } 
?x1 :astronomy.celestial_object_category.subcategory_of ?x0 . 
?x1 :astronomy.celestial_object_category.objects ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND astronomy.celestial_object_category (JOIN (R astronomy.celestial_object_category.subcategory_of) (JOIN astronomy.celestial_object_category.objects m.0hgmy4x)))