#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, a, b, n, k, q;
  cin >> n >> k >> q;
  int arr[200002] = {0};
  int fk[200002] = {0};
  for (i = 1; i <= n; i++) {
    cin >> a >> b;
    arr[b]++;
    arr[a - 1]--;
  }
  for (i = 200000; i > 0; i--) arr[i] += arr[i + 1];
  for (i = 1; i <= 200000; i++)
    if (arr[i] >= k)
      fk[i] = fk[i - 1] + 1;
    else
      fk[i] = fk[i - 1];
  for (i = 1; i <= q; i++) {
    cin >> a >> b;
    cout << fk[b] - fk[a - 1] << endl;
  }
  return 0;
}
