Task: Question Understanding
Input (English): The borders of which European country, that were set under the reign of Afonso III (1248 to 1279), are the same today?
Output (English): afonso iii of portugal