Return random LIMIT k neighbors

I have a very basic task, but seems hard to achieve.
-Find each user’s first-degree neighbors
-Print them into file, limited to 5 neighbors for each person

What I have tried is the following, however it is not working, any tips?

random = SELECT s
FROM FirstNeighbors:s
LIMIT 5
f.println(start_node, s.name);

This works for me:

CREATE QUERY test1(VERTEX<pmb> pmb_id) FOR GRAPH olam6 {
  start = {pmb_id};
  neighbours =
    SELECT trg
    FROM   start:src -(proc_dn)-> pmb:trg
    LIMIT  5;
  PRINT start, neighbours;
}

I guess, you need to use the proper SELECT with an edge to get to the neighbours.

This also works:

CREATE QUERY test1(VERTEX<pmb> pmb_id) FOR GRAPH olam6 {
  start = {pmb_id};
  neighbours =
    SELECT trg
    FROM   start:src -(proc_dn)-> pmb:trg;
  result =
    SELECT src
    FROM   neighbours:src
    LIMIT  5;
  PRINT result;
}

thanks for replying, it is helpful!