Debian Codegraph @

tests/sparql/aggregate/group-concat-4.rq

raw
1 # Test GROUP_CONCAT() with DISTINCT and default separator
2 PREFIX ex: <http://example.org/>
3 # Pick unique names per state; Hawaii has two Daniels
4 SELECT ?state (GROUP_CONCAT(DISTINCT ?name) AS ?residents)
5 WHERE
6 {
7 ?person ex:name ?name .
8 ?person ex:livesIn ?state
9 }
10 GROUP BY ?state