Original: The town after which it is named—Berwick-upon-Tweed—was lost by Scotland to England in 1482.
Simplified: It is named after Berwick-upon-Tweed, but Scotland lost Berwick to England in 1482.