@@ -9133,7 +9133,7 @@ <h5>Filters of Group</h5>
9133
9133
<section id="sparqlSimplification">
9134
9134
<h5>Simplification step</h5>
9135
9135
<p>Some groups of one graph pattern become <a href="#defn_absJoin" class="absOp">Join</a>(|Z|, |A|), where |Z| is the empty
9136
- basic graph pattern (which is the empty set). These can be replaced by |A|. The empty graph
9136
+ basic graph pattern (which is the empty set). These are replaced by |A|. The empty graph
9137
9137
pattern |Z| is the identity for join:</p>
9138
9138
<pre class="code nohighlight">
9139
9139
Replace <a href="#defn_absJoin" class="absOp">Join</a>(<var>Z</var>, <var>A</var>) by <var>A</var>
@@ -9383,12 +9383,12 @@ <h5>Grouping and Aggregation</h5>
9383
9383
Let <var>P</var> := algebraic query expression <a href="#convertGraphPattern">produced</a> for the GroupGraphPattern of the query level
9384
9384
Let <var>E</var> := [], a list of pairs of the form (variable, expression)
9385
9385
9386
- If <var>Q</var> contains GROUP BY exprlist
9387
- Let <var>Grp</var> := <a href="#defn_absGroup" class="absOp">Group</a>(exprlist, <a href="#defn_absToList" class="absOp">ToList</a>(<var>P</var>))
9386
+ If <var>Q</var> contains GROUP BY <var> exprlist</var>
9387
+ Let <var>Grp</var> := <a href="#defn_absGroup" class="absOp">Group</a>(<var> exprlist</var> , <a href="#defn_absToList" class="absOp">ToList</a>(<var>P</var>))
9388
9388
Else If <var>Q</var> contains an aggregate in SELECT, HAVING, ORDER BY
9389
9389
Let <var>Grp</var> := <a href="#defn_absGroup" class="absOp">Group</a>((1), <a href="#defn_absToList" class="absOp">ToList</a>(<var>P</var>))
9390
9390
Else
9391
- skip the rest of the aggregate step
9391
+ skip the rest of the Aggregates step
9392
9392
End
9393
9393
9394
9394
Global <var>i</var> := 1 # Initially 1 for each query processed
0 commit comments