のが分かった

realized that

→ の
phrase Rare #30,362
realized that Used to say that someone realized, figured out, or understood that something was the case. The の nominalizes the preceding clause, and が分かった means “became understood” or “was realized.”
JA: 財布を忘れたのが分かった。
EN: I realized that I had forgotten my wallet.

私はその川が汚れているのが分かった

I found that the river was polluted.

一目見て彼には少年が空腹のが分かった

At a glance, he could tell that the boy was hungry.

お母さんがとても痛がっているのが分かった

I could tell that Mom was in a lot of pain.

どうしてトム酔っ払ってるのが分かった

How did you know Tom was drunk?

彼がを見つめているのが分かった

I could tell he was staring at me.

彼らは着いてみると街の人とは簡単に友達になれるのが分かった

Once they arrived, they found it easy to make friends with people in the city.