gemini constellation is located in which galaxy?
Entity Entity Entity
m.080fzf8 m.080d7c0 g.121vrkmm
NGC 2294 NGC 2291 null
class entity
astronomy.galaxy m.077r8d
astronomy.galaxy astronomy.constellation
Galaxy gemini constellation
none none
astronomy.galaxy.constellation
Constellation
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.galaxy . 
VALUES ?x1 { :m.077r8d } 
?x0 :astronomy.galaxy.constellation ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND astronomy.galaxy (JOIN astronomy.galaxy.constellation m.077r8d))