#include <bits/stdc++.h>
using namespace std;
const int MAXINT = (int)2e5 + 10;
int par[200000 + 1];
int pre[200000 + 1];
void fast() {
  cin.tie(0);
  cin.sync_with_stdio(0);
}
int main() {
  fast();
  long long n, k, q;
  cin >> n >> k >> q;
  for (long long i = 0; i < n; i++) {
    long long a, b;
    cin >> a >> b;
    par[b + 1]--;
    par[a]++;
  }
  for (long long i = 1; i < 200000 + 1; i++) {
    par[i] += par[i - 1];
    pre[i] += pre[i - 1] + (par[i] >= k);
  }
  for (long long i = 0; i < q; i++) {
    long long a, b;
    cin >> a >> b;
    cout << pre[b] - pre[a - 1] << endl;
  }
  return 0;
}
