private PlanBuilder planQuantifiedComparison(
      PlanBuilder subPlan,
      ComparisonExpression.Operator operator,
      QuantifiedComparisonExpression.Quantifier quantifier,
      Expression value,
      Expression subquery,
      Symbol assignment,
      Analysis.PredicateCoercions predicateCoercions) {
    PlanAndMappings subqueryPlan =
        planSubquery(subquery, predicateCoercions.getSubqueryCoercion(), subPlan.getTranslations());
    PlanAndMappings valuePlan =
        planValue(
            subPlan,
            value,
            predicateCoercions.getValueType(),
            predicateCoercions.getValueCoercion());

    return new PlanBuilder(
        valuePlan.getSubPlan().getTranslations(),
        new ApplyNode(
            idAllocator.genPlanNodeId(),
            valuePlan.getSubPlan().getRoot(),
            subqueryPlan.getSubPlan().getRoot(),
            ImmutableMap.of(
                assignment,
                new ApplyNode.QuantifiedComparison(
                    mapOperator(operator),
                    mapQuantifier(quantifier),
                    valuePlan.get(value),
                    subqueryPlan.get(subquery))),
            valuePlan.getSubPlan().getRoot().getOutputSymbols(),
            subquery));
  }
Adds a negation of the given input and remaps the provided expression to the negated expression
iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/SubqueryPlanner.java