what is the locomotive classes of caledonian railway 782 class?
Entity
m.026t5t
0-6-0
class entity
rail.steam_locomotive_wheel_configuration m.0g66h8
rail.steam_locomotive_wheel_configuration rail.steam_locomotive_class
Steam locomotive wheel configuration Caledonian Railway 782 Class
none none
rail.steam_locomotive_wheel_configuration.locomotive_classes
Locomotive classes
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_wheel_configuration . 
VALUES ?x1 { :m.0g66h8 } 
?x0 :rail.steam_locomotive_wheel_configuration.locomotive_classes ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND rail.steam_locomotive_wheel_configuration (JOIN rail.steam_locomotive_wheel_configuration.locomotive_classes m.0g66h8))