Complex sentence: Ecclesiastes points to the futility of seeking joy and pleasure in life, however, the Talmud comments that this is only true of joy which has not been derived from the fulfilment of a commandment.
Split into simpler sentences: Ecclesiastes points to the futility of seeking joy and pleasure in life. The Talmud comments that this is only true of joy not derived from the fulfilment of a commandment.