WIP for join ordering