which bridge has 8 spans?
Entity Entity Entity Entity Entity Entity
g.12288vwk m.02rtcjd m.036qq2 m.0318c7 m.0bzw_j g.122qs3_b
null Wharncliffe Viaduct Tacony–Palmyra Bridge Menai Suspension Bridge Osterøy Bridge null
class literal
transportation.bridge 8^^http://www.w3.org/2001/XMLSchema#integer
transportation.bridge type.int
Bridge 8
none none
transportation.bridge.number_of_spans
Number of spans
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 :transportation.bridge . 
VALUES ?x1 { "8"^^<http://www.w3.org/2001/XMLSchema#integer> } 
?x0 :transportation.bridge.number_of_spans ?x1 . 
FILTER ( ?x0 != ?x1  )
}
}
(AND transportation.bridge (JOIN transportation.bridge.number_of_spans 8^^http://www.w3.org/2001/XMLSchema#integer))