def line_search_aggregates(line):
    """get the aggregrates statement eg in `search publications return funders aggregate altmetric_median sort by rcr_avg`
        TODO: return multiple return values not just one
    """
    l = line.split()
    if 'aggregate' in l:
        i = l.index('aggregate')
        if len(l) > i + 2:
            return l[i + 1]
    else:
        return None
