I'm trying to write a SPARQL query that will return a subject and the number of objects it has for a particular predicate. Here's what I have, but it is not working.
SELECT ?quote (COUNT(?quotedBy) AS ?no) WHERE {
?quote <http://scta.info/property/quotationType> <http://scta.info/resource/quoteType/Biblical> .
?quote <http://scta.info/property/quotedBy> ?quotedBy .
}