Groups

This module contains the primitives to construct, derive, and perform statistical operations on BATs representing groups. The default scheme in MonetDB is to assume the head to represent the group identifier and the tail an element in the group.

Groups play an important role in data science, where they are used to construct cross-tables. Such cross tables over a single BAT are already supported by the histogram function. This module provides extensions to support identification of groups in a (multi-)dimensional space.

The module implementation has a long history. The first implementation provided several alternatives to produce/derive the grouping. A more complete (and complex) scheme was derived during its extensive use in the context of the Data Distilleries product. The current implementation is partly a cleanup of this code-base, but also enables provides better access to the intermediate structures produced in the process, i.e. the histogram and the sub-group mapping. They can be used for various optimization schemes at the MAL level.

The prime limitation of the current implementation is that an underlying database of oid->any BATs is assumed. This enables representation of each group using an oid, and the value representation of the group can be accordingly be retrieved easily. An optimized implementation in which we use positional integer id's (as embodied by Monet's void type) is also available.

Algorithms

There are several approaches to build a cross table. The one chosen here is aimed at incremental construction, such that re-use of intermediates becomes possible. Starting with the first dimension, a BAT is derived to represent the various groups, called a GRP BAT or cross-table BAT.

Cross Table (GRP)

A cross table is an <oid,oid> BAT where the first (head) denotes a tuple in the cross table and the second (tail) marks all identical lists. The tail-oids contain group identifiers; that is, this value is equal iff two tuples belong to the same group. The group identifiers are chosen from the domain of the tuple-identifiers. This simplifies getting back to the original tuples, when talking about a group. If the tuple-oid of 'John' is chosen as a group-id, you might view this as saying that each member of the group is 'like John' with respect to the grouping-criterion.

Successively the subgroups can be identified by modifying the GRP BAT or to derive a new GRP BAT for the subgroups. After all groups have been identified this way, a BAT histogram operation can be used to obtain the counts of each data cube. Other aggregation operations using the MIL set aggregate construct (bat) can be used as well; note for instance that histogram == (b.reverse()).

The Monet interface module specification is shown below. Ideally we should defined stronger type constraints, e.g. command group.new(attr:bat[,:any_1]

The group macro is split along three dimensions:

DimensionDescription
[type:]Type specific implementation for selecting the right hash function and data size etc.
[clustered:]The select the appropriate algorithm, i.e., with or without taking advantage of an order of values in the parent groups
[physical properties:]Values , choosing between a fixed predefined and a custom hash mask. Custom allows the user to determine the size of the hash mask (and indirectly the estimated size of the result). The hash mask is 2^n - 1 where n is given by the user, or 1023 otherwise, and the derived result size is 4 ... 2^n

Further research should point out whether fitting a simple statistical model (possibly a simple mixture model) can help choose these parameters automatically; the current idea is that the user (which could be a domain-specific extension of the higher-level language) knows the properties of the data, especially for IR in which the standard grouping settings differ significantly from the original data science application.

MODULE group;

COMMAND group.group(X_0:bat[:any_1]):bat[:oid];
COMMENT "";

COMMAND group.group(X_0:bat[:any_1]) (X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:lng]);
COMMENT "";

COMMAND group.group(X_0:bat[:any_1], X_1:bat[:oid]):bat[:oid];
COMMENT "";

COMMAND group.group(X_0:bat[:any_1], X_1:bat[:oid]) (X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:lng]);
COMMENT "";

COMMAND group.group(X_0:bat[:any_1]) (X_1:bat[:oid], X_2:bat[:oid]);
COMMENT "";

COMMAND group.group(X_0:bat[:any_1], X_1:bat[:oid]) (X_2:bat[:oid], X_3:bat[:oid]);
COMMENT "";

COMMAND group.groupdone(X_0:bat[:any_1]):bat[:oid];
COMMENT "";

COMMAND group.groupdone(X_0:bat[:any_1]) (X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:lng]);
COMMENT "";

COMMAND group.groupdone(X_0:bat[:any_1], X_1:bat[:oid]):bat[:oid];
COMMENT "";

COMMAND group.groupdone(X_0:bat[:any_1], X_1:bat[:oid]) (X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:lng]);
COMMENT "";

COMMAND group.groupdone(X_0:bat[:any_1]) (X_1:bat[:oid], X_2:bat[:oid]);
COMMENT "";

COMMAND group.groupdone(X_0:bat[:any_1], X_1:bat[:oid]) (X_2:bat[:oid], X_3:bat[:oid]);
COMMENT "";

PATTERN group.multicolumn(X_0:bat[:any]...) (X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:any]);
COMMENT "";

