which locomotive class is built by electrostar?
Entity Entity Entity Entity Entity Entity Entity
m.04737n m.06k1rb m.0xnqyk8 m.064pwns m.0287db8 m.03wvl2 m.0472r_
British Rail Class 377 British Rail Class 376 British Rail Class 387 British Rail Class 379 British Rail Class 378 British Rail Class 357 British Rail Class 375
class entity
rail.locomotive_class m.08bs9h
rail.locomotive_class rail.locomotive_class
Locomotive class Electrostar
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.08bs9h } 
?x0 :rail.locomotive_class.parent_class ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND rail.locomotive_class (JOIN rail.locomotive_class.parent_class m.08bs9h))