#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, q;
  cin >> n >> k >> q;
  vector<int> v(200005);
  while (n--) {
    int l, r;
    cin >> l >> r;
    v[l]++;
    v[r + 1]--;
  }
  int c = 0;
  for (int i = 0; i < v.size(); i++) {
    c += v[i];
    v[i] = (c >= k) ? 1 : 0;
  }
  vector<int> p(200005);
  for (int i = 1; i < p.size(); i++) {
    p[i] = v[i - 1] + p[i - 1];
  }
  while (q--) {
    int l, r;
    cin >> l >> r;
    cout << p[r + 1] - p[l] << endl;
  }
  return 0;
}
