def raw_user_activity_table(records: List[QuerySet]) -> str:
    cols = ['query', 'client', 'count', 'last_visit']

    def row(record: QuerySet) -> List[Any]:
        return [record.query, record.client.name, record.count, format_date_for_activity_reports(record.last_visit)]
    rows = list(map(row, records))
    title = 'Raw data'
    return make_table(title, cols, rows)
def raw_user_activity_table(records: List[QuerySet]) -> str:
    cols = ['query', 'client', 'count', 'last_visit']

    def row(record: QuerySet) -> List[Any]:
        return [record.query, record.client.name, record.count, format_date_for_activity_reports(record.last_visit)]
    rows = list(map(row, records))
    title = 'Raw data'
    return make_table(title, cols, rows)