fix GreenPlum SQL syntax