#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n, m, k;
  cin >> n >> m >> k;
  vector<pair<int, int>> x(n);
  for (__typeof((n)) i = (0); i < (n); i += 1) {
    cin >> x[i].first >> x[i].second;
  }
  vector<pair<int, pair<int, int>>> y(m);
  for (__typeof((m)) i = (0); i < (m); i += 1) {
    cin >> y[i].first >> y[i].second.first >> y[i].second.second;
  }
  for (__typeof((k)) i = (0); i < (k); i += 1) {
    int a, b;
    cin >> a >> b;
    pair<int, int> alpha = x[a - 1];
    pair<int, int> beta = x[b - 1];
    int ans = 0;
    for (__typeof((m)) j = (0); j < (m); j += 1) {
      ans += (1LL * (alpha.first - y[j].second.first) *
                      (alpha.first - y[j].second.first) +
                  1LL * (alpha.second - y[j].second.second) *
                      (alpha.second - y[j].second.second) <
              1LL * y[j].first * y[j].first) ^
             (1LL * (beta.first - y[j].second.first) *
                      (beta.first - y[j].second.first) +
                  1LL * (beta.second - y[j].second.second) *
                      (beta.second - y[j].second.second) <
              1LL * y[j].first * y[j].first);
    }
    cout << ans << '\n';
  }
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
