added named query and relation to statistics