Postgresql Self Join Interview