find all machines with 10 pistons
Entity
m.01cdc5
V10 engine
class literal
engineering.piston_configuration 10^^http://www.w3.org/2001/XMLSchema#integer
engineering.piston_configuration type.int
Piston configuration 10
none none
engineering.piston_configuration.number_of_pistons
Number of pistons
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_configuration . 
VALUES ?x1 { "10"^^<http://www.w3.org/2001/XMLSchema#integer> } 
?x0 :engineering.piston_configuration.number_of_pistons ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND engineering.piston_configuration (JOIN engineering.piston_configuration.number_of_pistons 10^^http://www.w3.org/2001/XMLSchema#integer))