How many {notable work} are to/by {Doctor Who} ?
Who is the author of the notable work Doctor Who?
Who wrote the notable work Doctor Who?
SELECT ( COUNT ( ?v ) AS ?p ) { ?v property:notable_work resource:Doctor_Who }
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/P800> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q34316 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P800 wd:Q34316 }
14