Close #174 adding sql JOIN completion and corresponding unit tests