A white precipitate was formed when \( \mathrm{BaCl_2} \) was added to water extract of an inorganic salt. Further, a gas ‘\( X \)’ with characteristic odour was released when the formed white precipitate was dissolved in dilute \( \mathrm{HCl} \). The anion present in the inorganic salt is: