As you understand, you need to use expandin your subquery so that it looks like
SELECT out('IsFromCategory') FROM (SELECT expand(out('Posted')) FROM
It, like the subquery without expand, returns a list @rid, so there is nothing to choose, and after the extension you get a list with all the entities (vertices) from which you can move along any edge they have.
( , , . , - , , - , , , ).