#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, k, q;
  cin >> n >> k >> q;
  vector<int> ans(200000 + 1);
  vector<int> lazy(200000 + 2);
  int l, r;
  for (int i = 1; i <= n; i++) {
    cin >> l >> r;
    lazy[l] += 1;
    lazy[r + 1] -= 1;
  }
  int sum = 0;
  for (int i = 1; i <= ans.size(); i++) {
    ans[i] += ans[i - 1] + lazy[i];
  }
  vector<int> v(200000 + 1);
  for (int i = 1; i <= v.size(); i++) {
    if (ans[i] >= k) {
      v[i] += v[i - 1] + 1;
    } else {
      v[i] = v[i - 1];
    }
  }
  while (q--) {
    cin >> l >> r;
    cout << v[r] - v[l - 1] << "\n";
  }
  return 0;
}
