Question: Carl Sagan has penned books on how many matters?
SPARQL query:
PREFIX prop: <http://dbpedia.org/property/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT COUNT(?uri) WHERE { ?x onto:author <http://dbpedia.org/resource/Carl_Sagan> . ?x prop:subject ?uri  . }