def _resolve_from_template(self, template, query_context):
        # todo: support other types and options
        assert template.type <= 'form'
        startdate, enddate = get_daterange_start_end_dates(template.time_range)
        xmlns = Form.get_form(template.source_id).xmlns
        return FormES().user_id(query_context.user._id).xmlns([xmlns]).submitted(
            gte=startdate,
            lt=enddate,
        ).size(0).count()
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/performance_sms/query_engine.py/QueryEngine._resolve_from_template/operator `==` -> `<=`