Question: Which one is based on Hernani, Der Schauspieldirektor or Ernani?
Sentence (from "Nun komm, der Heiden Heiland"): Bach used the hymn in his chorale cantata "Nun komm, der Heiden Heiland", BWV 62 (1724) and in the opening chorale fantasia of his earlier cantata "Nun komm, der Heiden Heiland", BWV 61 , BWV 61 (1714).
Relevant evidence: No