public function retrieve_query(string $hash): ?array
  {
    if ( isset($this->queries[$hash]) ){
      if ( \is_string($this->queries[$hash]) ){
        $hash = $this->queries[$hash];
      }
      return $this->queries[$hash];
    }
    return null;
  }