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