def create_sequence_criteria(criteria, uris):
    """
    Adds filter to query to be sent to Virtuoso
    Args:
        criteria: Criteria from SynBioHub
        uris: URI's to be filtered

    Returns: String containing a SPARQL filter

    """
    if len(uris) == 0:
        return ''

    return 'FILTER (' + ' || '.join(['?subject = <' + uri + '>' for uri in uris]) + ')'