phosphate-containing compound metabolic process [GO_0006796] - Virtual Fly Brain