Question: Which of these two act operas, Lucrezia Borgia or Il pirata, was based on a three-act melodrame? 

Context articles: Lucrezia Borgia (1912 film)
Lucrezia Borgia (1940 film)
Il pirata
Lucrezia Borgia (play)
Giovanni Borgia (Infans Romanus)
The Secret Nights of Lucrezia Borgia
Lucrezia Borgia (opera)
Lucrezia Borgia (1947 film)
Lucrezia Borgia (1922 film)
Pier Luigi de Borgia, 1st duke of Gandía

Lucrezia Borgia is a 1912 Italian silent historical film directed by Gerolamo Lo Savio and starring Francesca Bertini in the title role of Lucrezia Borgia.
Lucrezia Borgia is a 1940 Italian historical film directed by Hans Hinrich and starring Isa Pola, Friedrich Benfer and Carlo Ninchi.
 The film portrays the life of Lucrezia Borgia (1480-1519), one of a number of Italian films of the era set during the Renaissance.
 It was made at the Scalera Studios in Rome.
Il pirata ("The Pirate") is an opera in two acts by Vincenzo Bellini to an Italian libretto by Felice Romani which was based on a three-act mélodrame from 1826, "Bertram, ou le Pirate" ("Bertram, or The Pirate") by Charles Nodier and "Raimonde" (actually Isidore Justin Séverin Taylor).
 However, this play was itself based upon a French translation of the "five-act verse tragedy" "Bertram, or The Castle of St Aldobrando" by Charles Maturin which appeared in London in 1816.
Lucrezia Borgia (French: "Lucrèce Borgia" ) is an 1833 play by the French writer Victor Hugo.
 It is a historical work portraying the Renaissance-era Italian aristocrat Lucrezia Borgia.
 The play (along with "Angelo, Tyrant of Padua") is believed to have been a major influence on Oscar Wilde's "The Duchess of Padua" (1891).
Giovanni Borgia (March 1498 – 1548), known as the Infans Romanus ("the Roman child"), was born into the House of Borgia in secret and is of unclear parentage.
 Speculations of the child's parentage involve either Lucrezia Borgia with her alleged lover, Perotto Calderon or Cesare Borgia, or Pope Alexander VI as his father.
 Cesare Borgia's biographer Rafael Sabatini says that the truth is fairly clear: Alexander fathered the child with an unknown Roman woman.
The Secret Nights of Lucrezia Borgia (Italian:Le notti segrete di Lucrezia Borgia, Spanish:Las noches secretas de Lucrecia Borgia) is a 1982 Italian-Spanish historical film directed by Roberto Bianchi Montero and starring Sirpa Lane, George Hilton and Willey Reynolds.
Lucrezia Borgia is a melodramatic opera in a prologue and two acts by Gaetano Donizetti.
 Felice Romani wrote the Italian libretto after the play "Lucrezia Borgia" by Victor Hugo, in its turn after the legend of Lucrezia Borgia.
 "Lucrezia Borgia" was first performed on 26 December 1833 at La Scala, Milan.
Lucrezia Borgia (Spanish:Lucrecia Borgia) is a 1947 Argentine historical film directed by Luis Bayón Herrera and starring Olinda Bozán, Héctor Quintanilla and Gogó Andreu.
 The film portrays the life of Lucrezia Borgia (1480-1519).
Lucrezia Borgia is a 1922 German silent historical film directed by Richard Oswald and starring Conrad Veidt, Liane Haid and Albert Bassermann.
 It was based on a novel by Harry Sheff, and portrayed the life of the Renaissance Italian aristocrat Lucrezia Borgia (1480-1519).
 Botho Hoefer and Robert Neppach worked as the film's art directors, designing the period sets needed.
Pier Luigi de Borgia, 1st duke of Gandía (Spanish: "Pedro Luis de Borja" , Latin: "Petrus Ludovicus de Boria" ) (1458 or 1460–1488 or 1491) was a Valencian noble.
 Pier Luigi was the son of Cardinal Rodrigo Borgia (later Pope Alexander VI), and half-brother of Cesare Borgia, Gioffre Borgia, Giovanni Borgia and Lucrezia Borgia.