how does the position of a metal in the periodic table determine whether the element exists in nature as an oxide, a carbonate, or a sulfide?

It must have something that tells you whether it is in nature or not right????