#include <bits/stdc++.h>
using namespace std;
int a[200005] = {0}, s[200005] = {0}, c[200005] = {0};
int main() {
  int n, k, q, l, r;
  cin >> n >> k >> q;
  while (n) {
    scanf("%d%d", &l, &r);
    a[l]++;
    a[r + 1]--;
    n--;
  }
  for (int i = 1; i <= 200000; i++) {
    s[i] = s[i - 1] + a[i];
    if (s[i] >= k)
      c[i] = c[i - 1] + 1;
    else
      c[i] = c[i - 1];
  }
  while (q) {
    scanf("%d%d", &l, &r);
    printf("%d\n", c[r] - c[l - 1]);
    q--;
  }
  return 0;
}
