first native implementation of GROUP BY (MARMOTTA-495)