Functionaity of Alert Config Option: If no data or all values are null

My alert conditions contains query A and query B.
One of those queries returns data and another one does not.

I assumed that option: “If not data or all values are null” will not be triggered in that case?

Is there some workaround to achieve that?