#include <bits/stdc++.h>
using namespace std;
int depth[100005], par[100003][21];
vector<int> ans[100001][19], g[100001];
inline void dfs(int pos, int prev) {
  depth[pos] = depth[prev] + 1;
  par[pos][0] = prev;
  for (int i = 0; i < g[pos].size(); i++) {
    if (g[pos][i] != prev) {
      dfs(g[pos][i], pos);
    }
  }
}
inline int lca(int x, int y) {
  if (depth[x] < depth[y]) {
    return lca(y, x);
  }
  int diff = depth[x] - depth[y];
  for (int i = 0; i <= 20; i++) {
    if (diff & (1 << i)) {
      x = par[x][i];
    }
  }
  if (x == y) {
    return x;
  }
  for (int i = 20; i >= 0; i--) {
    if (par[x][i] != par[y][i]) {
      x = par[x][i];
      y = par[y][i];
    }
  }
  return par[x][0];
}
inline vector<int> answer(int x, int y) {
  int z = lca(x, y);
  vector<int> ans1, ans2, fans;
  int diff = depth[x] - depth[z];
  for (int i = 0; i <= 18; i++) {
    if (diff & (1 << i)) {
      vector<int> temp;
      int u = 0, v = 0;
      while (temp.size() <= 9) {
        if (u < ans1.size()) {
          if (v < ans[x][i].size()) {
            if (ans1[u] <= ans[x][i][v]) {
              temp.push_back(ans1[u]);
              u++;
            } else {
              temp.push_back(ans[x][i][v]);
              v++;
            }
          } else {
            temp.push_back(ans1[u]);
            u++;
          }
        } else {
          if (v < ans[x][i].size()) {
            temp.push_back(ans[x][i][v]);
            v++;
          } else {
            break;
          }
        }
      }
      x = par[x][i];
      ans1 = temp;
    }
  }
  diff = depth[y] - depth[z];
  for (int i = 0; i <= 18; i++) {
    if (diff & (1 << i)) {
      vector<int> temp;
      int u = 0, v = 0;
      while (temp.size() <= 9) {
        if (u < ans2.size()) {
          if (v < ans[y][i].size()) {
            if (ans2[u] <= ans[y][i][v]) {
              temp.push_back(ans2[u]);
              u++;
            } else {
              temp.push_back(ans[y][i][v]);
              v++;
            }
          } else {
            temp.push_back(ans2[u]);
            u++;
          }
        } else {
          if (v < ans[y][i].size()) {
            temp.push_back(ans[y][i][v]);
            v++;
          } else {
            break;
          }
        }
      }
      y = par[y][i];
      ans2 = temp;
    }
  }
  vector<int> temp;
  int u = 0, v = 0;
  while (temp.size() <= 9) {
    if (u < ans1.size()) {
      if (v < ans[z][0].size()) {
        if (ans1[u] <= ans[z][0][v]) {
          temp.push_back(ans1[u]);
          u++;
        } else {
          temp.push_back(ans[z][0][v]);
          v++;
        }
      } else {
        temp.push_back(ans1[u]);
        u++;
      }
    } else {
      if (v < ans[z][0].size()) {
        temp.push_back(ans[z][0][v]);
        v++;
      } else {
        break;
      }
    }
  }
  ans1 = temp;
  int i = 0, j = 0;
  while (fans.size() <= 9) {
    if (i < ans1.size()) {
      if (j < ans2.size()) {
        if (ans1[i] <= ans2[j]) {
          fans.push_back(ans1[i]);
          i++;
        } else {
          fans.push_back(ans2[j]);
          j++;
        }
      } else {
        fans.push_back(ans1[i]);
        i++;
      }
    } else {
      if (j < ans2.size()) {
        fans.push_back(ans2[j]);
        j++;
      } else {
        break;
      }
    }
  }
  return fans;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int n, m, q;
  cin >> n >> m >> q;
  int x, y, a;
  for (int i = 1; i < n; i++) {
    cin >> x >> y;
    g[x].push_back(y);
    g[y].push_back(x);
  }
  dfs(1, 0);
  for (int i = 1; i <= 20; i++) {
    for (int j = 1; j <= n; j++) {
      par[j][i] = par[par[j][i - 1]][i - 1];
    }
  }
  for (int i = 1; i <= m; i++) {
    cin >> x;
    if (ans[x][0].size() <= 9) ans[x][0].push_back(i);
  }
  for (int i = 1; i <= 18; i++) {
    for (int j = 1; j <= n; j++) {
      int u = 0, v = 0;
      while (ans[j][i].size() <= 9) {
        if (u < ans[j][i - 1].size()) {
          if (v < ans[par[j][i - 1]][i - 1].size()) {
            if (ans[j][i - 1][u] <= ans[par[j][i - 1]][i - 1][v]) {
              ans[j][i].push_back(ans[j][i - 1][u]);
              u++;
            } else {
              ans[j][i].push_back(ans[par[j][i - 1]][i - 1][v]);
              v++;
            }
          } else {
            ans[j][i].push_back(ans[j][i - 1][u]);
            u++;
          }
        } else {
          if (v < ans[par[j][i - 1]][i - 1].size()) {
            ans[j][i].push_back(ans[par[j][i - 1]][i - 1][v]);
            v++;
          } else {
            break;
          }
        }
      }
    }
  }
  while (q--) {
    cin >> x >> y >> a;
    vector<int> res = answer(x, y);
    cout << min((int)res.size(), a) << " ";
    for (int i = 0; i < min(a, (int)res.size()); i++) {
      cout << res[i] << " ";
    }
    cout << "\n";
  }
}
