How do you query pawns owned by other player?

I’m running an EQS query to find all actors within a location. This works great on single player. But now with multiplayer it should only query the pawns that are controlled by the other team (so it wont attack its own team).

I wrote a custom EnvQueryTest where we check tags, but this seems like a hack solution.

Is there a built-in/preferred way to run queries with replication in mind?

ie If playing multiplayer, EQS queries should find actors owned by a different player controller.

Thoughts?