How many {sponsor} are to/by {American Association for the Advancement of Science} ?
What is the total number of sponsors for the {American Association for the Advancement of Science}?
How many sponsors are there for the {American Association for the Advancement of Science} ?
SELECT ( COUNT ( ?v ) AS ?o ) { ?v property:sponsor resource:American_Association_for_the_Advancement_of_Science }
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/P859> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q40358 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P859 wd:Q40358 }
7