How to compare fields between entities?

I want to have a selector that selects trident thrown by the player. Player has UUID and Trident has Owner , I just want to compare these two to get all entities where they are equal. I've been trying to figure it out, but cant find a way to just compare fields between @s and the selector filter, can you use predicates to do this somehow?
Continue to help post