How many {programming language} are to/by {assembly language} ?
Of the programming languages, how many of them are assembly languages?
How many programming languages are assembly languages?
SELECT ( COUNT ( ?q ) AS ?d ) { ?q property:programming_language resource:assembly_language }
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/P277> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q165436 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P277 wd:Q165436 }
213