Understanding Window Functions in Greenplum