#include <bits/stdc++.h>
using namespace std;
int s[250000];
int a[2500000];
int output[250000];
int n, k, q, l, r, now;
int sz = 200000;
int main() {
  int n, k, q;
  ios::sync_with_stdio(false);
  cin >> n >> k >> q;
  for (int i = 1; i <= n; i++) {
    cin >> l >> r;
    s[l]++;
    s[r + 1]--;
  }
  now = 0;
  for (int i = 0; i <= sz; i++) {
    now += s[i];
    a[i] = now;
    if (a[i] >= k)
      a[i] = 1;
    else
      a[i] = 0;
  }
  for (int i = 1; i <= sz; i++) output[i] = output[i - 1] + a[i];
  while (q--) {
    cin >> l >> r;
    cout << output[r] - output[l - 1] << endl;
  }
}
