How many {partnership with} are to/by {Autonomous University of Barcelona} ?
How many partnerships are with AUofB?
How many partnerships are with Autonomous University of Barcelona?
SELECT ( COUNT ( ?h ) AS ?m ) { ?h property:partnership_with resource:Autonomous_University_of_Barcelona }
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/P2652> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q43452 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P2652 wd:Q43452 }
8