我先前在中國住了六個月。

I've lived in China for six months.

Source: Tatoeba

Sentence Composition