Complex sentence: In Vienna, he agreed to enter a musical contest with Mozart for the entertainment of Holy Roman Emperor Joseph II and his guests on 24 December 1781, at the Vienese court.
Split into simpler sentences: In Vienna, he agreed to enter a musical contest with Mozart for the entertainment of Holy Roman Emperor Joseph II and his guests. On 24 December 1781, at the Vienese court.