#include <bits/stdc++.h>
using namespace std;
int N, M, T, K;
int tb[200005];
int sum[200005];
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int i, j, k;
  cin >> N >> K >> M;
  while (N--) {
    cin >> i >> j;
    tb[i]++;
    tb[j + 1]--;
  }
  for (i = 1; i <= 200000; i++) tb[i] += tb[i - 1];
  for (i = 1; i <= 200000; i++) {
    if (tb[i] >= K) sum[i]++;
    sum[i] += sum[i - 1];
  }
  while (M--) {
    cin >> i >> j;
    cout << sum[j] - sum[i - 1] << '\n';
  }
  return 0;
}
