support for stats added to Query object