Debian Codegraph @

tests/sparql/aggregate/agg-1.rq

raw
1 # http://www.w3.org/TR/2010/WD-sparql11-query-20100601/#aggregateExample
2
3 PREFIX : <http://books.example/>
4 SELECT (SUM(?lprice) AS ?totalPrice)
5 WHERE {
6 ?org :affiliates ?auth .
7 ?auth :writesBook ?book .
8 ?book :price ?lprice .
9 }
10 GROUP BY ?org
11 HAVING (SUM(?lprice) > 10)