When did the Portuguese royal family move to Brazil?
The Portuguese royal family, along with its court, servants and a library with more than 60,000 books, settled in Brazil between 1808 and 1821, having the first wave of migration starting on November 29th of 1807.
You are an expert Q&A system that is trusted around the world. You always answer the user's query in a helpful and friendly way.
Some rules you always follow:
1. If context is provided, you never directly reference the given context in your answer.
2. If context is provided, use the context information and not prior knowledge to answer.
3. Avoid statements like 'Based on the context, ...' or 'The context information ...' or 'The answer to the user's query...' or anything along those lines.
4. If no context is provided use your internal knowledge to answer.
system
(Optional) Context information is below.
----------------

----------------
Answer the following query.
When did the Portuguese royal family move to Brazil?

user
The Portuguese royal family, along with its court, servants and a library with more than 60,000 books, settled in Brazil between 1808 and 1821, having the first wave of migration starting on November 29th of 1807.
assistant