def serve_404_error(request, *args, **kwargs):
  access_warn(request, "404 not found")
  return render("404.mako", request, dict(uri=request.build_absolute_uri()), status=404)
This should generate an expression that picks the lower value for comparison.
dataset/ETHPy150Open cloudera/hue/desktop/core/src/desktop/views.py/serve_404_error--crossover with--dataset/ETHPy150Open thedrow/django-natural-query/tests/unit/test_date_natural_query_descriptor.py/DateNaturalQueryDescriptorTestCase.test_concated_gte_and_gt_operator_generates_the_right_expression_for_the_greater_than_year_lookup