def find_common_cond_attrs(sql_obj1, sql_obj2):
    """
    Find common attributes for SQL join condition
    :param sql_obj1:
    :param sql_obj2:
    :return:
    """
    commonpr_list = []
    for project1 in sql_obj1.pr_list:
        for project2 in sql_obj2.pr_list:
            if project1.alias == project2.alias:
                commonpr_list.append(project1)
    return commonpr_list
