which class does mark vii monorail orange belong to?
Entity
m.06w7jwl
Mark VII monorail
class entity
rail.locomotive_class m.08zsdsf
rail.locomotive_class rail.locomotive
Locomotive class Mark VII monorail Orange
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.08zsdsf } 
?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.08zsdsf))