the messier 74 has what galaxy classification code ?
Entity
m.0hnggz5
SA(s)c
class entity
astronomy.galaxy_classification_code m.03tywg
astronomy.galaxy_classification_code astronomy.galaxy
Galaxy classification code Messier 74
none none
astronomy.galaxy_classification_code.galaxies_of_this_code
Galaxies of this code
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.03tywg } 
?x0 :astronomy.galaxy_classification_code.galaxies_of_this_code ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND astronomy.galaxy_classification_code (JOIN astronomy.galaxy_classification_code.galaxies_of_this_code m.03tywg))