what rock type is considered a sub-type of a rock type that has a sub-type including metamorphic rocks?
Entity Entity Entity Entity Entity Entity Entity Entity
m.03_2f m.0dgd1yr m.0dgd1yk m.0dgd1yy m.09gf56r m.0j8lm73 m.0j8ll_9 m.0j8lm05
Igneous rock Para-amphibolite Orthoamphibolite Metabasalt Balangeroite Quartz-feldspar schist Pelitic schist Mica schist
class class entity
geology.rock_type geology.rock_type m.0c3c0
geology.rock_type geology.rock_type geology.rock_type
Rock type Rock type metamorphic rocks
none none none
geology.rock_type.sub_types geology.rock_type.sub_types
Sub-types Sub-types
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 :geology.rock_type . 
?x1 :type.object.type :geology.rock_type . 
VALUES ?x2 { :m.0c3c0 } 
?x1 :geology.rock_type.sub_types ?x0 . 
?x2 :geology.rock_type.sub_types ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND geology.rock_type (JOIN (R geology.rock_type.sub_types) (JOIN (R geology.rock_type.sub_types) m.0c3c0)))