add statistics query