#include <bits/stdc++.h>
using namespace std;
const int MAX = (int)2e5 + 5;
int main() {
  int n, k, q, l, r, DiffArr[MAX], a, b;
  cin >> n >> k >> q;
  memset(DiffArr, 0, sizeof DiffArr);
  for (int i = 0; i < n; i++) {
    cin >> l >> r;
    DiffArr[l]++;
    DiffArr[r + 1]--;
  }
  for (int i = 1; i < MAX; i++) {
    DiffArr[i] += DiffArr[i - 1];
  }
  for (int i = 1; i < MAX; i++) {
    if (DiffArr[i] < k) {
      DiffArr[i] = 0;
    } else
      DiffArr[i] = 1;
  }
  for (int i = 1; i < MAX; i++) {
    DiffArr[i] += DiffArr[i - 1];
  }
  for (int i = 0; i < q; i++) {
    cin >> a >> b;
    cout << DiffArr[b] - DiffArr[a - 1] << "\n";
  }
  return 0;
}
