How many {means of locomotion} are to/by {quadrupedalism} ?
Provide the number of quadrupedal means of locomotion that exist.
How many quadrupedal means of locomotion are there?
SELECT ( COUNT ( ?t ) AS ?u ) { ?t property:means_of_locomotion resource:quadrupedalism }
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/P3512> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> http://wikidata.dbpedia.org/resource/Q21907045 .
} 

SELECT (COUNT(?sub) AS ?value ) { ?sub wdt:P3512 wd:Q21907045 }
9