How many {species kept} are to/by {caracal} ?
What is the number species the Caracal has?
how many species does the caracal have?
SELECT ( COUNT ( ?r ) AS ?b ) { ?r property:species_kept resource:caracal }
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/P1990> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q30847 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P1990 wd:Q30847 }
8