The Doctor was godsmacked by something Spock had said. "Left here? How?"
"I am the Doctor. Last child of Gallifrey. My people have harnessed singularities. I have traveled in space and time. I am stuck." He offered his hand.
"I know what rematerialization is Mr. Spock. To one extent or another we all popped into the City. My ship popped in. Folded time space to be more scientifically accurate."
The Doctor mused. " The City, and the intelligence behind it... Do not have to be mutually exclusive. Wouldn't a technology this advanced have sentience?"
"Logic can fail you Spock, sometimes things merely are because they are."