Leetcode Window Function Postgresql Create Table Statement