Run the query using "Saved Query Search"
For the returned Dataset, use "Download File" activity
I did it!
For the custom attribute query I needed to know the LN10Key of the field in TC and create an entity with an attribute with the same name to input in the saved query and everything worked accordingly!
Thanks again for your help!
Luca