"Marge in Chains" is the 21st episode of "The Simpsons"<nowiki>'</nowiki> fourth season.
 It originally aired on the Fox network in the United States on May 6, 1993.
 In the episode, Marge is arrested for shoplifting after forgetting to pay for an item at the Kwik-E-Mart.
 The family hires attorney Lionel Hutz to defend her at trial, but she is found guilty and sentenced to 30 days imprisonment.
 Homer, and the rest of the family have trouble coping without Marge.
 The townspeople start a riot when an annual bake sale missing Marge fails to raise enough money for a statue of Abraham Lincoln and they have to settle for a statue of Jimmy Carter.
 Mayor Quimby has Marge released from jail in order to save his career and quell the riot.
"The War of the Simpsons" is the twentieth episode of "The Simpsons"<nowiki>'</nowiki> second season.
 It originally aired on the Fox network in the United States on May 2, 1991.
 In the episode, Homer gets drunk at a party and embarrasses his wife Marge, so she decides to sign them up for a marriage counseling retreat.
 Homer finds out that the retreat will be held near a lake and packs his fishing equipment, despite Marge telling him that all they will be doing is resolving their differences.
 At the lake the next morning, Homer tries to sneak away to go fishing, but Marge catches him and he takes a walk instead.
 On the dock, Homer grabs hold of a fishing pole only to be yanked onto a small rowboat by the fish.
 When he notices an upset Marge is looking at him, he immediately lets the fish go to prove his love for her.
"Tennis the Menace" is the twelfth episode of the twelfth season of the American animated sitcom "The Simpsons".
 It originally aired on the Fox network in the United States on February 11, 2001.
 In the episode, the Simpsons build a tennis court in their backyard and are ridiculed by the entire town because of Homer's inferior tennis ability.
 Homer therefore tries to please Marge by entering the two into a tournament, but they quickly turn into rivals when Marge replaces Homer with Bart as her partner.
"In Marge We Trust" is the twenty-second episode of "The Simpsons"<nowiki>'</nowiki> eighth season.
 It originally aired on the Fox network in the United States on April 27, 1997.
 It was written by Donick Cary and directed by Steven Dean Moore.
 The episode guest stars Sab Shimono as Mr. Sparkle, Gedde Watanabe as the factory worker, Denice Kumagai and Karen Maruyama as dancers, and Frank Welker as the baboons.
 In the episode, Marge replaces Reverend Lovejoy as the town's moral adviser while Homer explores the mystery of why his face appears on a Japanese-language detergent box.
"The Way We Was" is the twelfth episode of "The Simpsons"<nowiki>'</nowiki> second season.
 It originally aired on the Fox network in the United States on January 31, 1991.
 In the episode, Marge tells the story of how she and Homer first met and fell in love.
 Flashing back to 1974, we see how Homer falls in love with Marge in high school and tries to get close to her by enlisting her as his French tutor.
 After several hours of verb conjugation, Marge falls for Homer too, only to become enraged when he admits that he is not a French student.
 Marge rejects Homer's invitation to the prom and goes with Artie Ziff.
 Artie turns out to be a terrible date and Marge realizes that it is Homer she really wants.
Reverend Timothy "Tim" Lovejoy is a recurring character in the animated television series "The Simpsons".
 He is voiced by Harry Shearer, and first appeared in the episode "The Telltale Head".
 Lovejoy is the minister at The First Church of Springfield—the Protestant church in Springfield.
 Initially kind-hearted and ambitious, Lovejoy has become apathetic towards others because of Ned Flanders's constant asinine scrupulosity.
"Postcards from the Wedge" is the fourteenth episode of "The Simpsons"<nowiki>'</nowiki> twenty-first season.
 It originally aired on the Fox network in the United States on March 14, 2010.
 In the episode, Homer and Marge once again try to discipline Bart after Mrs. Krabappel tells them that Bart has not been doing his homework, but Bart has a plan to manipulate Homer's strictness and Marge's sympathetic ear, which backfires when Homer and Marge see through the plan and decide to ignore Bart.
 These themes had been seeded in the previous season (e.g. "Double, Double, Boy in Trouble", and "The Good, the Sad, and the Drugly"), would culminate in the show's first ever true grounding, and the first to stand for the rest of the episode.
 It would also be the last episode to feature a grounding, until "The Marge-ian Chronicles" in Season 27, six years later (also written by Brian Kelley).
"There's Something About Marrying" is the tenth episode of the sixteenth season of "The Simpsons".
 In the episode, Springfield legalizes same-sex marriage to increase tourism.
 After becoming a minister, Homer starts to wed people to make money.
 Meanwhile, Marge's sister Patty comes out as a lesbian and reveals that she is going to marry a woman named Veronica.
 Marge originally disapproves of this, making Patty frustrated.
 When Marge accidentally discovers that Veronica is a man cross-dressed as a woman, she decides to keep quiet about it knowing that Patty will be marrying a man.
 However, at the ceremony, she is so moved by Patty's vow that she is forced to reveal Veronica's secret.
 After the ceremony is abruptly cancelled, Marge tells Patty that she now accepts her sexuality.
"Marge on the Lam" is the sixth episode of "The Simpsons"<nowiki>'</nowiki> fifth season.
 It originally aired on the Fox network in the United States on November 4, 1993.
 When Marge invites her neighbor Ruth Powers to attend the ballet with her, the two become friends and begin to go out, making Homer jealous as he wants Marge to spend time with him.
 Ruth and Marge agree to remain friends but not go out together after a large police pursuit with Chief Wiggum.
 It was written by Bill Canterbury and directed by Mark Kirkland.
 Phil Hartman, Pamela Reed and George Fenneman guest star.
"I Don't Wanna Know Why the Caged Bird Sings" is the fourth episode of "The Simpsons"<nowiki>'</nowiki> nineteenth season.
 It first aired on the Fox network in the United States on October 14, 2007.
 For the second time in the series, Marge helps a prison assailant.
 Marge meets Dwight (Steve Buscemi), a man who attempts to rob the bank the two are in.
 Marge promises that she would visit him in prison, should he turn himself in, but too frightened to go into the prison, she breaks her promise.
 It was written by Dana Gould and directed by Bob Anderson.
 Steve Buscemi makes his second guest appearance on the show, (originally appearing as himself in "Brake My Wife, Please") though this time he voiced a character, Dwight.
 Ted Nugent has a voice cameo.
 Julia Louis-Dreyfus makes a surprise guest return as Snake's girlfriend Gloria, who originally appeared in "A Hunka Hunka Burns in Love".
 During its first airing, the episode originally garnered 8.8 million viewers, higher than the previous episode.

Question: Marge replaces Reverand Lovejoy as what in the episode In Marge We Trust?
Answer: the town's moral adviser