Add support for AN in filtering expressions