And Then There Were None, a theatre play based on the mystery novel by Agatha Christie.
In the novel, ten people are enticed into coming to an island under different pretexts, e.g. offers of employment or to enjoy a late summer holiday, or to meet with old friends. All have been complicit in the death(s) of other human beings but either escaped justice or committed an act that was not subject to legal sanction.
The guests are charged with their respective "crimes" by a gramophone recording after dinner the first night and informed that they have been brought to the island to pay for their actions. They are the only people on the island, and cannot escape due to the distance from the mainland and the inclement weather, yet gradually all ten are killed in turn, in a manner that seems to parallel the ten deaths in the nursery rhyme. Nobody else seems to be left alive on the island by the apparently last death.