[fix] allow grouping by non-block-join queries