We add missing attributes into Filter in Analyzer. But we shouldn't do it through subqueries like this:
This query works in current codebase. However, the outside where clause shouldn't be able to refer t1.c1 attribute.
The root cause is we allow subqueries in FROM have no alias names previously, it is confusing and isn't supported by various databases such as MySQL, Postgres, Oracle. We shouldn't support it too.