Query inside of a repeated element

this thread might be helpful for you