What SPARQL query can the number of identical triples?
SELECT ?s ?p ?o .
s p o
-----
a b c
x y z
a b c
r s t
x y z
a b c
Wanted output:
s p o num
----------
a b c 3
x y z 2
r s t 1
Hoped for something like
SELECT ?s ?p ?o (COUNT(*) AS ?num)
GROUP BY ?s ?p ?o
but can't get it to work...