How many {location} are to/by {Canary Islands} ?
How many islands exist in the group known as The Canary Islands?
The Canary Islands contain how many locations?
SELECT ( COUNT ( ?e ) AS ?w ) { ?e property:location resource:Canary_Islands }
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/P276> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q5813 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P276 wd:Q5813 }
24