import std.algorithm, std.container, std.conv, std.math, std.range, std.typecons, std.stdio, std.string;

auto rdsp(){return readln.splitter;}
void pick(R,T)(ref R r,ref T t){t=r.front.to!T;r.popFront;}
void readV(T...)(ref T t){auto r=rdsp;foreach(ref v;t)pick(r,v);}

void main()
{
  int n, m, nq; readV(n, m, nq);

  auto t = new int[][](n+2, n+2);

  foreach (_; 0..m) {
    int l, r; readV(l, r);
    ++t[1][r];
    --t[l+1][r];
    --t[1][n+1];
    ++t[l+1][n+1];
  }

  foreach (j; 0..n+2)
    foreach (i; 0..n+1)
      t[i+1][j] += t[i][j];
  foreach (i; 0..n+2)
    foreach (j; 0..n+1)
      t[i][j+1] += t[i][j];

  foreach (_; 0..nq) {
    int p, q; readV(p, q);
    writeln(t[p][q]);
  }
}
