Use interactions inside a query loop

I have a similar issue.