Add a QueryStats API to StatementResource