what steam locomotive class has the wheel configuration of 4-2-2.
Entity
m.026gbyn
Bristol and Exeter Railway 4-2-2 locomotives
class entity
rail.steam_locomotive_class m.04rc82
rail.steam_locomotive_class rail.steam_locomotive_wheel_configuration
Steam locomotive class 4-2-2
none none
rail.steam_locomotive_class.wheel_configuration
Wheel configuration
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.steam_locomotive_class . 
VALUES ?x1 { :m.04rc82 } 
?x0 :rail.steam_locomotive_class.wheel_configuration ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND rail.steam_locomotive_class (JOIN rail.steam_locomotive_class.wheel_configuration m.04rc82))