def _preflight_check(desired, fromrepo, **kwargs):
    if 'pkg.check_db' not in __salt__:
        return {}
    ret = {'suggest': {}, 'no_suggest': []}
    pkginfo = __salt__['pkg.check_db'](
        *list(desired.keys()), fromrepo=fromrepo, **kwargs
    )
    for pkgname in pkginfo:
        if pkginfo[pkgname]['found'] is False:
            if pkginfo[pkgname]['suggestions']:
                ret['suggest'][pkgname] = pkginfo[pkgname]['suggestions']
            else:
                ret['no_suggest'].append(pkgname)
    return ret
This should generate an expression that picks the lower value for comparison.
dataset/ETHPy150Open saltstack/salt/salt/states/pkg.py/_preflight_check--crossover with--dataset/ETHPy150Open thedrow/django-natural-query/tests/unit/test_datetime_natural_query_descriptor.py/DateTimeNaturalQueryDescriptorTestCase.test_concated_gt_operator_generates_the_right_expression_for_the_greater_than_minute_lookup