I understand what you are saying that if everything is merged there should not be a problem.
However the problem is a bit more complicated and I tried with a simple question first
So there are actually 3 queries.
And plant is not that straight forward.
the plant from q1 had 2 characters in front so I made a variable that took last 4 characters and then it is the same as plant from q3.
And Special Procurement Type is only in q3.
So based on the material and plant from q1 (that match with the material and plant from q3) I want to get the Special Procurement Type.