#include <bits/stdc++.h>
using namespace std;
int n, k, q;
int temp[200005];
int main() {
  int i;
  int left, right;
  scanf("%d%d%d", &n, &k, &q);
  for (i = 0; i < n; i++) {
    scanf("%d%d", &left, &right);
    temp[left]++;
    temp[right + 1]--;
  }
  for (i = 1; i < 200005; i++) temp[i] += temp[i - 1];
  for (i = 1; i < 200005; i++) temp[i] = temp[i - 1] + (temp[i] >= k);
  while (q--) {
    scanf("%d%d", &left, &right);
    printf("%d\n", temp[right] - temp[left - 1]);
  }
  return 0;
}
