def get_delete_rows_data(column_names, row_deletion_data):
    """
    Returns query segment to delete rows whose :param column_names are equal to any of the tuples
    in :param row_deletion_data
    :param column_names: List of column name to match
    :param row_deletion_data: Values corresponding to the :param column_names to match
    :return: Row deletion query segements like '(col1=val1 AND col2=val2) OR (col1=val3 AND col2=val4)
    """
    query_segment_list = []
    for row in row_deletion_data:
        assert len(column_names) == len(row)

        zipped_list = list(zip(column_names, row))
        zipped_list = [str(item[0]) + "=" + str(item[1]) for item in zipped_list]
        query_segment_list.append("(" + " AND ".join(zipped_list) + ")")

    return " OR ".join(query_segment_list)