Task: Question Answering
Input (English): Context: The Lithuanian Civil War of 1432-1438 was a conflict over the succession to the throne of the Grand Duchy of Lithuania, after Vytautas the Great died in 1430 without leaving an heir. The war was fought on the one side by Svitrigaila, allied with the Teutonic Knights, and on the other by Sigismund Kestutaitis, backed by the Kingdom of Poland. The war threatened to sever the Union of Krewo, the personal union between Poland and Lithuania. Svitrigaila's alliance with the Grand Master of the Teutonic Order, Paul von Rusdorf, launched the Polish-Teutonic War but failed to secure victory for Svitrigaila. When Sigismund captured power in Lithuania by staging a coup in 1432, Lithuania split into two opposing camps, and there began three years of devastating hostilities. To prevent the Knights from continuing their support of Svitrigaila, Poland backed a Hussite invasion of Prussia in 1433. The war ended in a decisive defeat for Svitrigaila and his ally, the Livonian branch of the Teutonic Knights, at the Battle of Pabaiskas in September 1435. Svitrigaila eventually surrendered in 1437; Sigismund Kestutaitis ruled Lithuania for only eight years before he was assassinated in 1440. 
 Question: Who lost the civil war?
Output (English): švitrigaila