The compound sodium nitrate is composed of three elements: sodium (Na), nitrogen (N), and oxygen (O). The chemical formula for sodium nitrate is NaNO3, which indicates that one molecule of sodium nitrate contains one atom of sodium, one atom of nitrogen, and three atoms of oxygen.