COMMAND group.subgroup(X_0:bat[:any_1], X_1:bat[:oid]):bat[:oid];
COMMENT "";

COMMAND group.subgroup(X_0:bat[:any_1], X_1:bat[:oid]) (X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:lng]);
COMMENT "";

COMMAND group.subgroup(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid]):bat[:oid];
COMMENT "";

COMMAND group.subgroup(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid]) (X_3:bat[:oid], X_4:bat[:oid], X_5:bat[:lng]);
COMMENT "";

COMMAND group.subgroup(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:lng]):bat[:oid];
COMMENT "";

COMMAND group.subgroup(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:lng]) (X_4:bat[:oid], X_5:bat[:oid], X_6:bat[:lng]);
COMMENT "";

COMMAND group.subgroup(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:lng]):bat[:oid];
COMMENT "";

COMMAND group.subgroup(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:lng]) (X_5:bat[:oid], X_6:bat[:oid], X_7:bat[:lng]);
COMMENT "";

COMMAND group.subgroup(X_0:bat[:any_1], X_1:bat[:oid]) (X_2:bat[:oid], X_3:bat[:oid]);
COMMENT "";

COMMAND group.subgroup(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid]) (X_3:bat[:oid], X_4:bat[:oid]);
COMMENT "";

COMMAND group.subgroup(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:lng]) (X_4:bat[:oid], X_5:bat[:oid]);
COMMENT "";

COMMAND group.subgroup(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:lng]) (X_5:bat[:oid], X_6:bat[:oid]);
COMMENT "";

COMMAND group.subgroupdone(X_0:bat[:any_1], X_1:bat[:oid]):bat[:oid];
COMMENT "";

COMMAND group.subgroupdone(X_0:bat[:any_1], X_1:bat[:oid]) (X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:lng]);
COMMENT "";

COMMAND group.subgroupdone(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid]):bat[:oid];
COMMENT "";

COMMAND group.subgroupdone(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid]) (X_3:bat[:oid], X_4:bat[:oid], X_5:bat[:lng]);
COMMENT "";

COMMAND group.subgroupdone(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:lng]):bat[:oid];
COMMENT "";

COMMAND group.subgroupdone(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:lng]) (X_4:bat[:oid], X_5:bat[:oid], X_6:bat[:lng]);
COMMENT "";

COMMAND group.subgroupdone(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:lng]):bat[:oid];
COMMENT "";

COMMAND group.subgroupdone(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:lng]) (X_5:bat[:oid], X_6:bat[:oid], X_7:bat[:lng]);
COMMENT "";

COMMAND group.subgroupdone(X_0:bat[:any_1], X_1:bat[:oid]) (X_2:bat[:oid], X_3:bat[:oid]);
COMMENT "";

COMMAND group.subgroupdone(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid]) (X_3:bat[:oid], X_4:bat[:oid]);
COMMENT "";

COMMAND group.subgroupdone(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:lng]) (X_4:bat[:oid], X_5:bat[:oid]);
COMMENT "";

COMMAND group.subgroupdone(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:lng]) (X_5:bat[:oid], X_6:bat[:oid]);
COMMENT "";

Aggr module

MODULE aggr;

COMMAND aggr.all(X_0:bat[:any_1]):any_1;
COMMENT "";

PATTERN aggr.allnotequal(X_0:bat[:any_1], X_1:bat[:any_1]):bit;
COMMENT "";

PATTERN aggr.anyequal(X_0:any_1, X_1:any_1):bit;
COMMENT "";

PATTERN aggr.anyequal(X_0:bat[:any_1], X_1:bat[:any_1]):bit;
COMMENT "";

COMMAND aggr.avg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.avg(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.avg(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.avg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.avg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.avg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.avg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:int):bat[:dbl];
COMMENT "";

COMMAND aggr.avg(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:int):bat[:dbl];
COMMENT "";

COMMAND aggr.avg(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:int):bat[:dbl];
COMMENT "";

COMMAND aggr.avg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:int):bat[:dbl];
COMMENT "";

COMMAND aggr.avg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:int):bat[:dbl];
COMMENT "";

COMMAND aggr.avg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:int):bat[:dbl];
COMMENT "";

COMMAND aggr.avg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]) (X_3:bat[:dbl], X_4:bat[:lng]);
COMMENT "";

COMMAND aggr.avg(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1]) (X_3:bat[:dbl], X_4:bat[:lng]);
COMMENT "";

COMMAND aggr.avg(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1]) (X_3:bat[:dbl], X_4:bat[:lng]);
COMMENT "";

