The middle qi mainly refers to the qi of the spleen and stomach, which comes from the valley of later generations and can also be regarded as the acquired qi.
Essence, Qi and Spirit are three concepts, which are interdependent and mutually utilized.
If it is understood, so much is enough. If you are particularly interested, you can borrow or buy a copy of Basic Theory of Traditional Chinese Medicine, which is relatively easy to understand.