the guage (mm) 1676.4 is in what locomotive class?
Entity Entity Entity Entity
m.0ys_r00 m.0yntb81 m.0yqj5bh m.0ynxx6b
BNR class P BNR class HSG BNR class NM BNR class N
class literal
rail.locomotive_class 1676.4^^http://www.w3.org/2001/XMLSchema#float
rail.locomotive_class type.float
Locomotive class 1676.4
none none
rail.locomotive_class.gauge_mm
Gauge (mm)
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 { "1676.4"^^<http://www.w3.org/2001/XMLSchema#float> } 
?x0 :rail.locomotive_class.gauge_mm ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND rail.locomotive_class (JOIN rail.locomotive_class.gauge_mm 1676.4^^http://www.w3.org/2001/XMLSchema#float))