public function getQueryNs($ns, $key, $default)
    {
        if ($this->hasQueryNs($ns, $key)) {
            $data = $this->getQuery($ns);

            if (isset($data[$key])) {
                return $data[$key];
            }
        }

        return $default;
    }