How many {collection} are to/by {Museo Soumaya} ?
Museo Soumaya has several collections they have worked on, what are they?
How many collection are done by Museo Soumaya
SELECT ( COUNT ( ?x ) AS ?v ) { ?x property:collection resource:Museo_Soumaya }
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/P195> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q2097646 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P195 wd:Q2097646 }
119