Window function is not allowed as arguments to window functions according to the standard.
Attach a file by drag & drop or click to upload