It gets a bit complicated if it is for a listpage.
And "stacking them one under the other" is not what I meant. That won't work. Both the queries have to be executed sequentially, so you get data from both queries.
I'd probably look at filling up a temp table, and then Display the data on a form/listpage.
Look at Trialbalances listpage for an example.