#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10, maxlog = 18;
vector<int> v[maxn];
vector<int> a[maxn];
int depth[maxn];
vector<int> s[maxlog][maxn];
int sparce[maxlog][maxn];
void dfs(int x, int p = 0) {
  depth[x] = depth[p] + 1;
  sparce[0][x] = p;
  for (int i : a[x]) {
    if (s[0][x].size() == 11) break;
    s[0][x].push_back(i);
  }
  for (int i : v[x]) {
    if (i == p) continue;
    dfs(i, x);
  }
}
int equalize(int x, int y) {
  for (int i = maxlog - 1; i >= 0; --i)
    if (depth[sparce[i][x]] >= depth[y]) x = sparce[i][x];
  return x;
}
int find_lca(int x, int y) {
  if (x == y) return x;
  for (int i = maxlog - 1; i >= 0; --i) {
    if (sparce[i][x] != sparce[i][y]) {
      x = sparce[i][x];
      y = sparce[i][y];
    }
  }
  return sparce[0][x];
}
int lca(int x, int y) {
  if (depth[x] > depth[y]) swap(x, y);
  return find_lca(x, equalize(y, x));
}
int mn;
vector<int> res;
bool print;
void merge(const vector<int> &a1, const vector<int> &b1) {
  int it_a = 0;
  int it_b = 0;
  res.clear();
  mn = 0;
  while (res.size() < 11 && (it_a < a1.size() || it_b < b1.size())) {
    while (it_b < b1.size() && it_a < a1.size() && a1[it_a] == b1[it_b]) ++it_b;
    while (!res.empty() && it_b < b1.size() && b1[it_b] == res.back()) ++it_b;
    while (!res.empty() && it_a < a1.size() && a1[it_a] == res.back()) ++it_a;
    if (it_b == b1.size()) {
      res.push_back(a1[it_a]);
      ++it_a;
      continue;
    }
    if (it_a == a1.size()) {
      res.push_back(b1[it_b]);
      ++it_b;
      continue;
    }
    if (b1[it_b] < a1[it_a]) {
      res.push_back(b1[it_b]);
      ++it_b;
    } else {
      res.push_back(a1[it_a]);
      ++it_a;
    }
  }
}
void f(int x, int lca, vector<int> &curr) {
  for (int i = maxlog - 1; i >= 0; --i) {
    if (depth[sparce[i][x]] >= depth[lca]) {
      merge(curr, s[i][x]);
      curr = res;
      x = sparce[i][x];
    }
  }
  merge(curr, {});
  curr = res;
}
vector<int> a1, b1, ans;
int x, y, z, n, m, t, len, curr_lca;
int main() {
  ios_base ::sync_with_stdio(0);
  cin.tie(nullptr);
  cout.tie(nullptr);
  cin >> n >> m >> t;
  for (int i = 1; i < n; ++i) {
    cin >> x >> y;
    v[x].push_back(y);
    v[y].push_back(x);
  }
  for (int i = 1; i <= m; ++i) {
    cin >> x;
    a[x].push_back(i);
  }
  dfs(1);
  for (int i = 1; i < maxlog; ++i) {
    for (int j = 1; j <= n; ++j) {
      sparce[i][j] = sparce[i - 1][sparce[i - 1][j]];
      s[i][j] = s[i - 1][j];
      merge(s[i][j], s[i - 1][sparce[i - 1][j]]);
      s[i][j] = res;
    }
  }
  for (int i = 1; i <= n; ++i) {
    v[i].clear();
    a[i].clear();
  }
  for (int i = 0; i < t; ++i) {
    cin >> x >> y >> z;
    curr_lca = sparce[0][lca(x, y)];
    a1.clear();
    b1.clear();
    f(x, curr_lca, a1);
    f(y, curr_lca, b1);
    merge(a1, b1);
    a1 = res;
    if (a1.empty()) {
      cout << 0 << '\n';
      continue;
    }
    ans.clear();
    ans.push_back(a1[0]);
    for (int i = 1; i < a1.size(); ++i)
      if (a1[i] != a1[i - 1]) ans.push_back(a1[i]);
    len = min(z, (int)ans.size());
    cout << len << ' ';
    for (int i = 0; i < len; ++i) cout << ans[i] << ' ';
    cout << '\n';
  }
  return 0;
}
