This should help you get started.
Note that the tool is optimized for self-discovery - so I'm just documenting the most important things so you can get started. So first there are some basic videos, but everything else is described below.
Get to know this ASAP and have fun.
Note that this feature is only avalable on 2sxc-Apps. This is by design, because complex development should always happen within an App and not within normal content (that would confuse the user).
This is done in the following dialog - click on the image to learn more about the specifics.
Some special notes:
The Default query shown when you create a new query shows you what would happen if you didn't specify a query - the data-pipeline would do the following
You can now change it, remove things etc. as you want to.
Do this with drag-and drop - and read the notes in the image.
See instructions in the image
Always remember to add test-parameters (if your Query has parameters).
When your query is ready to use and you want to assign it to a template, go to the template settings and configure it as shown in the screenshot.