How many {executive producer} are to/by {Sydney Pollack} ?
Sydney Pollack is executive producer of how many productions?
How many are executive produced by Sydney Pollack?
SELECT ( COUNT ( ?t ) AS ?v ) { ?t property:executive_producer resource:Sydney_Pollack }
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/P1431> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q51522 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1431 wd:Q51522 }
7