stadler gtw builds what class of locomotive?
Entity Entity Entity
m.0dgqhs5 m.0hrd3m2 m.0hr9zt2
ZSSK Class 425.95 Matterhorn Gotthard Bahn ABDeh 4/8 Matterhorn Gotthard Bahn ABDeh 4/10
class entity
rail.locomotive_class m.0cw7vg
rail.locomotive_class rail.locomotive_class
Locomotive class Stadler GTW
none none
rail.locomotive_class.parent_class
Parent 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 :rail.locomotive_class . 
VALUES ?x1 { :m.0cw7vg } 
?x0 :rail.locomotive_class.parent_class ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND rail.locomotive_class (JOIN rail.locomotive_class.parent_class m.0cw7vg))