[SQ] Add support for AVG window function