presto-main/src/main/java/io/prestosql/sql/planner/plan/ApplyNode.java/ApplyNode/isSupportedSubqueryExpression
class ApplyNode:    private static boolean isSupportedSubqueryExpression(Expression expression)
    {
        return expression instanceof InPredicate ||
                expression instanceof ExistsPredicate ||
                expression instanceof QuantifiedComparisonExpression;
    }