def METHOD_NAME(annotations):
    entity_list = []
    for tmp in annotations.get("ner", []):
        if len(tmp) > 0 and "text" in tmp[0]:
            entity_list.append(tmp[0]["text"])
    if len(entity_list) == 1:
        entity_name = entity_list[0]
    elif len(entity_list) > 1:
        entity_name = ",".join(entity_list[:-1]) + " and " + entity_list[-1]
    else:
        entity_name = ""
    entity_name = entity_name.replace("?", "")
    return entity_name