Segment matching between two individuals in Hail

I am trying to match segments of shared SNPs between two individuals. May I ask if anyone knows of any suggested functions for this? Thank you so much.

Are these two individuals in a matrix table? Or do you have two separate tables?