phosphate-containing compound metabolic process (12)