Germans love the present perfect tense. In English the past tense is used in your sentence: How long did you live there before coming here? This is because the person you are talking to no longer lives "there".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.