def METHOD_NAME(self, cycle):
    sql = """
   select
      db_name,
      sum(effect_row)
    from query_log
    where create_time >= date_add(now(), interval -{} day)
    group by db_name
    order by sum(effect_row) desc
    limit 10;""".format(
        cycle
    )
    return self.__query(sql)