name the galaxy code to have a shape of spiral galaxy.
Entity Entity Entity Entity Entity Entity Entity
m.0cgl5wb m.0cgl5wl m.0cgl5wv m.0cgl5x2 m.0hng4f7 m.0hnggz5 m.0cgl46f
SAB(rs)cd SA(s)bc pec SA(rs)bc SA(s)cd SAB(s)bc SA(s)c SA(s)b
class entity
astronomy.galaxy_classification_code m.01dgzv
astronomy.galaxy_classification_code astronomy.galactic_shape
Galaxy classification code Spiral galaxy
none none
astronomy.galaxy_classification_code.galaxy_shape
Galaxy shape
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_classification_code . 
VALUES ?x1 { :m.01dgzv } 
?x0 :astronomy.galaxy_classification_code.galaxy_shape ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND astronomy.galaxy_classification_code (JOIN astronomy.galaxy_classification_code.galaxy_shape m.01dgzv))