#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int n, m, q;
  cin >> n >> m >> q;
  vector<vector<int>> trains(n, vector<int>(n + 1, 0));
  int l, r;
  for (int i = 0; i < m; ++i) {
    cin >> l >> r;
    trains[--l][--r]++;
  }
  for (int i = 0; i < n; ++i) {
    for (int j = n - 1; 0 < j; --j) {
      trains[j - 1][i] += trains[j][i];
    }
  }
  for (int i = 0; i < n; ++i) {
    for (int j = 1; j <= n; ++j) {
      trains[i][j] += trains[i][j - 1];
    }
  }
  int f, t;
  for (int i = 0; i < q; ++i) {
    cin >> f >> t;
    cout << trains[--f][--t] << "\n";
  }
}
