Sergio Leone
The episode is a tribute to Western films, specifically the "Dollars Trilogy" by Sergio Leone.