If you want only the subset of data entered on a specific module, you can use the ModuleDataSource.

But it's probably even easier to just create a pipeline which does that. In 2sxc 6.6.6 the pipeline designer is already included, though not advertised. It's stable, but some features are still missing - but here you could just enter the module-id containing
the subset of items you're interested in.

Otherwise you can work with data the way nokiko wrote - retrieving all data and doing with it whatever you want. Again - you would probably benefit from the new pipeline designer.

Thanks Armand, the code is now working for me. It is a bit confusing that the type of the list items differ from the "normal" list code. Can I
link a template to an item type whitout having to enter an item for the module?

I saw the pipeline designer, however I had no idea how to work with it. I guess I will have a ton of questions to ask the 2sic team in Mileau.