#include <bits/stdc++.h>
using namespace std;
int n, a[200011], ans[200011];
void solve() {
  cin >> n;
  int s = 0;
  for (int i = 1; i <= n; i++) cin >> a[i], s ^= a[i];
  if (s) {
    cout << "No" << endl;
    return;
  }
  int cnt = 0;
  if (n % 2 == 1) {
    cout << "Yes" << endl;
    for (int i = 1; i <= n - 2; i += 2) ans[++cnt] = i;
    for (int i = n - 4; i >= 1; i -= 2) ans[++cnt] = i;
    cout << cnt << endl;
    for (int i = 1; i <= cnt; i++) cout << ans[i] << " ";
    cout << endl;
  } else {
    s = 0;
    for (int i = 1; i <= n; i++) {
      s ^= a[i];
      if (!s && i % 2 == 1) {
        cout << "Yes" << endl;
        for (int j = 1; j <= i - 2; j += 2) ans[++cnt] = j;
        for (int j = i - 4; j >= 1; j -= 2) ans[++cnt] = j;
        for (int j = i + 1; j <= n - 2; j += 2) ans[++cnt] = j;
        for (int j = n - 4; j >= i + 1; j -= 2) ans[++cnt] = j;
        cout << cnt << endl;
        for (int j = 1; j <= cnt; j++) cout << ans[j] << " ";
        cout << endl;
        return;
      }
      if (i == n) cout << "No" << endl;
    }
  }
}
int main() {
  int t;
  cin >> t;
  while (t--) solve();
  return 0;
}
