ENG-451 self join implementation