Get filters to apply to a list of SqlNodes.

    Args:
        nodes: List[SqlNode], the SqlNodes to get filters for.
        context: CompilationContext, global compilation state and metadata.

    Returns:
        List[Expression], list of SQLAlchemy expressions.

def _get_filters(nodes, context):
    """Get filters to apply to a list of SqlNodes.

    Args:
        nodes: List[SqlNode], the SqlNodes to get filters for.
        context: CompilationContext, global compilation state and metadata.

    Returns:
        List[Expression], list of SQLAlchemy expressions.
    """
    filters = []
    for node in nodes:
        for filter_block in sql_context_helpers.get_filters(node, context):
            filter_sql_expression = _transform_filter_to_sql(filter_block, node, context)
            filters.append(filter_sql_expression)
    return filters