#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <set>
// #include <stdlib.h>
// #include <stdio.h>
// #include <ctype.h>

using namespace std;

int main(void){

    int n = 0;
    cin >> n;
    for(; n > 0; n--){
        int num;
        cin >> num;
        int input, last = -1;
        int count = 1, max = 1;
        if(num == 0){
            cout << '0' << endl;
            continue;
        }
        for(; num > 0; num--){
            cin >> input;
            if(input == last){
                count++;
                if(count > max){
                    max = count;
                }
            }
            else{
                count = 1;
            }
            last = input;
        }
        cout << max << endl;
        

    }


    return 0;
}