Write a question about the following article: A 1611 uprising in Moscow against the Polish garrison:564 marked the end of Russian tolerance for the Commonwealth intervention. The citizens of Moscow had voluntarily participated in the coup in 1606, killing 500 Polish soldiers. Now, ruled by the Poles, they once again revolted. The Moscow burghers took over the munition store, but Polish troops defeated the first wave of attackers, and the fighting resulted in a large fire that consumed part of Moscow.:564 From July onward the situation of the Commonwealth forces became grave, as the uprising turned into a siege of the Polish-held Kremlin. Reportedly, the Poles had imprisoned the leader of the Orthodox Church, Patriarch Hermogenes. When the Russians attacked Moscow, the Poles ordered him, as the man with the most authority with the Russians at the time, to sign a statement to call off the attack. Hermogenes refused and was starved to death. The Polish Kremlin garrison then found itself besieged.:564

Question about the article:
Which happened first, the Poles defeating the first wave or the imprisonment of Patriarch Hermogenes?