你汉语学了几年了?

How many years have you studied Chinese for?

How many years have you studied Mandarin for?

Source: Tatoeba

Sentence Composition