I don't know if this answers your problem, but you can base queries on other queries, not just on tables.
ie I think that what you are trying to accomplish, as detailed in your data flow diagram, can be done in one query; which may require sub-queries.
Therefore, when handling the user request...