How many {academic major} are to/by {Romanian literature} ?
Tell me how many Romanian Lit. majors there are.
How many Romanian literature majors are there?
SELECT ( COUNT ( ?d ) AS ?o ) { ?d property:academic_major resource:Romanian_literature }
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/P812> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q2077256 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P812 wd:Q2077256 }
5