presto-mongodb/src/main/java/io/prestosql/plugin/mongodb/ObjectIdFunctions.java/ObjectIdFunctions/between
class ObjectIdFunctions:    @ScalarOperator(BETWEEN)
    @SqlType(StandardTypes.BOOLEAN)
    public static boolean between(@SqlType("ObjectId") Slice value, @SqlType("ObjectId") Slice min, @SqlType("ObjectId") Slice max)
    {
        return compareTo(value, min) >= 0 && compareTo(value, max) <= 0;
    }