COMMAND aggr.avg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1]) (X_3:bat[:dbl], X_4:bat[:lng]);
COMMENT "";

COMMAND aggr.avg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1]) (X_3:bat[:dbl], X_4:bat[:lng]);
COMMENT "";

COMMAND aggr.avg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]) (X_3:bat[:dbl], X_4:bat[:lng]);
COMMENT "";

COMMAND aggr.avg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:int) (X_4:bat[:dbl], X_5:bat[:lng]);
COMMENT "";

COMMAND aggr.avg(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:int) (X_4:bat[:dbl], X_5:bat[:lng]);
COMMENT "";

COMMAND aggr.avg(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:int) (X_4:bat[:dbl], X_5:bat[:lng]);
COMMENT "";

COMMAND aggr.avg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:int) (X_4:bat[:dbl], X_5:bat[:lng]);
COMMENT "";

COMMAND aggr.avg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:int) (X_4:bat[:dbl], X_5:bat[:lng]);
COMMENT "";

COMMAND aggr.avg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:int) (X_4:bat[:dbl], X_5:bat[:lng]);
COMMENT "";

PATTERN aggr.avg(X_0:bat[:bte], X_1:bat[:oid], X_2:bit) (X_3:bte, X_4:lng, X_5:lng);
COMMENT "";

PATTERN aggr.avg(X_0:bat[:int], X_1:bat[:oid], X_2:bit) (X_3:int, X_4:lng, X_5:lng);
COMMENT "";

PATTERN aggr.avg(X_0:bat[:lng], X_1:bat[:oid], X_2:bit) (X_3:lng, X_4:lng, X_5:lng);
COMMENT "";

PATTERN aggr.avg(X_0:bat[:sht], X_1:bat[:oid], X_2:bit) (X_3:sht, X_4:lng, X_5:lng);
COMMENT "";

PATTERN aggr.avg(X_0:bat[:bte], X_1:bat[:lng], X_2:bat[:lng]):bte;
COMMENT "";

PATTERN aggr.avg(X_0:bat[:int], X_1:bat[:lng], X_2:bat[:lng]):int;
COMMENT "";

PATTERN aggr.avg(X_0:bat[:lng], X_1:bat[:lng], X_2:bat[:lng]):lng;
COMMENT "";

PATTERN aggr.avg(X_0:bat[:sht], X_1:bat[:lng], X_2:bat[:lng]):sht;
COMMENT "";

PATTERN aggr.avg(X_0:bat[:any_2]):dbl;
COMMENT "";

PATTERN aggr.avg(X_0:bat[:any_2], X_1:int):dbl;
COMMENT "";

COMMAND aggr.cardinality(X_0:bat[:any_2]):lng;
COMMENT "";

