Captain Queeg ... The novel was loosely based on the court-martial and execution of four French soldiers during World War I.