How many {official language} are to/by {Berber languages} ?
What's the number of places where Berber is the official language?
How many places have the Berber language as their official language?
SELECT ( COUNT ( ?r ) AS ?t ) { ?r property:official_language resource:Berber_languages }
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/P37> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q25448 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P37 wd:Q25448 }
17