Traqula docs
    Preparing search index...
    translateAlgGroup: AstIndir<
        "translateGroup",
        Pattern
        | Pattern[],
        [Algebra.Group],
    > = ...

    A group needs to be handled by translateAlgProject. GROUP BY (expr AS ?v) translates to extends directly below the group, binding group variables. Those extends are registered, so they become (expr AS ?v) group conditions instead of BINDs in the WHERE clause.