public EndQuery group(Group group) {
        return new EndQuery(this).group(group);
    }
Group.
https://docs.vespa.ai/en/reference/query-language-reference.html#grouping

@param group the group
@return the end query
client/src/main/java/ai/vespa/client/dsl/Query.java