Damage stat query integration, factored out filtering