def _parse_interval(val: str) ->str:
    """
    Parse age intervals into DDF compliant format.

    E.g. 0-4 -> [0, 4].
    """
    if val == '85+':
        return '[85, 120]'
    start, end = val.split('-')
    return f'[{start}, {end}]'
