#include <bits/stdc++.h>
using namespace std;
int n, m, q;
int fa[100005][18], dep[100005];
vector<int> E[100005], cit[100005];
struct node {
  int sz, s[15];
  node() {
    sz = 0;
    memset(s, 0, sizeof(s));
  }
  node operator+(const node &A) {
    node ret;
    int i = 0, j = 0, k = 0;
    while (i < sz && j < A.sz) {
      if (k >= 12) break;
      if (s[i] < A.s[j])
        ret.s[k++] = s[i++];
      else
        ret.s[k++] = A.s[j++];
    }
    while (k < 12 && i < sz) ret.s[k++] = s[i++];
    while (k < 12 && j < A.sz) ret.s[k++] = A.s[j++];
    ret.sz = k;
    return ret;
  }
  void operator+=(const vector<int> &A) {
    int tmp[15];
    int i = 0, j = 0, k = 0;
    while (i < sz && j < A.size()) {
      if (k >= 12) break;
      if (s[i] < A[j])
        tmp[k++] = s[i++];
      else
        tmp[k++] = A[j++];
    }
    while (k < 12 && i < sz) tmp[k++] = s[i++];
    while (k < 12 && j < A.size()) tmp[k++] = A[j++];
    sz = k;
    for (int i = 0; i < sz; i++) s[i] = tmp[i];
  }
} Po[100005][18];
void Print(node a) {
  printf("%d", a.sz);
  for (int i = 0; i < a.sz; i++) printf(" %d", a.s[i]);
  puts("");
}
void dfs(int x, int f, int d) {
  fa[x][0] = f;
  Po[x][0] += cit[x];
  dep[x] = d;
  for (int i = 0; i < E[x].size(); i++) {
    int v = E[x][i];
    if (v == f) continue;
    dfs(v, x, d + 1);
  }
}
void Up(node &key, int &x, int step) {
  for (int i = 0; i <= 17; i++)
    if (step & (1 << i)) {
      key = key + Po[x][i];
      x = fa[x][i];
    }
}
node LCA(int a, int b) {
  node key;
  if (dep[a] > dep[b]) swap(a, b);
  Up(key, b, dep[b] - dep[a]);
  if (a == b) {
    key = key + Po[a][0];
    return key;
  }
  for (int i = 17; i >= 0; i--)
    if (fa[a][i] != fa[b][i]) {
      key = key + Po[a][i];
      a = fa[a][i];
      key = key + Po[b][i];
      b = fa[b][i];
    }
  key = key + Po[a][0] + Po[b][0] + Po[fa[a][0]][0];
  return key;
}
int main() {
  scanf("%d %d %d", &n, &m, &q);
  for (int i = 1; i < n; i++) {
    int a, b;
    scanf("%d %d", &a, &b);
    E[a].push_back(b);
    E[b].push_back(a);
  }
  for (int i = 1; i <= m; i++) {
    int a;
    scanf("%d", &a);
    cit[a].push_back(i);
  }
  dfs(1, 0, 1);
  for (int i = 1; i <= 17; i++)
    for (int j = 1; j <= n; j++) {
      fa[j][i] = fa[fa[j][i - 1]][i - 1];
      Po[j][i] = Po[j][i - 1] + Po[fa[j][i - 1]][i - 1];
    }
  for (int i = 1; i <= q; i++) {
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);
    node z = LCA(a, b);
    z.sz = min(z.sz, c);
    Print(z);
  }
  return 0;
}
