Pass results of a Query as parameters of cypher projection

Hi,

I'm wondering if it's possible pass results from a query in a graph algo apoc with a cypher projection.

Here a toy example

CALL algo.unionFind.stream("
                    with  [1,2,3,4] as nodes unwind nodes as nod
                    return  nod as id",
                    "with [{source:1, target:2},
                             {source:1, target:3}] as rels 
                     unwind rels as rel 
                     return rel.source as source,rel.target as target",
                     {graph:'cypher', iterations:20})
YIELD nodeId,setId
RETURN nodeId, setId

Pseudo code

WITH 
[1,2,3,4] as nodes,
[{source:1, target:2},
 {source:1, target:3}] as rels
CALL algo.unionFind.stream("
                    with  $nodes as nodes unwind nodes as nod
                    return  nod as id",
                    "with $rels as rels 
                     unwind rels as rel 
                     return rel.source as source,rel.target as target",
                     {graph:'cypher', iterations:20})
YIELD nodeId,setId
RETURN nodeId, setId

Thank you,
Nunzio