In this episode, Marge leads churchgoers to a casino to win enough money to rebuild the church after Chief Wiggum destroys it when using a jet pack.
Because Reverend Lovejoy did not get an insurance plan that covers "acts of God" the company gleefully denies his claim and the building is left unusable.
The congregation, led by Marge, must resort to gambling and counting cards, taught by Apu, in order to collect money to pay for the repairs.
The casino then holds Homer hostage in exchange for the return of the money won, but the church already gave it to the contractor, who refuses to give it back.
Having data that shows the prayer is a "disturbance" that is hurting business, the manager releases Homer and allows Marge to keep the money won for the church in exchange for her group never returning.
Homer then demands that the casino stop treating people who count cards as cheaters when all they are doing is playing by the rules, so a robot picks him up and throws him into the street.
Chief Wiggum's song "Sky Police" is a parody of "Baby Face" as sung by Julie Andrews in the musical Thoroughly Modern Millie.