LAST_K_EACH([MAX VALUES, ]2, GROUP, VALUE)
MAX VALUES:
The maximum VALUE
that is allowed.
The maximum number of entries that can be counted (default: 2,147,483,647) ‌
MAX VALUES
is optional. If it is omitted there is, in effect, no limit.
K:
A number (of last entries)
GROUP:
A group of any type.
VALUE:
A value of any type.VALUE
for each type of group.