#include <bits/stdc++.h>

using namespace std;

typedef pair<int,int> P;
typedef pair<int,pair<int,int>> PP;
typedef long long ll;

const double EPS = 1e-9;
const int INF = 1e9;
const int MOD = 1e9+7;

int dy[] = {0,1,0,-1};
int dx[] = {1,0,-1,0};

int main(void) {
	int N;
	cin >> N;
	vector<ll> a(N);
	vector<ll> p(1000001);
	for(int i=0;i<N;i++){
		cin >> a[i];
		p[a[i]]++;
	}
	for(int i=0;i<=1000000;i++)p[i] *= i;
	for(int i=0;i<1000000;i++){
		p[i+1] += p[i];
	}

	int M;
	cin >> M;
	vector<ll> b(M),c(M);
	for(int i=0;i<M;i++){
		cin >> b[i];
	}
	for(int i=0;i<M;i++){
		cin >> c[i];
	}

	for(int i=0;i<M;i++){
		if(p[b[i]] >= c[i])cout << "Yes" << endl;
		else cout << "No" << endl;
	}

	return 0;
}