I am trying to get list of all the authors who have had 3 or more piece of work done (in DBpedia).
my example can be run on : http://dbpedia.org/sparql
Using HAVING is correct, but there is a limitation in SPARQL with indirectly referring to aggregates.
HAVING
This one works:
SELECT (count(?work) as ?tw) ?author WHERE { ?work dbo:author ?author. } GROUP BY ?author HAVING (count(?work) > 3)