Condition is not checked

The DB that I’m using is a distance one and not the local DB of bubble. In order to check a “lead” status, I’m posting a graphal query to the DB that I’m working with. The problem is that bubble is not executing the query but reading it from the cache (or something like this) , so if the value is changing in the DB I’m not getting the updated one. Did anyone experience something like this?
he is how it looks: