Beatles legend Paul McCartney persuaded makers of popular animated sitcom “The Simpsons” to make one of its characters Lisa a vegetarian in exchange for a guest spot.

The Huffington Post reported that the makers of “The Simpsons” agreed to make Lisa, the family’s iconic daughter, a vegetarian in exchange for the former Beatle’s agreement to play himself on a 1995 episode called — Lisa The Vegetarian.

Actor Hank Azaria, who has voiced several characters over the course of the show’s 27-series run, told the blog: “I can tell you, over the years, they were tempted a bunch of times to have Lisa break her vegetarian vow.”

He added that they “probably have not because they made that vow to Paul. No, you don’t break a knight’s vow. As we’ve learned from ‘Game Of Thrones’, you do that at your own risk.”

“The Birdcage” actor features in the episode alongside the rock legend, playing Apu, an Indian immigrant character who was a fixture on the programme.

“The Simpsons” currently airs in India on Star World and Star World HD.