Self Join - Comparing the value of a column across the rows

Hi All,
I have a below data in a table, 3 columns - Tech Env Version

ELK Dev 1.16.0
ELK Stage 1.15.0

I wanted to compare version column from Dev and Stage rows, display another column saying “mismatch”.

Could you please let me know if this is possible in grafana/elastic search as a source.

Thanks in advance.