def resolve(self, param, query_context):
        if param.namespace == GLOBAL_NAMESPACE:
            template_varaible = self.get_template_variable(slug=param.variable)
            return self._resolve_from_template(template_varaible, query_context)
        try:
            return self.resolvers[param.namespace].resolve(param.variable, query_context)
        except QueryResolutionError:
            # todo: we may want to log / notify these
            return _('[unknown]')
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/performance_sms/query_engine.py/QueryEngine.resolve/original