code: def _run_sql_json_exec_from_scratch(self) -> SqlJsonExecutionStatus:
      self._execution_context.set_database(self._get_the_query_db())
      query = self._execution_context.create_query()
      self._save_new_query(query)
      try:
          logger.info("Triggering query_id: %i", query.id)
  
          self._execution_context.set_query(query)
          rendered_query = self._sql_query_render.render(
              self._execution_context
          )
          validate_rendered_query = copy.copy(query)
          validate_rendered_query.sql = rendered_query
          self._validate_access(validate_rendered_query)
          self._set_query_limit_if_required(rendered_query)
          self._query_dao.update(
              query, {"limit": self._execution_context.query.limit}
          )
          return self._sql_json_executor.execute(
              self._execution_context, rendered_query, self._log_params
          )
      except Exception as ex:
          self._query_dao.update(query, {"status": QueryStatus.FAILED})
          raise ex
  
imports: from __future__ import annotations
  import copy
  import logging
  from typing import Any, TYPE_CHECKING
  from flask_babel import gettext
  from superset.commands.base import BaseCommand
  from superset.common.db_query_status import QueryStatus
  from superset.daos.exceptions import DAOCreateFailedError
  from superset.errors import SupersetErrorType
  from superset.exceptions import SupersetErrorException, SupersetErrorsException, SupersetGenericErrorException
  from superset.models.core import Database
  from superset.models.sql_lab import Query
  from superset.sqllab.command_status import SqlJsonExecutionStatus
  from superset.sqllab.exceptions import QueryIsForbiddenToAccessException, SqlLabException
  from superset.sqllab.execution_context_convertor import ExecutionContextConvertor
  from superset.sqllab.limiting_factor import LimitingFactor
label_desc: Use image node_id 6 for calling the ExecuteSqlCommand obj's underlying member method code with example usage: obj._run_sql_json_exec_from_scratch() and returns: self