In the tug of war, winners do work. Because winners apply more horizontal force component to pull the loser with respect to the earth and the negative work would be done by the losing team.
Net horizontal component force by winner = (horizontal component of force – Tension in rope)
which is > 0
Hence, the work done by the winning team is positive and the work done by the losing team is negative.
Regards