find pistons that use v12
Entity Entity
m.09qx4 m.07_379m
Rolls-Royce Merlin F133 engine
class entity
engineering.piston_engine m.0800_
engineering.piston_engine engineering.piston_configuration
Piston engine v12
none none
engineering.piston_engine.piston_configuration
Piston configuration
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 :engineering.piston_engine . 
VALUES ?x1 { :m.0800_ } 
?x0 :engineering.piston_engine.piston_configuration ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND engineering.piston_engine (JOIN engineering.piston_engine.piston_configuration m.0800_))