(denotations)
return denotations
A safe net method that removes all auxiliary methods from the denotations.

    :param denotations: a list of entity ids
    :return: list of entitiy ids
    >>> filter_auxiliary_entities_by_id(['Q161-491', 'Q52-3651', 'Q114-3278', 'Q179385', 'Q592123', 'Q62378', 'Q617407', 'Q858775'])
    ['Q179385', 'Q592123', 'Q62378', 'Q617407', 'Q858775']
    >>> filter_auxiliary_entities_by_id([{'e1': 'Q161-491'}, {'e1': 'Q52P3651'}, {'e1': 'Q1143278'}, {'e1': 'Q179385'}, {'e1': 'Q592123'}, {'e1': 'Q62378'}])
    [{'e1': 'Q52P3651'}, {'e1': 'Q1143278'}, {'e1': 'Q179385'}, {'e1': 'Q592123'}, {'e1': 'Q62378'}]
A safe net method that removes all auxiliary methods from the denotations.
A safe net method that removes all auxiliary methods from the denotations .
def filter_auxiliary_entities_by_id(denotations):
    """
    A safe net method that removes all auxiliary methods from the denotations.

    :param denotations: a list of entity ids
    :return: list of entitiy ids
    >>> filter_auxiliary_entities_by_id(['Q161-491', 'Q52-3651', 'Q114-3278', 'Q179385', 'Q592123', 'Q62378', 'Q617407', 'Q858775'])
    ['Q179385', 'Q592123', 'Q62378', 'Q617407', 'Q858775']
    >>> filter_auxiliary_entities_by_id([{'e1': 'Q161-491'}, {'e1': 'Q52P3651'}, {'e1': 'Q1143278'}, {'e1': 'Q179385'}, {'e1': 'Q592123'}, {'e1': 'Q62378'}])
    [{'e1': 'Q52P3651'}, {'e1': 'Q1143278'}, {'e1': 'Q179385'}, {'e1': 'Q592123'}, {'e1': 'Q62378'}]
    """
    qvar_name = QUESTION_VAR[1:]
    keep = endpoint_access.GLOBAL_RESULT_LIMIT
    if len(denotations) > 0 and type(denotations[0]) == dict:
        denotations = [r for r in denotations if any('-' not in r[b] and r[b][0] in 'pqPQ' for b in r)]
        if keep < len(denotations):
            denotations = sorted([k for k in denotations if k.get(qvar_name, ' ')[1:].isnumeric()], key=lambda k: int(k.get(qvar_name, ' ')[1:]))[:keep]
    else:
        denotations = [r for r in denotations if '-' not in r and r[0] in 'pqPQ']
        if keep < len(denotations):
            denotations = sorted([k for k in denotations if k[1:].isnumeric()], key=lambda k: int(k[1:]))[:keep]
    return denotations
def filter_auxiliary_entities_by_id ( denotations ) : qvar_name = QUESTION_VAR [ 1 : ] keep = endpoint_access . GLOBAL_RESULT_LIMIT if len ( denotations ) > 0 and type ( denotations [ 0 ] ) == dict : denotations = [ r for r in denotations if any ( '-' not in r [ b ] and r [ b ] [ 0 ] in 'pqPQ' for b in r ) ] if keep < len ( denotations ) : denotations = sorted ( [ k for k in denotations if k . get ( qvar_name , ' ' ) [ 1 : ] . isnumeric ( ) ] , key = lambda k : int ( k . get ( qvar_name , ' ' ) [ 1 : ] ) ) [ : keep ] else : denotations = [ r for r in denotations if '-' not in r and r [ 0 ] in 'pqPQ' ] if keep < len ( denotations ) : denotations = sorted ( [ k for k in denotations if k [ 1 : ] . isnumeric ( ) ] , key = lambda k : int ( k [ 1 : ] ) ) [ : keep ] return denotations