chennai - bangalore double decker express belongs to what class?
Entity
m.07_g7t
Indian locomotive class WAP-7
class entity
rail.locomotive_class m.0tkdv0m
rail.locomotive_class rail.locomotive
Locomotive class Chennai - Bangalore Double Decker Express
none none
rail.locomotive_class.locomotives_of_this_class
Locomotives of this 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.0tkdv0m } 
?x0 :rail.locomotive_class.locomotives_of_this_class ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND rail.locomotive_class (JOIN rail.locomotive_class.locomotives_of_this_class m.0tkdv0m))