which material has a parent material class that also has a parent material class of metal wire?
Entity Entity
m.08xqsl m.05zmvr0
Wire rope Beryllium copper wire
class class entity
engineering.material engineering.material m.083kv
engineering.material engineering.material engineering.material
Material Material metal wire
none none none
engineering.material.parent_material_class engineering.material.subclass
Parent material class Child material class
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 :engineering.material . 
?x1 :type.object.type :engineering.material . 
VALUES ?x2 { :m.083kv } 
?x0 :engineering.material.parent_material_class ?x1 . 
?x2 :engineering.material.subclass ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(AND engineering.material (JOIN engineering.material.parent_material_class (JOIN (R engineering.material.subclass) m.083kv)))