how many building complexes has the function of bergen-belsen concentration camp?
Value
3
class class entity
architecture.building_complex architecture.building_complex_function m.0139dh
architecture.building_complex architecture.building_complex_function architecture.building_complex
Building complex Building complex function Bergen-Belsen concentration camp
count none none
architecture.building_complex_function.building_complexes architecture.building_complex.complex_function
Building complexes Complex function
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 :architecture.building_complex . 
?x1 :type.object.type :architecture.building_complex_function . 
VALUES ?x2 { :m.0139dh } 
?x1 :architecture.building_complex_function.building_complexes ?x0 . 
?x2 :architecture.building_complex.complex_function ?x1 . 
FILTER ( ?x0 != ?x1 && ?x0 != ?x2 && ?x1 != ?x2  )
}
}
(COUNT (AND architecture.building_complex (JOIN (R architecture.building_complex_function.building_complexes) (JOIN (R architecture.building_complex.complex_function) m.0139dh))))