Query tag and parameters

Hey guys!

Can you tell me if it is possible to pass a tag as a parameter in a Query Tag?

image

I have a list of products in the DB and I needed to historicize the name instead of the code, to cross-reference some information.