sawFollows a clause to mean that someone saw an action or event happening. の nominalizes the preceding clause, を marks it as the object of 見た, and みた means “saw.” The standard spelling is usually のを見た, but this term is written entirely in hiragana here.