[BUGFIX] Use table name alias in "unions"

Change-Id: I375a003958238838ad4e0a64382fe7bdeeadaba1
Releases: 0.6
Resolves: #62372