In ethers, alcohols and carbonyl compounds, the four nonbonding electrons in oxygen's outer shell form two lone pairs.
In the context of ethers, alcohols, and carbonyl compounds, the four unshared electrons in oxygen's valence shell are arranged into two distinct pairs.