[SQ] Add RANK() window function