Derivation of sum rules for quark and baryon fields