Understanding PostgreSQL WITHIN GROUP | Tiger Data