I want to filter a count result. I’m using the following query:
SELECT (COUNT(*) AS ?total)
WHERE {
?s sf:RatioSWO ?o .
}
GROUP BY ?total
This only gives me the total rows of the predicate. I’ve tried filtering by placing a “< 0.5” after the COUNT(*) but this just gives me a result of “false” which I have no idea what that means. I’ve also tried HAVING and FILTER but both give me no results.
I’m not quite sure what you’re trying to achieve, but how about this:
This counts the number of
sf:RatioSWOtriples where the value is greater than 0.5.