#include <bits/stdc++.h>
using namespace std;
const long long N = 2e5 + 9;
int AccIntervals[N], admissable[N];
int main() {
  ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
  int n, k, q;
  cin >> n >> k >> q;
  int mx = INT_MIN;
  for (int i = 0; i < n; i++) {
    int l, r;
    cin >> l >> r;
    AccIntervals[l]++;
    AccIntervals[r + 1]--;
    mx = max(mx, r);
  }
  for (int i = 1; i <= 2e5 + 1; i++) AccIntervals[i] += AccIntervals[i - 1];
  for (int i = 1; i <= 2e5 + 1; i++)
    (AccIntervals[i] >= k) ? admissable[i] = 1 : admissable[i] = 0;
  for (int i = 1; i <= 2e5 + 1; i++) admissable[i] += admissable[i - 1];
  while (q--) {
    int s, e;
    cin >> s >> e;
    cout << admissable[e] - admissable[s - 1] << '\n';
  }
}
