Queries can now be like functions. So a query can have a sub-query and run it with parameters in 2sxc 10.24.
In a Nutshell
As you'll see in the image below, the QueryRun DataSource actually runs another query and re-uses it.
Watch 2 Minutes of the Walkthrough Video
Watch this video for the first two minutes to get an understanding, or watch the full 5 minute walkthrough to learn how to use it yourself.
How to Use
Love from Switzerland,
iJungleboy