protected function guessQuery(array $query): Query
    {
        $server = $query['server'] ?? $this->getServer();
        $sql = $query['query'];
        $bindings = $query['bindings'] ?? [];
        $tables = $query['files'] ?? [];
        $settings = $query['settings'] ?? [];
        
        return $this->createQuery($server, $sql, $bindings, $tables, $settings);
    }