fix deconstruction of joins with aliases
fix deconstruction of joins with aliases

Change-Id: I7b8bc73bd546e08723a0dfdca932e9f617ab36dd
Reviewed-on: https://gerrit.instructure.com/27680
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>
Reviewed-by: Anthus Williams <9b0bb6d8221e7e7c0d84e929f259a97887b2819e@instructure.com>
Reviewed-by: Jacob Fugal <f862f167b85d41b225785c70d70808bc7337c1fe@instructure.com>
QA-Review: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>
Product-Review: Cody Cutrer <c4fe2b1d90ef8f2548c8aeabfa633434316f0305@instructure.com>

whalejasmine/canvas-lms,AndranikMarkosyan/lms,dgynn/canvas-lms,dgynn/canvas-lms,venturehive/canvas-lms,snehakachroo1/LSI_replica,Rvor/canvas-lms,kyroskoh/canvas-lms,greyhwndz/canvas-lms,Unow/canvas-lms,sfu/canvas-lms,wrdsb/canvas-lms,Unow/canvas-lms,gbleydon/canvas-lms,matematikk-mooc/canvas-lms,arrivu/hoodemo,usmschuck/canvas,juoni/canvas-lms,snehakachroo1/LSI_replica,utkarshx/canvas-lms,va7map/canvas-lms,instructure/canvas-lms,tgroshon/canvas-lms,juoni/canvas-lms,sfu/canvas-lms,skmezanul/canvas-lms,samuels410/greatlakes-lms,instructure/canvas-lms,juoni/canvas-lms,kyroskoh/canvas-lms,samuels410/greatlakes-lms,eCNAP/CANVAS,venturehive/canvas-lms,gbleydon/canvas-lms,skmezanul/canvas-lms,usmschuck/canvas,fronteerio/canvas-lms,sfu/canvas-lms,tgroshon/canvas-lms,Rvor/canvas-lms,skmezanul/canvas-lms,juoni/canvas-lms,wye0220/shindig-canvas,roxolan/canvas-lms,utkarshx/canvas-lms,HotChalk/canvas-lms,djbender/canvas-lms,venturehive/canvas-lms,eCNAP/CANVAS,samuels410/greatlakes-lms,eCNAP/CANVAS,redconfetti/canvas-lms,sfu/canvas-lms,dgynn/canvas-lms,narigone/canvas,va7map/canvas-lms,greyhwndz/canvas-lms,grahamb/canvas-lms,shidao-fm/canvas-lms,sdeleon28/canvas-lms,instructure/canvas-lms,grahamb/canvas-lms,usmschuck/canvas,ShreniiNepal/shrenii_lmp,wrdsb/canvas-lms,usmschuck/canvas,efrj/canvas-lms,leftplusrightllc/canvas-lms,arrivu/qibla-ecampus,greyhwndz/canvas-lms,grahamb/canvas-lms,wrdsb/canvas-lms,djbender/canvas-lms,grahamb/canvas-lms,HotChalk/canvas-lms,instructure/canvas-lms,redconfetti/canvas-lms,shidao-fm/canvas-lms,shidao-fm/canvas-lms,arrivu/arrivu-lms,snehakachroo1/LSI_replica,landonwilkins/canvas-lms,redconfetti/canvas-lms,arrivu/qibla-ecampus,roxolan/canvas-lms,SwinburneOnline/canvas-lms,fronteerio/canvas-lms,gbleydon/canvas-lms,tgroshon/canvas-lms,utkarshx/canvas-lms,Rvor/canvas-lms,efrj/canvas-lms,va7map/canvas-lms,narigone/canvas,leftplusrightllc/canvas-lms,narigone/canvas,sdeleon28/canvas-lms,eCNAP/CANVAS,Rvor/canvas-lms,wye0220/shindig-canvas,efrj/canvas-lms,skmezanul/canvas-lms,leftplusrightllc/canvas-lms,antoniuslin/canvas-lms,jay3126/canvas-lms,leftplusrightllc/canvas-lms,AndranikMarkosyan/lms,arrivu/hoodemo,antoniuslin/canvas-lms,roxolan/canvas-lms,instructure/canvas-lms,whalejasmine/canvas-lms,Jyaasa/canvas-lms,djbender/canvas-lms,sfu/canvas-lms,snehakachroo1/LSI_replica,antoniuslin/canvas-lms,sfu/canvas-lms,narigone/canvas,fronteerio/canvas-lms,sfu/canvas-lms,AndranikMarkosyan/lms,whalejasmine/canvas-lms,arrivu/arrivu-lms,fronteerio/canvas-lms,Unow/canvas-lms,dgynn/canvas-lms,efrj/canvas-lms,djbender/canvas-lms,whalejasmine/canvas-lms,kyroskoh/canvas-lms,wrdsb/canvas-lms,HotChalk/canvas-lms,jay3126/canvas-lms,tgroshon/canvas-lms,antoniuslin/canvas-lms,SwinburneOnline/canvas-lms,ShreniiNepal/shrenii_lmp,wye0220/shindig-canvas,samuels410/greatlakes-lms,Jyaasa/canvas-lms,kyroskoh/canvas-lms,instructure/canvas-lms,AndranikMarkosyan/lms,greyhwndz/canvas-lms,redconfetti/canvas-lms,utkarshx/canvas-lms,matematikk-mooc/canvas-lms,HotChalk/canvas-lms,va7map/canvas-lms,Jyaasa/canvas-lms,arrivu/qibla-ecampus,sdeleon28/canvas-lms,shidao-fm/canvas-lms,roxolan/canvas-lms,ShreniiNepal/shrenii_lmp,SwinburneOnline/canvas-lms,landonwilkins/canvas-lms,grahamb/canvas-lms,arrivu/hoodemo,instructure/canvas-lms,SwinburneOnline/canvas-lms,venturehive/canvas-lms,landonwilkins/canvas-lms,landonwilkins/canvas-lms,arrivu/arrivu-lms,ShreniiNepal/shrenii_lmp,jay3126/canvas-lms,matematikk-mooc/canvas-lms,matematikk-mooc/canvas-lms,Jyaasa/canvas-lms,sdeleon28/canvas-lms,jay3126/canvas-lms