#include <bits/stdc++.h>
using namespace std;
const int lim = 2e5;
int num[lim + 10] = {};
int main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n, k, q, a, b, l, r;
  cin >> n >> k >> q;
  for (int i = 0; i < n; i++) {
    cin >> a >> b;
    num[a]++;
    num[b + 1]--;
  }
  int cnt = 0;
  for (int i = 1; i <= lim; i++) {
    cnt += num[i];
    if (cnt >= k)
      num[i] = 1;
    else
      num[i] = 0;
  }
  for (int i = 2; i <= lim; i++) {
    num[i] += num[i - 1];
  }
  for (int i = 0; i < q; i++) {
    cin >> l >> r;
    cout << num[r] - num[l - 1] << "\n";
  }
  return 0;
}
