Complex sentence: The cantata is based on the hymn in twelve stanzas by Paul Gerhardt (1647), which is sung to the melody of "Was mein Gott will, das g’scheh allzeit".
Split into simpler sentences: The cantata is based on the hymn in twelve stanzas by Paul Gerhardt (1647). It is sung to the melody of "Was mein Gott will, das g’scheh allzeit".