Complex sentence: He had written twenty-seven operas, of which only one was a comedy-- "Un giorno di regno", his second work, staged unsuccessfully in 1840.
Split into simpler sentences: He had written twenty-seven operas, of which only one, "Un giorno di regno" was a comedy. It was his second work, staged unsuccessfully in 1840.