Original: For the ceremony, composer Henry Purcell wrote Music for the Funeral of Queen Mary.
Simplified: When she died, Henry Purcell was called to write her funeral music, titled Music for the Funeral of Queen Mary.