find comets that are in the comet group of kreutz sungrazers.
Entity Entity Entity Entity Entity
g.122wt44v m.027sm85 m.02_wqk7 m.0595vt m.05k5ww
Eclipse Comet of 1882 Great Comet of 1106 SOHO-620 Great Comet of 1843 Comet White–Ortiz–Bolelli
class entity
astronomy.comet m.05jvsz
astronomy.comet astronomy.comet_group
Comet Kreutz Sungrazers
none none
astronomy.comet.comet_group
Comet group
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.comet . 
VALUES ?x1 { :m.05jvsz } 
?x0 :astronomy.comet.comet_group ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND astronomy.comet (JOIN astronomy.comet.comet_group m.05jvsz))