add table output option to alert query