Stanford had shares in Google because they had the rights to the PageRank algorithm.

They sold their shares in 2005

https://www.latimes.com/archives/la-xpm-2005-dec-02-fi-calbr...

Wow, and they probably thought $336m was a trully insane windfall in '05 too... Missed out on a ~4500% inflation adjusted return if they'd held.