Advanced Table Functions in Greenplum