Input (grade 7): Riga was made the capital of the Governorate of Riga (later: Livonia).
Output (grade 6): Riga is the capital city of the European country of Latvia. Riga is located on river Daugava near the Baltic sea.