#include <bits/stdc++.h>
using namespace std;
const long long INF = 2e9;
long long n, m, k;
struct circle {
  long long x, y, r;
  circle() {}
  circle(long long X, long long Y, long long R) {
    x = X;
    y = Y;
    r = R;
  }
};
long long dist(long long x1, long long y1, long long x2, long long y2) {
  return (x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2);
}
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> n >> m >> k;
  vector<pair<long long, long long> > dot(n);
  vector<circle> c(m);
  vector<bitset<1001> > b(n);
  for (long long i = 0; i < n; i++) cin >> dot[i].first >> dot[i].second;
  for (long long i = 0; i < m; i++) cin >> c[i].r >> c[i].x >> c[i].y;
  for (long long i = 0; i < n; i++) {
    for (long long j = 0; j < m; j++) {
      if (dist(dot[i].first, dot[i].second, c[j].x, c[j].y) < c[j].r * c[j].r)
        b[i].set(j);
    }
  }
  for (long long i = 0; i < k; i++) {
    long long u, v;
    cin >> u >> v;
    u--;
    v--;
    cout << (b[u] ^ b[v]).count() << '\n';
  }
  return 0;
}
