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