The quasi-biennial oscillation in the Earth's atmosphere and its links to longer period variability