#include <bits/stdc++.h>
using namespace std;
int a[200002];
int main() {
  ios_base::sync_with_stdio(false);
  int n, k, q, u, v;
  cin >> n >> k >> q;
  for (int i = 0; i < n; i++) {
    cin >> u >> v;
    a[u]++;
    a[v + 1]--;
  }
  for (int i = 1; i <= 200000; i++) a[i] = a[i - 1] + a[i];
  for (int i = 1; i < 200001; i++) {
    if (a[i] >= k)
      a[i] = 1;
    else
      a[i] = 0;
  }
  for (int i = 1; i <= 200000; i++) a[i] = a[i - 1] + a[i];
  while (q--) {
    cin >> u >> v;
    cout << a[v] - a[u - 1] << endl;
  }
  return 0;
}