COMMAND aggr.corr(X_0:bat[:bte], X_1:bat[:bte], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.corr(X_0:bat[:dbl], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.corr(X_0:bat[:flt], X_1:bat[:flt], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.corr(X_0:bat[:int], X_1:bat[:int], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.corr(X_0:bat[:lng], X_1:bat[:lng], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.corr(X_0:bat[:sht], X_1:bat[:sht], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.corr(X_0:bat[:any_2], X_1:bat[:any_2]):dbl;
COMMENT "";

COMMAND aggr.count(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bit):bat[:lng];
COMMENT "";

COMMAND aggr.count(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2]):bat[:lng];
COMMENT "";

COMMAND aggr.count(X_0:bat[:any], X_1:bat[:oid]):lng;
COMMENT "";

COMMAND aggr.count(X_0:bat[:any], X_1:bat[:oid], X_2:bit):lng;
COMMENT "";

COMMAND aggr.count(X_0:bat[:any]):lng;
COMMENT "";

COMMAND aggr.count(X_0:bat[:any], X_1:bit):lng;
COMMENT "";

COMMAND aggr.count_no_nil(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2]):bat[:lng];
COMMENT "";

COMMAND aggr.count_no_nil(X_0:bat[:any_2], X_1:bat[:oid]):lng;
COMMENT "";

COMMAND aggr.count_no_nil(X_0:bat[:any_2]):lng;
COMMENT "";

COMMAND aggr.covariance(X_0:bat[:bte], X_1:bat[:bte], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.covariance(X_0:bat[:dbl], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.covariance(X_0:bat[:flt], X_1:bat[:flt], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.covariance(X_0:bat[:int], X_1:bat[:int], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.covariance(X_0:bat[:lng], X_1:bat[:lng], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.covariance(X_0:bat[:sht], X_1:bat[:sht], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.covariance(X_0:bat[:any_2], X_1:bat[:any_2]):dbl;
COMMENT "";

COMMAND aggr.covariancep(X_0:bat[:bte], X_1:bat[:bte], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.covariancep(X_0:bat[:dbl], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.covariancep(X_0:bat[:flt], X_1:bat[:flt], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.covariancep(X_0:bat[:int], X_1:bat[:int], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.covariancep(X_0:bat[:lng], X_1:bat[:lng], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.covariancep(X_0:bat[:sht], X_1:bat[:sht], X_2:bat[:oid], X_3:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.covariancep(X_0:bat[:any_2], X_1:bat[:any_2]):dbl;
COMMENT "";

COMMAND aggr.exist(X_0:bat[:any_2], X_1:any_1):bit;
COMMENT "";

PATTERN aggr.exist(X_0:any_1):bit;
COMMENT "";

COMMAND aggr.jsonaggr(X_0:bat[:dbl]):str;
COMMENT "";

COMMAND aggr.jsonaggr(X_0:bat[:str]):str;
COMMENT "";

COMMAND aggr.max(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2]):bat[:any_1];
COMMENT "";

COMMAND aggr.max(X_0:bat[:any_2]):any_2;
COMMENT "";

COMMAND aggr.max(X_0:bat[:any_2], X_1:bit):any_2;
COMMENT "";

COMMAND aggr.median(X_0:bat[:any_1]):any_1;
COMMENT "";

COMMAND aggr.median_avg(X_0:bat[:any_1]):dbl;
COMMENT "";

COMMAND aggr.min(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2]):bat[:any_1];
COMMENT "";

COMMAND aggr.min(X_0:bat[:any_2]):any_2;
COMMENT "";

COMMAND aggr.min(X_0:bat[:any_2], X_1:bit):any_2;
COMMENT "";

PATTERN aggr.not_anyequal(X_0:any_1, X_1:any_1):bit;
COMMENT "";

PATTERN aggr.not_exist(X_0:any_1):bit;
COMMENT "";

COMMAND aggr.not_unique(X_0:bat[:oid]):bit;
COMMENT "";

COMMAND aggr.null(X_0:bat[:any_1]):bit;
COMMENT "";

COMMAND aggr.prod(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:bte];
COMMENT "";

COMMAND aggr.prod(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.prod(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.prod(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1]):bat[:flt];
COMMENT "";

COMMAND aggr.prod(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:int];
COMMENT "";

COMMAND aggr.prod(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1]):bat[:int];
COMMENT "";

COMMAND aggr.prod(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]):bat[:int];
COMMENT "";

COMMAND aggr.prod(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:lng];
COMMENT "";

COMMAND aggr.prod(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1]):bat[:lng];
COMMENT "";

COMMAND aggr.prod(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1]):bat[:lng];
COMMENT "";

COMMAND aggr.prod(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]):bat[:lng];
COMMENT "";

COMMAND aggr.prod(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:sht];
COMMENT "";

COMMAND aggr.prod(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]):bat[:sht];
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte]):bte;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte]):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte]):int;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte]):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte]):sht;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bat[:oid]):bte;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bat[:oid]):int;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bat[:oid]):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bat[:oid]):sht;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bat[:oid], X_2:bit):bte;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bat[:oid], X_2:bit):int;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bat[:oid], X_2:bit):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bat[:oid], X_2:bit):sht;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bit):bte;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bit):int;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bit):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:bte], X_1:bit):sht;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:dbl]):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:dbl], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:dbl], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:dbl], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:flt]):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:flt]):flt;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:flt], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:flt], X_1:bat[:oid]):flt;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:flt], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:flt], X_1:bat[:oid], X_2:bit):flt;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:flt], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:flt], X_1:bit):flt;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:int]):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:int]):int;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:int]):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:int], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:int], X_1:bat[:oid]):int;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:int], X_1:bat[:oid]):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:int], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:int], X_1:bat[:oid], X_2:bit):int;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:int], X_1:bat[:oid], X_2:bit):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:int], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:int], X_1:bit):int;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:int], X_1:bit):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:lng]):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:lng]):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:lng], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:lng], X_1:bat[:oid]):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:lng], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:lng], X_1:bat[:oid], X_2:bit):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:lng], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:lng], X_1:bit):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht]):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht]):int;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht]):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht]):sht;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht], X_1:bat[:oid]):int;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht], X_1:bat[:oid]):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht], X_1:bat[:oid]):sht;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht], X_1:bat[:oid], X_2:bit):int;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht], X_1:bat[:oid], X_2:bit):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht], X_1:bat[:oid], X_2:bit):sht;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht], X_1:bit):int;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht], X_1:bit):lng;
COMMENT "";

