import std.stdio;
import std.parallelism : parallel;
import std.range : iota;

void main() {
    int n, m, q;
    readf(" %s %s %s", &n, &m, &q);

    auto ans = new int[][](n, n);
    foreach (_; 0..m) {
        int l, r;
        readf(" %s %s", &l, &r);
        foreach (i; parallel(iota(--r, n)))
            ans[l - 1][i]++;
    }
    foreach_reverse (i; 0..n - 1)
        foreach (j; parallel(iota(i, n)))
            ans[i][j] += ans[i + 1][j];

    foreach (_; 0..q) {
        int pi, qi;
        readf(" %s %s", &pi, &qi);
        ans[--pi][--qi].writeln;
    }
}
