def _retrieve_ops2_tree(splits: list):
    """
        Retrieves the ops tree for second level operations.
        :return:
        """
    first_level_operators = ['>', '<', '=', '!=', '>=', '<=', 'eq', '!eq',
        'in', '%', '!%']
    if len(splits) < 3:
        raise Exception('Invalid syntax on {}'.format(' '.join(splits)))
    operator = splits[1]
    if operator not in first_level_operators:
        raise Exception('Invalid operator on {}'.format(' '.join(splits)))
    previous_oper = splits[0:1]
    next_oper = splits[2:]
    return [operator, previous_oper, next_oper]
