WIP: pass existing joins to construct_join_dependency
Merge pull request #14834 from al2o3cr/issue14155

Correctly alias table names when joining more than once