Added  SelectFromJoinCommand and test for it