sql_gen.py: underlying_table(): Support derived tables and row vars by obtaining the underlying table from the srcs
sql_gen.py: underlying_table(): Support derived tables and row vars by obtaining the underlying table from the srcs