Complex sentence: It fought against German troops near Riga (Kemeri), taking part in the battles of Mittaw (December 1916) and Riga (Summer 1917).
Split into simpler sentences: It fought against German troops near Riga (the town of Kemeri). The squad took part in the battles of Mittaw (December, 1916) and Riga (Summer 1917).