Complex sentence: Theoretically, Shudras have constituted the hereditary labouring class serving others bit in reality they have shared occupations with other varnas, including in some rare cases being warriors and kings.
Split into simpler sentences: Theoretically, Shudras have constituted the hereditary laboring class serving others. In actual history, they have shared occupations with other varnas including being warriors and kings.