#include <bits/stdc++.h>
using namespace std;
int arr[200009], freq[200009];
int main() {
  int n, k, q, l, r, a, b;
  cin >> n >> k >> q;
  for (int i = 0; i < n; ++i) {
    cin >> l >> r;
    arr[l]++;
    arr[r + 1]--;
  }
  for (int i = 1; i < 200009; ++i) {
    arr[i] += arr[i - 1];
    if (arr[i] >= k) {
      freq[i]++;
    }
  }
  for (int i = 1; i < 200009; ++i) {
    freq[i] += freq[i - 1];
  }
  while (q--) {
    cin >> a >> b;
    cout << freq[b] - freq[a - 1] << endl;
  }
  return 0;
}
