Complex sentence: The Samhitas and Brahmanas form the Karma-Kanda segment of the Vedas and deals with ceremonial rites and rituals, whilst the Aranyakas and the Upanishads form the Gyan-Kanda segment of the Vedas and focuse on philosophy and spiritualism.
Split into simpler sentences: The Samhitas and Brahmanas forms the Karma-Kanda segment of the Vedas and deals with ceremonial rites and rituals. And the The Aranyakas and the Upanishads forms the Gyan-Kanda segment of the Vedas and focuses on philosophy and spiritualism.