Ability to connect queries with query ID

Hi bricks team,

When we want to connect an interaction to a query, the query option only recognizes queries on the current page. For example, if we set an interaction in a popup to appear on ajax start/end, it will not recognize the query because the query loop is on another page.

I understand that we need to create the interaction on the same page to display the popup. But in general, it would be nice if the query options could be connected to each other using an ID, regardless of whether the query loop is on that page or not. This would be very useful in various scenarios.