#include <bits/stdc++.h>
int question[200001] = {};
int max(int a, int b) { return (a > b) ? a : b; }
int main() {
  int n, k, q, i, x, y;
  scanf("%d%d%d", &n, &k, &q);
  for (i = 1; i <= n; i++) {
    scanf("%d%d", &x, &y);
    question[x]++;
    question[y + 1]--;
  }
  for (i = 1; i <= 200000; i++) question[i] += question[i - 1];
  for (i = 1; i <= 200000; i++) question[i] = (question[i] >= k);
  for (i = 1; i <= 200000; i++) question[i] += question[i - 1];
  for (i = 1; i <= q; i++) {
    scanf("%d%d", &x, &y);
    printf("%d\n", question[y] - question[x - 1]);
  }
  return 0;
}
