#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n, k, q;
  long long int i, j;
  cin >> n >> k >> q;
  long long int arr[n][2];
  for (i = 0; i < n; i++) {
    cin >> arr[i][0] >> arr[i][1];
  }
  long long int temp[200010];
  for (i = 0; i < 200001; i++) {
    temp[i] = 0;
  }
  for (i = 0; i < n; i++) {
    temp[arr[i][0]] = temp[arr[i][0]] + 1;
    temp[arr[i][1] + 1] = temp[arr[i][1] + 1] - 1;
  }
  for (i = 1; i < 200001; i++) {
    temp[i] = temp[i - 1] + temp[i];
  }
  long long int ans[200010];
  ans[0] = 0;
  for (i = 1; i < 200001; i++) {
    if (temp[i] >= k)
      ans[i] = ans[i - 1] + 1;
    else
      ans[i] = ans[i - 1];
  }
  int s, e;
  while (q--) {
    cin >> s >> e;
    cout << ans[e] - ans[s - 1] << endl;
  }
  return (0);
}
