text: import simplejson as json
  from flask import Blueprint, Response, jsonify, request
  from flask_cors import CORS
  from utilities.analisys_parser.analizer.interpreter import execution
  
  qry = Blueprint('qry', __name__)
  
  CORS(qry)
  
  @qry.route('/exec', methods=['POST'])
  def exec():
      """Ejecuta una consulta y devuelve el resultado"""
      # Recupera la consulta a ejecutar
      body = request.get_json()
      query = body.get('query')
      try:
          # Ejecuta el query (con el interpreter)
          print(query)
          result = execution(query)
          print("RESULT >> ", result)
          result = json.loads(json.dumps(result, ignore_nan = True))
          return {"result": result, "ok": True}, 200
      except Exception as e:
          #  Retorna un mensaje de error en el servidor
          print(e)
          return {"ok": False}, 400