[SQ] Add MIN/MAX window functions