handle function calls as raw sql in GROUP