How many {official residence} are to/by {Los Angeles} ?
What is the number of official residences in Los Angeles?
How many official residences are in Los Angeles?
SELECT ( COUNT ( ?m ) AS ?l ) { ?m property:official_residence resource:Los_Angeles }
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/P263> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q65 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P263 wd:Q65 }
8