which galaxy classification code has the same shape as sa(s)b?
Entity Entity Entity Entity Entity Entity
m.0cgl5wb m.0cgl5wl m.0cgl5wv m.0cgl5x2 m.0hng4f7 m.0hnggz5
SAB(rs)cd SA(s)bc pec SA(rs)bc SA(s)cd SAB(s)bc SA(s)c
class class entity
astronomy.galaxy_classification_code astronomy.galactic_shape m.0cgl46f
astronomy.galaxy_classification_code astronomy.galactic_shape astronomy.galaxy_classification_code
Galaxy classification code Galactic shape SA(s)b
none none none
astronomy.galactic_shape.galaxies_of_this_shape astronomy.galaxy_classification_code.galaxy_shape
Galaxies of this 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 . 
?x1 :type.object.type :astronomy.galactic_shape . 
VALUES ?x2 { :m.0cgl46f } 
?x1 :astronomy.galactic_shape.galaxies_of_this_shape ?x0 . 
?x2 :astronomy.galaxy_classification_code.galaxy_shape ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND astronomy.galaxy_classification_code (JOIN (R astronomy.galactic_shape.galaxies_of_this_shape) (JOIN (R astronomy.galaxy_classification_code.galaxy_shape) m.0cgl46f)))