> On 26 Feb 2019, at 10:51, Richard Dijkstra <
richarddi...@gmail.com> wrote:
>
> I query:
>
> SELECT ?naam (COUNT(?naam) as ?count)
> WHERE {
> ?sfg_cust local:Klantnr ?klantnr ;
> rdfs:label ?naam .
> FILTER (?count = 2)
> }
> GROUP BY ?naam
> ORDER BY DESC(?count)
> """,
>
> on the following graph:
>
> local:sfg_customer_100068 a local:Sfg_customer ;
> rdfs:label "SCALDA COLL V BROOD EN BANKET" ;
> ...
> local:Klant_categorienr 345 ;
> local:Klant_omschrijving "SCALDA COLL V BROOD EN BANKET"^^xsd:string ;
> local:Klantnr "100068"^^xsd:string ;
>
> Without the FILTER I get a nice result; but with FILTER the result is empty.
> What is wrong?
Quick answer without trying it out: the aggregate projection variable is only defined outside of the WHERE block, so it's not available within...