我迷路的时候,我就在河边。

It was near the river that I lost my way.

Source: Tatoeba

Sentence Composition