As I said before, I think using UNION for this is a restrictive way to proceed. However, if that's the way you intend to proceed you need to develop the individual queries first independently. When they are all working as expected, and in the same way as each other, you can then join them in a UNION query.
Comment