Card #16 - sql for ECS unit