which bridge has 2 spans?
Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity Entity
m.0y4kkyb m.0cb8vs m.0gdq3d m.05zzv40 m.03yt0y m.0g7lt5d m.0g4ypm_ m.05bbdr0 m.0g4yqjf m.075mf8g m.0g4yvlh g.121rjlw3 g.122y53t2
Hvítá bridge Bollman Truss Railroad Bridge Philippi Covered Bridge Pergamon Bridge Maidenhead Railway Bridge Passerelle Masaryk Schaffhausen Bridge Coalbrookdale Bridge Bellows Falls Bridge 12 Mile road- Kalamazoo River Bridge Essex Merrimack Bridge 1792 null null
class literal
transportation.bridge 2^^http://www.w3.org/2001/XMLSchema#integer
transportation.bridge type.int
Bridge 2
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 { "2"^^<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 2^^http://www.w3.org/2001/XMLSchema#integer))