#include<stdio.h>
int main(void){
  char *s="python3 -c\""
"I=lambda:list(map(int,input().split()))\n"
"n,m,q=I()\n"
"l=[[0]*-~n for _ in range(n+1)]\n"
"for _ in range(m):\n"
"  s,g=I()\n"
"  l[s][g]+=1\n"
"for i in range(1,n+1):\n"
"  for j in range(1,n+1):\n"
"    l[i][j]+=l[i][j-1]\n"
"  for j in range(1,n+1):\n"
"    l[i][j]+=l[i-1][j]\n"
"for _ in range(q):\n"
"  s,g=I()\n"
"  print(l[g][g]-l[s-1][g]-l[g][s-1]+l[s-1][s-1])\n"
"\"";
  system(s);
  return 0;
}            