Added the StatusByDay query