How many {league} are to/by {National Hockey League} ?
how many leagues are in natinal hockey league?
How many leagues are in the National Hockey League?
SELECT ( COUNT ( ?w ) AS ?b ) { ?w property:league resource:National_Hockey_League }
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/P118> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q1215892 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P118 wd:Q1215892 }
7123