It’s pretty straightforward … You create a repeat and pick your query as an expression:
Then you click inside it to add a dynamic binding. And you select one from under the repeat (not under server connect):
And you are done: