SELECT ?artist (COUNT(*) AS ?works) WHERE { ?w wa:artistNameText ?artist . FILTER(STRLEN(?artist) > 1) } GROUP BY ?artist ORDER BY DESC(?works) LIMIT 30
rete playground · documentation · github.com/caviri/rete