added named query for statistics