what is the number of electric locomotive classes built by siemens?
Value
12
class entity
rail.electric_locomotive_class m.016l20
rail.electric_locomotive_class rail.locomotive_builder
Electric locomotive class Siemens
count none
rail.locomotive_builder.locomotive_classes_built
Locomotive classes built
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 (COUNT(?x0) AS ?value) WHERE {
SELECT DISTINCT ?x0  WHERE { 
?x0 :type.object.type :rail.electric_locomotive_class . 
VALUES ?x1 { :m.016l20 } 
?x1 :rail.locomotive_builder.locomotive_classes_built ?x0 . 
FILTER ( ?x0 != ?x1  )
}
}
(COUNT (AND rail.electric_locomotive_class (JOIN (R rail.locomotive_builder.locomotive_classes_built) m.016l20)))