which constellation is the star alnilam a part of?
Entity
m.0142jk
Orion
class class entity
astronomy.constellation astronomy.asterism m.02np26
astronomy.constellation astronomy.asterism astronomy.star
Constellation Asterism Alnilam
none none none
astronomy.asterism.constellations astronomy.asterism.stars
Constellations Stars
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.constellation . 
?x1 :type.object.type :astronomy.asterism . 
VALUES ?x2 { :m.02np26 } 
?x1 :astronomy.asterism.constellations ?x0 . 
?x1 :astronomy.asterism.stars ?x2 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND astronomy.constellation (JOIN (R astronomy.asterism.constellations) (JOIN astronomy.asterism.stars m.02np26)))