@@ -9133,7 +9133,7 @@ <h5>Filters of Group</h5>
91339133 <section id="sparqlSimplification">
91349134 <h5>Simplification step</h5>
91359135 <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
91379137 pattern |Z| is the identity for join:</p>
91389138 <pre class="code nohighlight">
91399139Replace <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>
93839383Let <var>P</var> := algebraic query expression <a href="#convertGraphPattern">produced</a> for the GroupGraphPattern of the query level
93849384Let <var>E</var> := [], a list of pairs of the form (variable, expression)
93859385
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>))
93889388Else If <var>Q</var> contains an aggregate in SELECT, HAVING, ORDER BY
93899389 Let <var>Grp</var> := <a href="#defn_absGroup" class="absOp">Group</a>((1), <a href="#defn_absToList" class="absOp">ToList</a>(<var>P</var>))
93909390Else
9391- skip the rest of the aggregate step
9391+ skip the rest of the Aggregates step
93929392 End
93939393
93949394Global <var>i</var> := 1 # Initially 1 for each query processed
0 commit comments