#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "debug.h"
#else
#define deb(...)
#endif
#define endl "\n"
#define pb push_back
#define int long long
#define ll long long
#define pii pair<int,int>
#define F first
#define S second
#define all(c) c.begin(),c.end()
#define read(v) for(auto &it:v) cin>>it;
const int inf = 1e18;
const int N   = 2e5 + 5;
const int mod = 1000000007;

void test_case() {
    int n;
    cin >> n;
    vector <int> v(n);
    read(v);
    int neg = 0, pos = 0;
    for (auto it : v) {
        if (it >= 0) {
            pos++;
        }
        else {
            neg++;
        }
    }
    if ((neg > 0) && (pos > 0)) {
        cout << "NO" << endl;
    }
    else if (neg == 1) {
        cout << "YES" << endl;
        cout << 1 << endl;
        cout << v[0] << endl;
    }
    else if (neg > 0) {
        cout << "NO" << endl;
    }
    else {
        cout << "YES" << endl;
        cout << 101 << endl;
        for (int i = 0; i <= 100; i++) {
            cout << i << " ";
        } cout << endl;
    }





}

int32_t main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    int  t = 1;
    cin >> t;
    while (t--)test_case();
    return 0;
}