SqlEngine: added cases to handle when a condition is specified on value.