The original code here was very suspicious, but why do we even need a "table" attribute for a subquery scan? Why is the tableAlias as set below not enough?