british rail engineering limited is the builder of which class of locomotives?
Entity Entity Entity Entity Entity Entity Entity Entity
m.06fzqn m.06fzx8 m.07_6b7 m.07zv22 m.03bk_g m.04_3y0 m.051p5k m.06hv4k
British Rail Class 41 British Rail Class 43 (HST) British Rail Class 58 British Rail Class 56 British Rail Class 89 British Rail Class 87 British Rail Class 91 British Rail Class 90
class entity
rail.locomotive_class m.03wygh
rail.locomotive_class rail.locomotive_builder
Locomotive class British Rail Engineering Limited
none none
rail.locomotive_class.built_by
Built by
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.03wygh } 
?x0 :rail.locomotive_class.built_by ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND rail.locomotive_class (JOIN rail.locomotive_class.built_by m.03wygh))