private String resolveOperation(String field) {
        if (field.endsWith("!"))
            return "!=";
        if (field.endsWith(">"))
            return ">";
        if (field.endsWith("<"))
            return "<";
        if (field.endsWith("%"))
            return " LIKE ";
        return "=";
    }