which galaxy is m81 group in?
Entity
m.01fxkn
Messier 82
class entity
astronomy.galaxy m.0503z
astronomy.galaxy astronomy.galactic_group
Galaxy M81 Group
none none
astronomy.galaxy.galactic_group
Galactic 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.galaxy . 
VALUES ?x1 { :m.0503z } 
?x0 :astronomy.galaxy.galactic_group ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND astronomy.galaxy (JOIN astronomy.galaxy.galactic_group m.0503z))