PATTERN aggr.prod(X_0:bat[:sht], X_1:bit):sht;
COMMENT "";

COMMAND aggr.quantile(X_0:bat[:any_1], X_1:bat[:dbl]):any_1;
COMMENT "";

COMMAND aggr.quantile_avg(X_0:bat[:any_1], X_1:bat[:dbl]):dbl;
COMMENT "";

COMMAND aggr.stdev(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.stdev(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.stdev(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.stdev(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.stdev(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.stdev(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.stdev(X_0:bat[:any_2]):dbl;
COMMENT "";

COMMAND aggr.stdevp(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.stdevp(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.stdevp(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.stdevp(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.stdevp(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.stdevp(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.stdevp(X_0:bat[:any_2]):dbl;
COMMENT "";

COMMAND aggr.str_group_concat(X_0:bat[:str], X_1:bat[:oid], X_2:bat[:any_1]):bat[:str];
COMMENT "";

COMMAND aggr.str_group_concat(X_0:bat[:str], X_1:bat[:str], X_2:bat[:oid], X_3:bat[:any_1]):bat[:str];
COMMENT "";

PATTERN aggr.str_group_concat(X_0:bat[:str]):str;
COMMENT "";

PATTERN aggr.str_group_concat(X_0:bat[:str], X_1:bat[:oid]):str;
COMMENT "";

PATTERN aggr.str_group_concat(X_0:bat[:str], X_1:bat[:oid], X_2:bit):str;
COMMENT "";

PATTERN aggr.str_group_concat(X_0:bat[:str], X_1:bat[:str]):str;
COMMENT "";

PATTERN aggr.str_group_concat(X_0:bat[:str], X_1:bat[:str], X_2:bat[:oid]):str;
COMMENT "";

PATTERN aggr.str_group_concat(X_0:bat[:str], X_1:bat[:str], X_2:bat[:oid], X_3:bit):str;
COMMENT "";

PATTERN aggr.str_group_concat(X_0:bat[:str], X_1:bat[:str], X_2:bit):str;
COMMENT "";

PATTERN aggr.str_group_concat(X_0:bat[:str], X_1:bit):str;
COMMENT "";

PATTERN aggr.suball(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:oid], X_4:bit):bat[:any_1];
COMMENT "";

PATTERN aggr.suball(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bit):bat[:any_1];
COMMENT "";

PATTERN aggr.suballnotequal(X_0:bat[:any_1], X_1:bat[:any_1], X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:oid], X_5:bat[:oid], X_6:bit):bat[:bit];
COMMENT "";

PATTERN aggr.suballnotequal(X_0:bat[:any_1], X_1:bat[:any_1], X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:oid], X_5:bit):bat[:bit];
COMMENT "";

PATTERN aggr.suballnotequal(X_0:bat[:any_1], X_1:bat[:any_1], X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:oid], X_5:bit):bat[:bit];
COMMENT "";

PATTERN aggr.suballnotequal(X_0:bat[:any_1], X_1:bat[:any_1], X_2:bat[:oid], X_3:bat[:oid], X_4:bit):bat[:bit];
COMMENT "";

PATTERN aggr.subanyequal(X_0:bat[:any_1], X_1:bat[:any_1], X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:oid], X_5:bat[:oid], X_6:bit):bat[:bit];
COMMENT "";

PATTERN aggr.subanyequal(X_0:bat[:any_1], X_1:bat[:any_1], X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:oid], X_5:bit):bat[:bit];
COMMENT "";

PATTERN aggr.subanyequal(X_0:bat[:any_1], X_1:bat[:any_1], X_2:bat[:oid], X_3:bat[:oid], X_4:bat[:oid], X_5:bit):bat[:bit];
COMMENT "";

PATTERN aggr.subanyequal(X_0:bat[:any_1], X_1:bat[:any_1], X_2:bat[:oid], X_3:bat[:oid], X_4:bit):bat[:bit];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit) (X_5:bat[:bte], X_6:bat[:lng], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit) (X_5:bat[:int], X_6:bat[:lng], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit) (X_5:bat[:lng], X_6:bat[:lng], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit) (X_5:bat[:sht], X_6:bat[:lng], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:bte], X_1:bat[:lng], X_2:bat[:lng], X_3:bat[:oid], X_4:bat[:any_1], X_5:bit):bat[:bte];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:int], X_1:bat[:lng], X_2:bat[:lng], X_3:bat[:oid], X_4:bat[:any_1], X_5:bit):bat[:int];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:lng], X_1:bat[:lng], X_2:bat[:lng], X_3:bat[:oid], X_4:bat[:any_1], X_5:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:sht], X_1:bat[:lng], X_2:bat[:lng], X_3:bat[:oid], X_4:bat[:any_1], X_5:bit):bat[:sht];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit, X_5:int):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit, X_5:int):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit, X_5:int):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit, X_5:int):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit, X_5:int):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit, X_5:int):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit, X_6:int):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit, X_6:int):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit, X_6:int):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit, X_6:int):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit, X_6:int):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit, X_6:int):bat[:dbl];
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit) (X_5:bat[:dbl], X_6:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit) (X_5:bat[:dbl], X_6:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit) (X_5:bat[:dbl], X_6:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit) (X_5:bat[:dbl], X_6:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit) (X_5:bat[:dbl], X_6:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit) (X_5:bat[:dbl], X_6:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit) (X_6:bat[:dbl], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit) (X_6:bat[:dbl], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit) (X_6:bat[:dbl], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit) (X_6:bat[:dbl], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit) (X_6:bat[:dbl], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit) (X_6:bat[:dbl], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit, X_5:int) (X_6:bat[:dbl], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit, X_5:int) (X_6:bat[:dbl], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit, X_5:int) (X_6:bat[:dbl], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit, X_5:int) (X_6:bat[:dbl], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit, X_5:int) (X_6:bat[:dbl], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit, X_5:int) (X_6:bat[:dbl], X_7:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit, X_6:int) (X_7:bat[:dbl], X_8:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit, X_6:int) (X_7:bat[:dbl], X_8:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit, X_6:int) (X_7:bat[:dbl], X_8:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit, X_6:int) (X_7:bat[:dbl], X_8:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit, X_6:int) (X_7:bat[:dbl], X_8:bat[:lng]);
COMMENT "";

