How many {archives at} are to/by {University of Virginia} ?
The University of Virginia has what number of archives?
How many archives does the University of Virginia hold?
SELECT ( COUNT ( ?h ) AS ?w ) { ?h property:archives_at resource:University_of_Virginia }
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/P485> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q213439 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P485 wd:Q213439 }
9