☰
Debian Codegraph
@
0.9.33-4
/
/
tests
/
sparql
/
aggregate
/
agg-3.rq
☽
☼
tests/sparql/aggregate/agg-3.rq
code
plain
raw
LGPL-2.1+
or
GPL-2+
or
Apache-2.0+
2000-2014 David Beckett; 2000-2005 University of Bristol
debian/copyright
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