Inconsistencies between queries in App and Workflow

Hello,

I've been trying to use query result to another query as statement parameter (see screenshots).

Queries executed in App work but it is not the case for the ones in Workflow (same queries). I don't know if I'm missing something or if it's a bug.

Thanks in advance for your help.


ss_2
ss_1