import std.stdio;

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

    int[] l, r;
    int[] p, q;
    foreach (i; 0..m) {
        int t_l, t_r;
        readf(" %s %s", &t_l, &t_r);
        l ~= t_l;
        r ~= t_r;
    }
    foreach (i; 0..nq) {
        int p, q;
        readf(" %s %s", &p, &q);
        auto ans = 0;
        foreach (j; 0..m) {
            if (l[j] >= p && r[j] <= q)
                ans++;
        }
        ans.writeln;
    }
}
