Automation designer - Numeric variables in Test Variable action

Well, this is weird. The App works depending on the Query!

If I run a simple query getting 3 values, assigning one of them (NUM2) to a variable TREAD, it works:

Result:
image

Now, if I use my query, which returns a row using the same column names as above, not changing anything else on the App, it doesn't work!:

Result:
image

And it is evident that the variable value is correctly assigned.

Here is the new App;
App1.2.txt (11.7 KB)

I don't understand why changing the query to one that gives similar results (a row with same column names) would make the App (specifically the "Test variable1" action) fail?