import std.stdio;
import std.typecons;

alias Train = Tuple!(int, "l", int, "r");

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

    auto t = new Train[][](n + 1, 0);
    int[] l, r, p, q;
    foreach (i; 0..m) {
        int t_l, t_r;
        readf(" %s %s", &t_l, &t_r);
        t[t_l] ~= Train(t_l, t_r);
    }
    foreach (i; 0..nq) {
        int t_p, t_q;
        readf(" %s %s", &t_p, &t_q);
        p ~= t_p;
        q ~= t_q;
    }
    foreach (i; 0..nq) {
        auto ans = 0;
        for (auto j = p[i]; j <= n; j++) {
            foreach (e; t[j]) {
                if (e.r <= q[i])
                    ans++;
            }
        }
        ans.writeln;
    }
}
