How many {spin-off} are for {Doctor Who} ?
Which is the number of Doctor Who spin-offs?
How many Doctor Who spin-offs are there?
SELECT ( COUNT ( ?t ) AS ?j ) { resource:Doctor_Who property:series_spin-off ?t }
SELECT (COUNT(?obj) AS ?objs ) {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q34316> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P2512> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
} 

SELECT (COUNT(?obj) AS ?value ) { wd:Q34316 wdt:P2512 ?obj }
5