query-2e8f50a1d96b1e3fba215e13ff9593f2

rq turtle/ttl

Sorting and grouping in queryWhat is wrong with this query?

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?points ?fedLabel ?boardLabel
WHERE 
{
  ?item p:P1344 ?statementNode .
  ?statementNode ps:P1344 wd:Q226066 .
  ?statementNode pq:P1355 ?points .
  ?statementNode pq:P413 ?board .
  ?item wdt:P1532 ?fed .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } 
}
GROUP BY ?fedLabel
ORDER BY ASC(?boardLabel)

Query found at