COMMAND aggr.subavg(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit, X_6:int) (X_7:bat[:dbl], X_8:bat[:lng]);
COMMENT "";

COMMAND aggr.subcorr(X_0:bat[:bte], X_1:bat[:bte], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcorr(X_0:bat[:dbl], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcorr(X_0:bat[:flt], X_1:bat[:flt], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcorr(X_0:bat[:int], X_1:bat[:int], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcorr(X_0:bat[:lng], X_1:bat[:lng], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcorr(X_0:bat[:sht], X_1:bat[:sht], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcorr(X_0:bat[:bte], X_1:bat[:bte], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcorr(X_0:bat[:dbl], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcorr(X_0:bat[:flt], X_1:bat[:flt], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcorr(X_0:bat[:int], X_1:bat[:int], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcorr(X_0:bat[:lng], X_1:bat[:lng], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcorr(X_0:bat[:sht], X_1:bat[:sht], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcount(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subcount(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bat[:oid], X_4:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subcovariance(X_0:bat[:bte], X_1:bat[:bte], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariance(X_0:bat[:dbl], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariance(X_0:bat[:flt], X_1:bat[:flt], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariance(X_0:bat[:int], X_1:bat[:int], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariance(X_0:bat[:lng], X_1:bat[:lng], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariance(X_0:bat[:sht], X_1:bat[:sht], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariance(X_0:bat[:bte], X_1:bat[:bte], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariance(X_0:bat[:dbl], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariance(X_0:bat[:flt], X_1:bat[:flt], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariance(X_0:bat[:int], X_1:bat[:int], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariance(X_0:bat[:lng], X_1:bat[:lng], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariance(X_0:bat[:sht], X_1:bat[:sht], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariancep(X_0:bat[:bte], X_1:bat[:bte], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariancep(X_0:bat[:dbl], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariancep(X_0:bat[:flt], X_1:bat[:flt], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariancep(X_0:bat[:int], X_1:bat[:int], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariancep(X_0:bat[:lng], X_1:bat[:lng], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariancep(X_0:bat[:sht], X_1:bat[:sht], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariancep(X_0:bat[:bte], X_1:bat[:bte], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariancep(X_0:bat[:dbl], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariancep(X_0:bat[:flt], X_1:bat[:flt], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariancep(X_0:bat[:int], X_1:bat[:int], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariancep(X_0:bat[:lng], X_1:bat[:lng], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subcovariancep(X_0:bat[:sht], X_1:bat[:sht], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:dbl];
COMMENT "";

PATTERN aggr.subexist(X_0:bat[:any], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:oid], X_4:bit):bat[:bit];
COMMENT "";

PATTERN aggr.subexist(X_0:bat[:any], X_1:bat[:oid], X_2:bat[:oid], X_3:bit):bat[:bit];
COMMENT "";

COMMAND aggr.subjsonaggr(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit):bat[:str];
COMMENT "";

COMMAND aggr.subjsonaggr(X_0:bat[:str], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit):bat[:str];
COMMENT "";

COMMAND aggr.subjsonaggr(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit):bat[:str];
COMMENT "";

COMMAND aggr.subjsonaggr(X_0:bat[:str], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit):bat[:str];
COMMENT "";

COMMAND aggr.submax(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bit):bat[:oid];
COMMENT "";

COMMAND aggr.submax(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bit):bat[:any_1];
COMMENT "";

COMMAND aggr.submax(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bat[:oid], X_4:bit):bat[:oid];
COMMENT "";

COMMAND aggr.submax(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bat[:oid], X_4:bit):bat[:any_1];
COMMENT "";

COMMAND aggr.submedian(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bit):bat[:any_1];
COMMENT "";

COMMAND aggr.submedian(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bat[:oid], X_4:bit):bat[:any_1];
COMMENT "";

COMMAND aggr.submedian_avg(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.submedian_avg(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bat[:oid], X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.submin(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bit):bat[:oid];
COMMENT "";

COMMAND aggr.submin(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bit):bat[:any_1];
COMMENT "";

COMMAND aggr.submin(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bat[:oid], X_4:bit):bat[:oid];
COMMENT "";

COMMAND aggr.submin(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:any_2], X_3:bat[:oid], X_4:bit):bat[:any_1];
COMMENT "";

PATTERN aggr.subnot_exist(X_0:bat[:any], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:oid], X_4:bit):bat[:bit];
COMMENT "";

PATTERN aggr.subnot_exist(X_0:bat[:any], X_1:bat[:oid], X_2:bat[:oid], X_3:bit):bat[:bit];
COMMENT "";

PATTERN aggr.subnull(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bat[:oid], X_4:bit):bat[:bit];
COMMENT "";

PATTERN aggr.subnull(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bit):bat[:bit];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:bte];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:flt];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:int];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:int];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:int];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:sht];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:sht];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:bte];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:flt];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:int];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:int];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:int];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:sht];
COMMENT "";

COMMAND aggr.subprod(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:sht];
COMMENT "";

COMMAND aggr.subquantile(X_0:bat[:any_1], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_2], X_4:bit):bat[:any_1];
COMMENT "";

COMMAND aggr.subquantile(X_0:bat[:any_1], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_2], X_4:bat[:oid], X_5:bit):bat[:any_1];
COMMENT "";

COMMAND aggr.subquantile_avg(X_0:bat[:any_1], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_2], X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subquantile_avg(X_0:bat[:any_1], X_1:bat[:dbl], X_2:bat[:oid], X_3:bat[:any_2], X_4:bat[:oid], X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdev(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdev(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdev(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdev(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdev(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdev(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdev(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdev(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdev(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdev(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdev(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdev(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdevp(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdevp(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdevp(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdevp(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdevp(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdevp(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdevp(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdevp(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdevp(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdevp(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdevp(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substdevp(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.substr_group_concat(X_0:bat[:str], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:str];
COMMENT "";

COMMAND aggr.substr_group_concat(X_0:bat[:str], X_1:bat[:str], X_2:bat[:oid], X_3:bat[:any_1], X_4:bit, X_5:bit):bat[:str];
COMMENT "";

COMMAND aggr.substr_group_concat(X_0:bat[:str], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:str];
COMMENT "";

COMMAND aggr.substr_group_concat(X_0:bat[:str], X_1:bat[:str], X_2:bat[:oid], X_3:bat[:any_1], X_4:bat[:oid], X_5:bit, X_6:bit):bat[:str];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:bte];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:flt];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:int];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:int];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:int];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:sht];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:sht];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:bte];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:flt];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:int];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:int];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:int];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:lng];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:sht];
COMMENT "";

COMMAND aggr.subsum(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:sht];
COMMENT "";

COMMAND aggr.subvariance(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariance(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariance(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariance(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariance(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariance(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariance(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariance(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariance(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariance(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariance(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariance(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariancep(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariancep(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariancep(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariancep(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariancep(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariancep(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bit, X_4:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariancep(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariancep(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariancep(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariancep(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariancep(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subvariancep(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1], X_3:bat[:oid], X_4:bit, X_5:bit):bat[:dbl];
COMMENT "";

COMMAND aggr.subzero_or_one(X_0:bat[:any_1], X_1:bat[:oid], X_2:bat[:oid], X_3:bit):bat[:any_1];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:bte];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1]):bat[:flt];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:int];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1]):bat[:int];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]):bat[:int];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:lng];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1]):bat[:lng];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1]):bat[:lng];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]):bat[:lng];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:sht];
COMMENT "";

COMMAND aggr.sum(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]):bat[:sht];
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte]):bte;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte]):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte]):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte]):sht;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bat[:oid]):bte;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bat[:oid]):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bat[:oid]):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bat[:oid]):sht;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bat[:oid], X_2:bit):bte;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bat[:oid], X_2:bit):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bat[:oid], X_2:bit):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bat[:oid], X_2:bit):sht;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bit):bte;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bit):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bit):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:bte], X_1:bit):sht;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:dbl]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:dbl], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:dbl], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:dbl], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:flt]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:flt]):flt;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:flt], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:flt], X_1:bat[:oid]):flt;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:flt], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:flt], X_1:bat[:oid], X_2:bit):flt;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:flt], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:flt], X_1:bit):flt;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:int]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:int]):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:int]):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:int], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:int], X_1:bat[:oid]):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:int], X_1:bat[:oid]):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:int], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:int], X_1:bat[:oid], X_2:bit):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:int], X_1:bat[:oid], X_2:bit):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:int], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:int], X_1:bit):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:int], X_1:bit):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:lng]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:lng]):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:lng], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:lng], X_1:bat[:oid]):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:lng], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:lng], X_1:bat[:oid], X_2:bit):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:lng], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:lng], X_1:bit):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk]):bte;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk]):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk]):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk]):sht;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bat[:oid]):bte;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bat[:oid]):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bat[:oid]):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bat[:oid]):sht;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bat[:oid], X_2:bit):bte;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bat[:oid], X_2:bit):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bat[:oid], X_2:bit):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bat[:oid], X_2:bit):sht;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bit):bte;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bit):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bit):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:msk], X_1:bit):sht;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht]):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht]):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht]):sht;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht], X_1:bat[:oid]):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht], X_1:bat[:oid]):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht], X_1:bat[:oid]):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht], X_1:bat[:oid]):sht;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht], X_1:bat[:oid], X_2:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht], X_1:bat[:oid], X_2:bit):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht], X_1:bat[:oid], X_2:bit):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht], X_1:bat[:oid], X_2:bit):sht;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht], X_1:bit):dbl;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht], X_1:bit):int;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht], X_1:bit):lng;
COMMENT "";

