A global study of type B quasi-periodic oscillation in black hole X-ray binaries