def execute(self, metadata, connection, filter_values):
        try:
            table = metadata.tables[self.table_name]
        except __HOLE__:
            raise TableNotFoundException("Unable to query table, table not found: %s" % self.table_name)

        return connection.execute(self._build_query(table, filter_values)).fetchall()
dataset/ETHPy150Open dimagi/commcare-hq/custom/care_pathways/sqldata.py/CareQueryMeta.execute