I have a table as follows:

row name x y
-------------------------------------
1 abc and co 9 5
2 xyz est 3 2

3 queen hotel 2 9
4 abc & co 9 5
5 king's company 4 2
6 xyz establishment 3 2

As you can see in the table, row 1 and 4 are similar, but for some spelling difference and so are row 2 and 6.

I want to write a script which will give me list of such names whose names are almost identical and have same x and y values. Any hlep?