Debian Codegraph @

tests/sparql/aggregate/agg-3.rq

raw
1 # Test GROUP BY
2 PREFIX ex: <http://example.org/>
3
4 SELECT ?state (SAMPLE(?name) AS ?residents)
5 FROM <data-2.ttl>
6 WHERE
7 {
8 ?person ex:name ?name .
9 ?person ex:livesIn ?state
10 }
11 GROUP BY ?state