Query inside of a repeated element

Hello everyone!
How can I make a query inside of a repeated element? I am repeating a stack base in a page query. I want to add inside the initial stack a grid that repeats elements based on the current item.

For example, the initial stack is repeated based on a page query of the food category. So it gives me three stacks. Inside every stack, I want to display the information of every category plate. So I tried to make a query for the collection of the second repeat filtering all the plates with the current category, but I don’t have the option of the current category.

I know is a little difficult to explain so I think this image is easier to understand

this thread might be helpful for you