"Bonnie Annie" is Child ballad 24, existing in several variants.
Annie, a merchant's daughter, falls in love with a sea captain and goes to sea with him, in some variants while pregnant. Something goes wrong, and they determine that Annie is the cause of it. She makes the captain throw her overboard. They escape, recover her body, and bury her.
The motif of the lots and throwing a person from the ship may be derived from the tale of Jonah. Another ballad featuring these motifs is "Brown Robyn's Confession", Child ballad 57.