#include<iostream>
using namespace std;


int n, m, q, p[509][509];
int main(){
    cin >> n >> m >> q;

    for(int i=1; i<=m; ++i) { int l, r; cin >> l >> r; ++p[l][r]; }
    for(int i=1; i<=n; ++i) for(int j=1; j<=n; ++j) p[i][j] += p[i][j-1];
    for(int i=1; i<=n; ++i) for(int j=1; j<=n; ++j) p[i][j] += p[i-1][j];

    for(int i=1; i<=q; ++i){
        int l, r; cin >> l >> r;
        cout << p[r][r] + p[l-1][l-1] - p[l-1][r] - p[r][l-1] << endl;
    }
}