complete join ordering