Complex sentence: When a cocktail contains only a distilled spirit and a liqueur, it is a duo and when it adds a mixer, it is a trio.
Split into simpler sentences: When a cocktail contains only a distilled spirit and a liqueur, it is a duo. When it contains a distilled spirit, a liqueur, and a mixer, it is a trio.