Add QueriedGraphStatistics that collect statistics using core API at runtime