def METHOD_NAME(self, queries):
    for i, q in enumerate(queries):
        if q['name'] is None:
            continue
        org = q['query']
        queries[i]['query'] = self.rewrite_single(org)
        eprint("Rewritten statement\n\tfrom {}\n\t  to {}".format(org, q['query']))
    return queries