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