#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
using namespace std;
int read() {
  char c;
  int ans = 0, f = 1;
  c = getchar();
  while (c < '0' || c > '9') {
    if (c == '-') f = -1;
    c = getchar();
  }
  while (c >= '0' && c <= '9') {
    ans = ans * 10 + c - '0';
    c = getchar();
  }
  return ans * f;
}
struct edge {
  int v, w, next;
} e[100005 << 1];
int tot, head[100005];
int de[100005], pre[100005], siz[100005], son[100005], top[100005], len;
int id[100005], K, M, n;
int q[400005][11];
void addedge(int u, int v) {
  e[tot].v = v;
  e[tot].next = head[u];
  head[u] = tot++;
}
void dfs(int u, int fa, int d) {
  pre[u] = fa;
  de[u] = d;
  siz[u] = 1;
  for (int i = head[u]; ~i; i = e[i].next) {
    int v = e[i].v;
    if (v == fa) continue;
    dfs(v, u, d + 1);
    siz[u] += siz[v];
    if (son[u] == -1 || siz[v] > siz[son[u]]) son[u] = v;
  }
}
void DFS(int u, int tp) {
  id[u] = ++len;
  top[u] = tp;
  if (son[u] == -1) return;
  DFS(son[u], tp);
  for (int i = head[u]; ~i; i = e[i].next) {
    int v = e[i].v;
    if (v != son[u] && v != pre[u]) DFS(v, v);
  }
}
void add(int a[], int b[], int k) {
  int ln = min(a[0] + b[0], k);
  int l1 = 1, l2 = 1;
  int c[11];
  c[0] = 0;
  while (ln--) {
    if (l1 > a[0])
      c[++c[0]] = b[l2++];
    else if (l2 > b[0])
      c[++c[0]] = a[l1++];
    else if (a[l1] < b[l2])
      c[++c[0]] = a[l1++];
    else
      c[++c[0]] = b[l2++];
  }
  for (int i = 0; i <= c[0]; i++) a[i] = c[i];
}
int debug(int *q) {
  for (int i = 1; i <= q[0]; i++) cout << q[i] << " ";
  cout << "**" << endl;
}
void build() {
  for (int u = M - 1; u > 0; u--) {
    add(q[u], q[u << 1], 10);
    add(q[u], q[(u << 1) | 1], 10);
  }
}
int sum[11];
void query(int s, int t, int k) {
  for (s = s + M - 1, t = t + M + 1; s ^ t ^ 1; s >>= 1, t >>= 1) {
    if (~s & 1) add(sum, q[s ^ 1], k);
    if (t & 1) add(sum, q[t ^ 1], k);
  }
}
void answer(int x, int y, int k) {
  sum[0] = 0;
  while (top[x] != top[y]) {
    if (de[top[x]] < de[top[y]]) swap(x, y);
    query(id[top[x]], id[x], k);
    x = pre[top[x]];
  }
  if (de[x] > de[y]) swap(x, y);
  query(id[x], id[y], k);
}
void init() {
  tot = 0;
  len = 0;
  memset((head), (-1), sizeof((head)));
  memset((son), (-1), sizeof((son)));
}
int main() {
  n = read();
  int m = read();
  K = read();
  int u, v, w;
  init();
  for (int i = 1; i < n; i++) {
    u = read();
    v = read();
    addedge(u, v);
    addedge(v, u);
  }
  dfs(1, 0, 0);
  DFS(1, 1);
  for (M = 1; M <= n + 1; M <<= 1)
    ;
  for (int i = 1; i <= m; i++) {
    int x = id[read()];
    if (q[x + M][0] < 10) q[x + M][++q[x + M][0]] = i;
  }
  build();
  while (K--) {
    u = read();
    v = read();
    w = read();
    answer(u, v, w);
    int ans = min(sum[0], w);
    printf("%d", ans);
    for (int i = 1; i <= ans; i++) printf(" %d", sum[i]);
    printf("\n");
  }
  return 0;
}
