Maybe make a `win_greenplum` function to avoid some of this duplication?