def populate_scoped_cols(self, scoped_tbls):
columns = []<EOL>meta = self.dbmetadata<EOL>for tbl in scoped_tbls:<EOL><INDENT>schema = tbl[<NUM_LIT:0>] or self.dbname<EOL>relname = tbl[<NUM_LIT:1>]<EOL>escaped_relname = self.escape_name(tbl[<NUM_LIT:1>])<EOL>try:<EOL><INDENT>columns.extend(meta['<STR_LIT>'][schema][relname])<EOL>continue<EOL><DEDENT>except KeyError:<EOL><INDENT>try:<EOL><INDENT>columns.extend(meta['<STR_LIT>'][schema][escaped_relname])<EOL>continue<EOL><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>try:<EOL><INDENT>columns.extend(meta['<STR_LIT>'][schema][relname])<EOL><DEDENT>except KeyError:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>return columns<EOL>
Find all columns in a set of scoped_tables
        :param scoped_tbls: list of (schema, table, alias) tuples
        :return: list of column names