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