Sequential Teamwork in Competitive Environments: Theory and Evidence from Swimming Data