How many {genre} are to/by {religious music} ?
Religious music has how many genres?
How many genres are there of religious music?
SELECT ( COUNT ( ?m ) AS ?e ) { ?m property:genre resource:religious_music }
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/P136> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q1065742 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P136 wd:Q1065742 }
122