How many {target} are to/by {bank} ?
Banks have how many targets?
How many Targets are by banks?
SELECT ( COUNT ( ?d ) AS ?p ) { ?d property:target resource:bank }
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/P533> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q22687 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P533 wd:Q22687 }
0