#include <bits/stdc++.h>
using namespace std;
int n, m;
pair<long long, long long> ps[1010];
bitset<1010> ss[1010];
int main() {
  ios_base::sync_with_stdio(false);
  int k;
  cin >> n >> m >> k;
  for (int i = 0; i < n; ++i) {
    cin >> ps[i].first >> ps[i].second;
  }
  for (int i = 0; i < m; ++i) {
    long long r, x, y;
    cin >> r >> x >> y;
    for (int j = 0; j < n; ++j) {
      long long dx = x - ps[j].first;
      long long dy = y - ps[j].second;
      ss[j][i] = sqrt(dx * dx + dy * dy) < r;
    }
  }
  while (k-- > 0) {
    int a, b;
    cin >> a >> b;
    --a;
    --b;
    cout << (ss[a] ^ ss[b]).count() << endl;
  }
  return 0;
}
