#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  map<int, int> mp;
  int n, k, q, i, ans[200005], l, r, cur = 0;
  cin >> n >> k >> q;
  for (i = 0; i < n; i++) {
    cin >> l >> r;
    mp[l]++;
    mp[r + 1]--;
  }
  for (i = 0; i < 200005; i++) ans[i] = 0;
  for (i = 1; i < 200005; i++) {
    cur += mp[i];
    if (cur >= k) {
      ans[i] = ans[i - 1] + 1;
    } else
      ans[i] = ans[i - 1];
  }
  while (q--) {
    cin >> l >> r;
    cout << ans[r] - ans[l - 1] << endl;
  }
  return 0;
}
