That helps a little, thanks!
But the other problem remains: if a workflow has several queries the generic query editor only returns the text of one. The following one has 5.

<col>
<val>WKF1049</val>
</col>
<col>
<val>Abfrage: ANZ_PRD_KREDIT_KART gleich 0</val>
</col>
<col>
<val>Onboarding_ITPPC-17</val>
</col>
Do you know how I can get the text of all queries in a workflow?