(that way we can just have one of these for all these functions that use the WITHIN GROUP... syntax)