scorpius is located in which galaxy?
Entity Entity
g.122tpv_m g.120wrrcl
null null
class entity
astronomy.galaxy m.06pgz
astronomy.galaxy astronomy.constellation
Galaxy Scorpius
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.06pgz } 
?x0 :astronomy.galaxy.constellation ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND astronomy.galaxy (JOIN astronomy.galaxy.constellation m.06pgz))