PATTERN aggr.sum(X_0:bat[:sht], X_1:bit):sht;
COMMENT "";

COMMAND aggr.variance(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.variance(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.variance(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.variance(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.variance(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.variance(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.variance(X_0:bat[:any_2]):dbl;
COMMENT "";

COMMAND aggr.variancep(X_0:bat[:bte], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.variancep(X_0:bat[:dbl], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.variancep(X_0:bat[:flt], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.variancep(X_0:bat[:int], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.variancep(X_0:bat[:lng], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.variancep(X_0:bat[:sht], X_1:bat[:oid], X_2:bat[:any_1]):bat[:dbl];
COMMENT "";

COMMAND aggr.variancep(X_0:bat[:any_2]):dbl;
COMMENT "";

COMMAND aggr.zero_or_one(X_0:bat[:any_1]):any_1;
COMMENT "";

COMMAND aggr.zero_or_one(X_0:bat[:any_1], X_1:bit):any_1;
COMMENT "";

COMMAND aggr.zero_or_one(X_0:bat[:any_1], X_1:bat[:bit]):any_1;
COMMENT "";

Bataggr module

MODULE bataggr;

PATTERN bataggr.allnotequal(X_0:bat[:any_1], X_1:bat[:any_1]):bit;
COMMENT "";

PATTERN bataggr.anyequal(X_0:bat[:any_1], X_1:bat[:any_1]):bat[:bit];
COMMENT "";

PATTERN bataggr.exist(X_0:any_1):bat[:bit];
COMMENT "";

PATTERN bataggr.exist(X_0:bat[:any_1]):bat[:bit];
COMMENT "";

PATTERN bataggr.exist(X_0:bat[:any_1]):bit;
COMMENT "";

PATTERN bataggr.not_exist(X_0:any_1):bat[:bit];
COMMENT "";

PATTERN bataggr.not_exist(X_0:bat[:any_1]):bat[:bit];
COMMENT "";

PATTERN bataggr.not_exist(X_0:bat[:any_1]):bit;
COMMENT "";