**Describe the bug** A clear and concise description of what the bug is.  Condition b has no data in datasource, it should has no effect in the third sql statements, but in fact it cost triple time to run.