How many {has facility} are to/by {elevator} ?
Which of the facilities have elevators?
How many facilities have elevators?
SELECT ( COUNT ( ?o ) AS ?w ) { ?o property:has_facility resource:lift }
SELECT (COUNT(?sub) AS ?subs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sub .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P912> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q132911 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P912 wd:Q132911 }
65