From: agrarian on
Thanks for helping me take the final step toward the solution! It looks so
easy.

All I had to do was delete the Order By lines in the subqueries and add an
Order By at the very end, and now it works just fine!

Thanks again for your help!