Ok, there's 2 things I think you could mean here by "called together":
- I want 5 queries to run in sequence and when the 5th one has completed I want to make the process as complete
- I want 5 queries to run at the same time in parallel and when all 5 have completed I want to mark the process as complete
My example above is the first option of these and the usual way to handle errors or to chain queries is to use the Success handler of the query to trigger the next one.
If your intent is the second option then you could do this with a javascript function that waits for each query to complete - The query.trigger() command returns a javascript Promise, and you can have multiple Promises running at the same time.
Take a look at this forum post that explains how you can async run a batch of promises (ie queries) and await for all of them to complete
Or this one that shows how to run multiple queries and return them as one result set
There's a lot of example on the forum of doing this kind of work.
There's also a great page in the docs about it