def METHOD_NAME(quary_expr):
    valid_filter_attributes = ["client_id", "directory_id", "created_at", "id", "until", "event_type_id", "limit",
                               "since", "resolution", "user_id"]
    api_quary_attr = dict()
    filter_attr = []
    quary_expr_list = quary_expr.split("&")
    for attribute in quary_expr_list:
        if attribute.split("=")[0] in valid_filter_attributes:
            api_quary_attr.update({attribute.split("=")[0]: attribute.split("=")[1]})
        else:
            filter_attr.append(attribute)
    return api_quary_attr, filter_attr