def METHOD_NAME(
    session: Session, prev_slot: int, current_slot: int
) -> List[AggregateTipRank]:
    return session.execute(
        text(
            GET_AGGREGATE_USER_TIPS_RANKS_QUERY,
        ),
        {
            "prev_slot": prev_slot,
            "current_slot": current_slot,
            "leaderboard_size": LEADERBOARD_SIZE,
        },
    ).fetchall()