Leetcode Window Function Syntax Sql