diff --git a/spec/index.html b/spec/index.html index 272e758..0671da6 100644 --- a/spec/index.html +++ b/spec/index.html @@ -2925,12 +2925,14 @@

Aggregate Projection Restrictions

?x :q ?z . } GROUP BY ?x (STR(?z)) -

Note that it would not be legal to project STR(?z) as this is not a simple - variable expression. However, with GROUP BY (STR(?z) AS ?strZ) it would be - possible to project ?strZ.

-

Other expressions, not using GROUP BY variables, or aggregates may have - non-deterministic values projected from their groups using the SAMPLE - aggregate.

+
+

Note that it would not be legal to project STR(?z) as this is not a simple + variable expression. However, with GROUP BY (STR(?z) AS ?strZ) it would be + possible to project ?strZ.

+

For other expressions (not using GROUP BY variables or aggregates), + non-deterministic values may be requested from their groups by using the SAMPLE + aggregate function explicitly.

+

Aggregate Example (with errors)

@@ -9538,7 +9540,7 @@
Grouping and Aggregation
For each (X AS Var) in SELECT, each HAVING(X), and each ORDER BY X in Q For each unaggregated variable V in X - Replace V with SAMPLE(V) + Raise an error End For each aggregate R(args ; scalarvals) now in X # note: scalarvals may be omitted; if so, it is equivalent to the empty function