There are different ways of doing this depending upon which kibana features you're using. Here's how to express it in query form - Compare fields
Is that helpful? If not, let me know which version of kibana you're using and which feature and I'll figure out something more specific to your use case.