# QueryInst

Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 4480) END FROM WidgetInst WHERE WidgetInstId = 4480) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4606;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 4481) END FROM WidgetInst WHERE WidgetInstId = 4481) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4607;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 4482) END FROM WidgetInst WHERE WidgetInstId = 4482) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4608;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 4483) END FROM WidgetInst WHERE WidgetInstId = 4483) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4609;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 4484) END FROM WidgetInst WHERE WidgetInstId = 4484) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4610;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 4485) END FROM WidgetInst WHERE WidgetInstId = 4485) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4611;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 4633) END FROM WidgetInst WHERE WidgetInstId = 4633) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4640;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 4634) END FROM WidgetInst WHERE WidgetInstId = 4634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4641;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 4635) END FROM WidgetInst WHERE WidgetInstId = 4635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4642;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 4636) END FROM WidgetInst WHERE WidgetInstId = 4636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4643;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 4637) END FROM WidgetInst WHERE WidgetInstId = 4637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4644;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 4638) END FROM WidgetInst WHERE WidgetInstId = 4638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4645;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 4639) END FROM WidgetInst WHERE WidgetInstId = 4639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4646;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4633) END FROM WidgetInst WHERE WidgetInstId = 4633) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4654;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4634) END FROM WidgetInst WHERE WidgetInstId = 4634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4655;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4635) END FROM WidgetInst WHERE WidgetInstId = 4635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4656;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4636) END FROM WidgetInst WHERE WidgetInstId = 4636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4657;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4637) END FROM WidgetInst WHERE WidgetInstId = 4637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4658;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4638) END FROM WidgetInst WHERE WidgetInstId = 4638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4659;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4639) END FROM WidgetInst WHERE WidgetInstId = 4639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4660;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4633) END FROM WidgetInst WHERE WidgetInstId = 4633) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4668;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4634) END FROM WidgetInst WHERE WidgetInstId = 4634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4669;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4635) END FROM WidgetInst WHERE WidgetInstId = 4635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4670;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4636) END FROM WidgetInst WHERE WidgetInstId = 4636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4671;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4637) END FROM WidgetInst WHERE WidgetInstId = 4637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4672;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4638) END FROM WidgetInst WHERE WidgetInstId = 4638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4673;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4639) END FROM WidgetInst WHERE WidgetInstId = 4639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4674;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4633) END FROM WidgetInst WHERE WidgetInstId = 4633) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4682;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4634) END FROM WidgetInst WHERE WidgetInstId = 4634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4683;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4635) END FROM WidgetInst WHERE WidgetInstId = 4635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4684;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4636) END FROM WidgetInst WHERE WidgetInstId = 4636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4685;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4637) END FROM WidgetInst WHERE WidgetInstId = 4637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4686;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4638) END FROM WidgetInst WHERE WidgetInstId = 4638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4687;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4639) END FROM WidgetInst WHERE WidgetInstId = 4639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4688;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4633) END FROM WidgetInst WHERE WidgetInstId = 4633) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4696;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4634) END FROM WidgetInst WHERE WidgetInstId = 4634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4697;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4635) END FROM WidgetInst WHERE WidgetInstId = 4635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4698;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4636) END FROM WidgetInst WHERE WidgetInstId = 4636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4699;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4637) END FROM WidgetInst WHERE WidgetInstId = 4637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4700;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4638) END FROM WidgetInst WHERE WidgetInstId = 4638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4701;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4639) END FROM WidgetInst WHERE WidgetInstId = 4639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4702;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4633) END FROM WidgetInst WHERE WidgetInstId = 4633) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4710;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4634) END FROM WidgetInst WHERE WidgetInstId = 4634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4711;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4635) END FROM WidgetInst WHERE WidgetInstId = 4635) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4712;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4636) END FROM WidgetInst WHERE WidgetInstId = 4636) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4713;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4637) END FROM WidgetInst WHERE WidgetInstId = 4637) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4714;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4638) END FROM WidgetInst WHERE WidgetInstId = 4638) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4715;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 4639) END FROM WidgetInst WHERE WidgetInstId = 4639) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4716;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 3086) END FROM WidgetInst WHERE WidgetInstId = 3086) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 2691) END FROM WidgetInst WHERE WidgetInstId = 2691)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4724;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 3087) END FROM WidgetInst WHERE WidgetInstId = 3087) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 2691) END FROM WidgetInst WHERE WidgetInstId = 2691)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4725;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 3088) END FROM WidgetInst WHERE WidgetInstId = 3088) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 2691) END FROM WidgetInst WHERE WidgetInstId = 2691)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4726;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 3089) END FROM WidgetInst WHERE WidgetInstId = 3089) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 2691) END FROM WidgetInst WHERE WidgetInstId = 2691)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4727;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 3090) END FROM WidgetInst WHERE WidgetInstId = 3090) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 2691) END FROM WidgetInst WHERE WidgetInstId = 2691)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4728;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 3091) END FROM WidgetInst WHERE WidgetInstId = 3091) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 2691) END FROM WidgetInst WHERE WidgetInstId = 2691)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4729;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 3092) END FROM WidgetInst WHERE WidgetInstId = 3092) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 2691) END FROM WidgetInst WHERE WidgetInstId = 2691)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4730;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 4738) END FROM WidgetInst WHERE WidgetInstId = 4738) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4745;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 4739) END FROM WidgetInst WHERE WidgetInstId = 4739) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4746;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 4740) END FROM WidgetInst WHERE WidgetInstId = 4740) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4747;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 4741) END FROM WidgetInst WHERE WidgetInstId = 4741) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4748;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 4742) END FROM WidgetInst WHERE WidgetInstId = 4742) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4749;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 4743) END FROM WidgetInst WHERE WidgetInstId = 4743) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4750;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 4744) END FROM WidgetInst WHERE WidgetInstId = 4744) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4751;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 4763;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 4763;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 4763;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 4763;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 4763;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 4763;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 4764;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 4764;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 4764;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 4764;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 4764;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 4764;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4765;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4766;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 4769) END FROM WidgetInst WHERE WidgetInstId = 4769) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4771;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 4770) END FROM WidgetInst WHERE WidgetInstId = 4770) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4772;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4775;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4776;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 2688) END FROM WidgetInst WHERE WidgetInstId = 2688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4787;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 2688) END FROM WidgetInst WHERE WidgetInstId = 2688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4788;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 2688) END FROM WidgetInst WHERE WidgetInstId = 2688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4793;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 2688) END FROM WidgetInst WHERE WidgetInstId = 2688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4794;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4799;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4800;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 4803) END FROM WidgetInst WHERE WidgetInstId = 4803) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4805;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 4804) END FROM WidgetInst WHERE WidgetInstId = 4804) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4806;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 4803) END FROM WidgetInst WHERE WidgetInstId = 4803) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4811;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 4804) END FROM WidgetInst WHERE WidgetInstId = 4804) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4812;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4817;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4818;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 4821) END FROM WidgetInst WHERE WidgetInstId = 4821) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4823;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 4822) END FROM WidgetInst WHERE WidgetInstId = 4822) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4824;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 4821) END FROM WidgetInst WHERE WidgetInstId = 4821) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4829;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 4822) END FROM WidgetInst WHERE WidgetInstId = 4822) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4830;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 4821) END FROM WidgetInst WHERE WidgetInstId = 4821) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4835;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 4822) END FROM WidgetInst WHERE WidgetInstId = 4822) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4836;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4841;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4842;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 4845) END FROM WidgetInst WHERE WidgetInstId = 4845)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4851;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 4846) END FROM WidgetInst WHERE WidgetInstId = 4846)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4852;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 4849) END FROM WidgetInst WHERE WidgetInstId = 4849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4857;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 4850) END FROM WidgetInst WHERE WidgetInstId = 4850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4858;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 4849) END FROM WidgetInst WHERE WidgetInstId = 4849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4859;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 4850) END FROM WidgetInst WHERE WidgetInstId = 4850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4860;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 4849) END FROM WidgetInst WHERE WidgetInstId = 4849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4865;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 4850) END FROM WidgetInst WHERE WidgetInstId = 4850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4866;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 4849) END FROM WidgetInst WHERE WidgetInstId = 4849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4867;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 4850) END FROM WidgetInst WHERE WidgetInstId = 4850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4868;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 4845) END FROM WidgetInst WHERE WidgetInstId = 4845)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4869;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 4846) END FROM WidgetInst WHERE WidgetInstId = 4846)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4870;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 4849) END FROM WidgetInst WHERE WidgetInstId = 4849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4875;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 4850) END FROM WidgetInst WHERE WidgetInstId = 4850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4876;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 4849) END FROM WidgetInst WHERE WidgetInstId = 4849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4877;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 4850) END FROM WidgetInst WHERE WidgetInstId = 4850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4878;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 4881) END FROM WidgetInst WHERE WidgetInstId = 4881) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4883;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 4882) END FROM WidgetInst WHERE WidgetInstId = 4882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4884;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 4849) END FROM WidgetInst WHERE WidgetInstId = 4849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4887;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 4850) END FROM WidgetInst WHERE WidgetInstId = 4850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4888;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 4849) END FROM WidgetInst WHERE WidgetInstId = 4849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4889;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 4850) END FROM WidgetInst WHERE WidgetInstId = 4850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4890;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 4881) END FROM WidgetInst WHERE WidgetInstId = 4881) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4891;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 4882) END FROM WidgetInst WHERE WidgetInstId = 4882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4892;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 4849) END FROM WidgetInst WHERE WidgetInstId = 4849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4895;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 4850) END FROM WidgetInst WHERE WidgetInstId = 4850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4896;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 4849) END FROM WidgetInst WHERE WidgetInstId = 4849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4897;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 4850) END FROM WidgetInst WHERE WidgetInstId = 4850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4898;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4899;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4900;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4905;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4906;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 4971) END FROM WidgetInst WHERE WidgetInstId = 4971) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4973;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 4972) END FROM WidgetInst WHERE WidgetInstId = 4972) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4974;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 4971) END FROM WidgetInst WHERE WidgetInstId = 4971) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4977;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 4972) END FROM WidgetInst WHERE WidgetInstId = 4972) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4978;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 4971) END FROM WidgetInst WHERE WidgetInstId = 4971) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4981;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 4972) END FROM WidgetInst WHERE WidgetInstId = 4972) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4982;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4985;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4986;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5003) END FROM WidgetInst WHERE WidgetInstId = 5003) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5005;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5004) END FROM WidgetInst WHERE WidgetInstId = 5004) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5006;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5003) END FROM WidgetInst WHERE WidgetInstId = 5003) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5009;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5004) END FROM WidgetInst WHERE WidgetInstId = 5004) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5010;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5003) END FROM WidgetInst WHERE WidgetInstId = 5003) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5013;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5004) END FROM WidgetInst WHERE WidgetInstId = 5004) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5014;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5017;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5018;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5043) END FROM WidgetInst WHERE WidgetInstId = 5043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5045;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5044) END FROM WidgetInst WHERE WidgetInstId = 5044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5046;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5043) END FROM WidgetInst WHERE WidgetInstId = 5043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5049;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5044) END FROM WidgetInst WHERE WidgetInstId = 5044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5050;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5043) END FROM WidgetInst WHERE WidgetInstId = 5043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5053;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5044) END FROM WidgetInst WHERE WidgetInstId = 5044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5054;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5057;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5058;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5083) END FROM WidgetInst WHERE WidgetInstId = 5083) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5085;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5084) END FROM WidgetInst WHERE WidgetInstId = 5084) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5086;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5083) END FROM WidgetInst WHERE WidgetInstId = 5083) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5089;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5084) END FROM WidgetInst WHERE WidgetInstId = 5084) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5090;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5083) END FROM WidgetInst WHERE WidgetInstId = 5083) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5084) END FROM WidgetInst WHERE WidgetInstId = 5084) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5094;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5095) END FROM WidgetInst WHERE WidgetInstId = 5095) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5083) END FROM WidgetInst WHERE WidgetInstId = 5083)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5097;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5096) END FROM WidgetInst WHERE WidgetInstId = 5096) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5084) END FROM WidgetInst WHERE WidgetInstId = 5084)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5098;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5095) END FROM WidgetInst WHERE WidgetInstId = 5095) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5083) END FROM WidgetInst WHERE WidgetInstId = 5083)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5101;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5096) END FROM WidgetInst WHERE WidgetInstId = 5096) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5084) END FROM WidgetInst WHERE WidgetInstId = 5084)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5102;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5095) END FROM WidgetInst WHERE WidgetInstId = 5095) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5083) END FROM WidgetInst WHERE WidgetInstId = 5083)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5105;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5096) END FROM WidgetInst WHERE WidgetInstId = 5096) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5084) END FROM WidgetInst WHERE WidgetInstId = 5084)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5106;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5109;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5110;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5113) END FROM WidgetInst WHERE WidgetInstId = 5113) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5115;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5114) END FROM WidgetInst WHERE WidgetInstId = 5114) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5116;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5113) END FROM WidgetInst WHERE WidgetInstId = 5113) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5121;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5114) END FROM WidgetInst WHERE WidgetInstId = 5114) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5122;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5113) END FROM WidgetInst WHERE WidgetInstId = 5113) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5127;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5114) END FROM WidgetInst WHERE WidgetInstId = 5114) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5128;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 5113) END FROM WidgetInst WHERE WidgetInstId = 5113) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5149;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 5114) END FROM WidgetInst WHERE WidgetInstId = 5114) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5150;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5155;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5156;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5161) END FROM WidgetInst WHERE WidgetInstId = 5161) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5163;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5162) END FROM WidgetInst WHERE WidgetInstId = 5162) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5164;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5161) END FROM WidgetInst WHERE WidgetInstId = 5161) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5169;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5162) END FROM WidgetInst WHERE WidgetInstId = 5162) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5170;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5161) END FROM WidgetInst WHERE WidgetInstId = 5161) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5175;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5162) END FROM WidgetInst WHERE WidgetInstId = 5162) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5176;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 5161) END FROM WidgetInst WHERE WidgetInstId = 5161) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5197;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 5162) END FROM WidgetInst WHERE WidgetInstId = 5162) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5198;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 5205) END FROM WidgetInst WHERE WidgetInstId = 5205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5207;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 5206) END FROM WidgetInst WHERE WidgetInstId = 5206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5208;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5205) END FROM WidgetInst WHERE WidgetInstId = 5205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5211;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5206) END FROM WidgetInst WHERE WidgetInstId = 5206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5212;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5205) END FROM WidgetInst WHERE WidgetInstId = 5205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5215;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5206) END FROM WidgetInst WHERE WidgetInstId = 5206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5216;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5205) END FROM WidgetInst WHERE WidgetInstId = 5205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5219;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5206) END FROM WidgetInst WHERE WidgetInstId = 5206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5220;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5205) END FROM WidgetInst WHERE WidgetInstId = 5205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5223;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5206) END FROM WidgetInst WHERE WidgetInstId = 5206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5224;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5205) END FROM WidgetInst WHERE WidgetInstId = 5205) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5227;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5206) END FROM WidgetInst WHERE WidgetInstId = 5206) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5228;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 4763) END FROM WidgetInst WHERE WidgetInstId = 4763) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 2691) END FROM WidgetInst WHERE WidgetInstId = 2691)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5231;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 4764) END FROM WidgetInst WHERE WidgetInstId = 4764) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 2691) END FROM WidgetInst WHERE WidgetInstId = 2691)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5232;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 5235) END FROM WidgetInst WHERE WidgetInstId = 5235) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5237;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 5236) END FROM WidgetInst WHERE WidgetInstId = 5236) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5238;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Flow' AND WidgetInstId = 5293) END FROM WidgetInst WHERE WidgetInstId = 5293) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5294;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 5293) END FROM WidgetInst WHERE WidgetInstId = 5293) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5296;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mixed' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5302;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5310;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 5306) END FROM WidgetInst WHERE WidgetInstId = 5306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5312;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 5308) END FROM WidgetInst WHERE WidgetInstId = 5308) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5314;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5316;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 5306) END FROM WidgetInst WHERE WidgetInstId = 5306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5318;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 5308) END FROM WidgetInst WHERE WidgetInstId = 5308) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5320;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5322;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 5306) END FROM WidgetInst WHERE WidgetInstId = 5306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5324;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 5308) END FROM WidgetInst WHERE WidgetInstId = 5308) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5326;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5328;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 5306) END FROM WidgetInst WHERE WidgetInstId = 5306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5330;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 5308) END FROM WidgetInst WHERE WidgetInstId = 5308) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5332;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5334;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 5306) END FROM WidgetInst WHERE WidgetInstId = 5306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5336;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 5308) END FROM WidgetInst WHERE WidgetInstId = 5308) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5338;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5340;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 5306) END FROM WidgetInst WHERE WidgetInstId = 5306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5342;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 5308) END FROM WidgetInst WHERE WidgetInstId = 5308) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5344;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5346;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 5306) END FROM WidgetInst WHERE WidgetInstId = 5306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5348;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 5308) END FROM WidgetInst WHERE WidgetInstId = 5308) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5350;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5352;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5354;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5356;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Aw' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5358;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rijn' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5360;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5362;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5364;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5366;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5368;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5370;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 5301) END FROM WidgetInst WHERE WidgetInstId = 5301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5372;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant Length' AND WidgetInstId = 5385) END FROM WidgetInst WHERE WidgetInstId = 5385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5386;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 5395) END FROM WidgetInst WHERE WidgetInstId = 5395) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5396;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 5398) END FROM WidgetInst WHERE WidgetInstId = 5398) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5399;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 5403) END FROM WidgetInst WHERE WidgetInstId = 5403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5404;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Input Parameters' AND WidgetInstId = 5403) END FROM WidgetInst WHERE WidgetInstId = 5403) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5406;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 5395) END FROM WidgetInst WHERE WidgetInstId = 5395) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5421;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 5435;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 5435;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 5435;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 5435;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 5435;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 5435;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5436;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 5438) END FROM WidgetInst WHERE WidgetInstId = 5438) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5439;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5441;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 86) END FROM WidgetInst WHERE WidgetInstId = 86) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5447;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 86) END FROM WidgetInst WHERE WidgetInstId = 86) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5450;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5453;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5455) END FROM WidgetInst WHERE WidgetInstId = 5455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5456;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5455) END FROM WidgetInst WHERE WidgetInstId = 5455) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5459;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5462;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5464) END FROM WidgetInst WHERE WidgetInstId = 5464) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5465;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5464) END FROM WidgetInst WHERE WidgetInstId = 5464) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5468;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 5464) END FROM WidgetInst WHERE WidgetInstId = 5464) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5471;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5474;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5476) END FROM WidgetInst WHERE WidgetInstId = 5476)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5479;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5478) END FROM WidgetInst WHERE WidgetInstId = 5478) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5482;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5478) END FROM WidgetInst WHERE WidgetInstId = 5478) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5483;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5478) END FROM WidgetInst WHERE WidgetInstId = 5478) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5486;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5478) END FROM WidgetInst WHERE WidgetInstId = 5478) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5487;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5476) END FROM WidgetInst WHERE WidgetInstId = 5476)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5488;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5478) END FROM WidgetInst WHERE WidgetInstId = 5478) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5491;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5478) END FROM WidgetInst WHERE WidgetInstId = 5478) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5492;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5494) END FROM WidgetInst WHERE WidgetInstId = 5494) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5495;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5478) END FROM WidgetInst WHERE WidgetInstId = 5478) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5497;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5478) END FROM WidgetInst WHERE WidgetInstId = 5478) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5498;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 5494) END FROM WidgetInst WHERE WidgetInstId = 5494) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5499;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5478) END FROM WidgetInst WHERE WidgetInstId = 5478) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5501;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5478) END FROM WidgetInst WHERE WidgetInstId = 5478) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5502;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5503;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5506;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5539) END FROM WidgetInst WHERE WidgetInstId = 5539) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5540;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5539) END FROM WidgetInst WHERE WidgetInstId = 5539) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5542;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5539) END FROM WidgetInst WHERE WidgetInstId = 5539) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5544;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5546;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5555) END FROM WidgetInst WHERE WidgetInstId = 5555) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5556;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5555) END FROM WidgetInst WHERE WidgetInstId = 5555) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5558;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5555) END FROM WidgetInst WHERE WidgetInstId = 5555) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5560;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5562;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5575) END FROM WidgetInst WHERE WidgetInstId = 5575) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5576;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5575) END FROM WidgetInst WHERE WidgetInstId = 5575) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5578;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5575) END FROM WidgetInst WHERE WidgetInstId = 5575) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5580;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5582;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5595) END FROM WidgetInst WHERE WidgetInstId = 5595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5596;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5595) END FROM WidgetInst WHERE WidgetInstId = 5595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5598;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5595) END FROM WidgetInst WHERE WidgetInstId = 5595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5600;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5601) END FROM WidgetInst WHERE WidgetInstId = 5601) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5595) END FROM WidgetInst WHERE WidgetInstId = 5595)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5602;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5601) END FROM WidgetInst WHERE WidgetInstId = 5601) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5595) END FROM WidgetInst WHERE WidgetInstId = 5595)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5604;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 5601) END FROM WidgetInst WHERE WidgetInstId = 5601) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5595) END FROM WidgetInst WHERE WidgetInstId = 5595)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5606;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5608;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5610) END FROM WidgetInst WHERE WidgetInstId = 5610) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5611;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5610) END FROM WidgetInst WHERE WidgetInstId = 5610) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5614;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5610) END FROM WidgetInst WHERE WidgetInstId = 5610) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5617;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 5610) END FROM WidgetInst WHERE WidgetInstId = 5610) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5628;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 5435) END FROM WidgetInst WHERE WidgetInstId = 5435) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5631;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5634) END FROM WidgetInst WHERE WidgetInstId = 5634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5635;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5634) END FROM WidgetInst WHERE WidgetInstId = 5634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5638;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5634) END FROM WidgetInst WHERE WidgetInstId = 5634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5641;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 5634) END FROM WidgetInst WHERE WidgetInstId = 5634) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5652;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 5656) END FROM WidgetInst WHERE WidgetInstId = 5656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5657;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5656) END FROM WidgetInst WHERE WidgetInstId = 5656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5659;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5656) END FROM WidgetInst WHERE WidgetInstId = 5656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5661;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5656) END FROM WidgetInst WHERE WidgetInstId = 5656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5663;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5656) END FROM WidgetInst WHERE WidgetInstId = 5656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5665;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 5656) END FROM WidgetInst WHERE WidgetInstId = 5656) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5667;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 231) END FROM WidgetInst WHERE WidgetInstId = 231) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 89) END FROM WidgetInst WHERE WidgetInstId = 89)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5669;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 5671) END FROM WidgetInst WHERE WidgetInstId = 5671) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5672;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 5686;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 5686;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 5686;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 5686;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 5686;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 5686;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 5687;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 5687;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 5687;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 5687;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 5687;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 5687;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 5688;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 5688;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 5688;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 5688;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 5688;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 5688;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 5689;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 5689;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 5689;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 5689;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 5689;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 5689;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 5690;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 5690;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 5690;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 5690;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 5690;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 5690;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 5691;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 5691;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 5691;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 5691;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 5691;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 5691;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5692;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5693;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5694;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5695;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5696;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5697;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 5704) END FROM WidgetInst WHERE WidgetInstId = 5704) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5710;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 5705) END FROM WidgetInst WHERE WidgetInstId = 5705) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5711;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 5706) END FROM WidgetInst WHERE WidgetInstId = 5706) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5712;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 5707) END FROM WidgetInst WHERE WidgetInstId = 5707) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5713;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 5708) END FROM WidgetInst WHERE WidgetInstId = 5708) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5714;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 5709) END FROM WidgetInst WHERE WidgetInstId = 5709) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5715;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5722;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5723;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5724;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5725;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5726;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5727;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5758;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5759;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5760;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5761;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5762;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5763;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5776;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5777;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5778;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5779;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5780;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5781;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5794;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5795;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5796;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5797;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5798;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5799;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5806) END FROM WidgetInst WHERE WidgetInstId = 5806) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5812;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5807) END FROM WidgetInst WHERE WidgetInstId = 5807) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5813;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5808) END FROM WidgetInst WHERE WidgetInstId = 5808) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5814;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5809) END FROM WidgetInst WHERE WidgetInstId = 5809) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5815;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5810) END FROM WidgetInst WHERE WidgetInstId = 5810) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5816;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5811) END FROM WidgetInst WHERE WidgetInstId = 5811) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5817;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5806) END FROM WidgetInst WHERE WidgetInstId = 5806) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5830;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5807) END FROM WidgetInst WHERE WidgetInstId = 5807) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5831;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5808) END FROM WidgetInst WHERE WidgetInstId = 5808) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5832;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5809) END FROM WidgetInst WHERE WidgetInstId = 5809) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5833;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5810) END FROM WidgetInst WHERE WidgetInstId = 5810) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5834;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5811) END FROM WidgetInst WHERE WidgetInstId = 5811) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5835;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5848;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5849;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5850;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5851;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5852;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5853;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5860) END FROM WidgetInst WHERE WidgetInstId = 5860) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5866;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5861) END FROM WidgetInst WHERE WidgetInstId = 5861) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5867;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5862) END FROM WidgetInst WHERE WidgetInstId = 5862) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5868;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5863) END FROM WidgetInst WHERE WidgetInstId = 5863) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5869;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5864) END FROM WidgetInst WHERE WidgetInstId = 5864) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5870;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5865) END FROM WidgetInst WHERE WidgetInstId = 5865) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5871;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5860) END FROM WidgetInst WHERE WidgetInstId = 5860) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5884;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5861) END FROM WidgetInst WHERE WidgetInstId = 5861) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5885;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5862) END FROM WidgetInst WHERE WidgetInstId = 5862) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5886;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5863) END FROM WidgetInst WHERE WidgetInstId = 5863) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5887;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5864) END FROM WidgetInst WHERE WidgetInstId = 5864) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5888;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5865) END FROM WidgetInst WHERE WidgetInstId = 5865) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5889;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 5860) END FROM WidgetInst WHERE WidgetInstId = 5860) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5902;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 5861) END FROM WidgetInst WHERE WidgetInstId = 5861) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5903;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 5862) END FROM WidgetInst WHERE WidgetInstId = 5862) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5904;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 5863) END FROM WidgetInst WHERE WidgetInstId = 5863) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5905;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 5864) END FROM WidgetInst WHERE WidgetInstId = 5864) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5906;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 5865) END FROM WidgetInst WHERE WidgetInstId = 5865) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5907;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5920;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5921;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5922;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5923;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5924;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5925;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5932) END FROM WidgetInst WHERE WidgetInstId = 5932)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5950;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5933) END FROM WidgetInst WHERE WidgetInstId = 5933)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5951;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5934) END FROM WidgetInst WHERE WidgetInstId = 5934)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5952;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5935) END FROM WidgetInst WHERE WidgetInstId = 5935)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5953;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5936) END FROM WidgetInst WHERE WidgetInstId = 5936)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5954;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5937) END FROM WidgetInst WHERE WidgetInstId = 5937)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5955;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5944) END FROM WidgetInst WHERE WidgetInstId = 5944) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5968;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5945) END FROM WidgetInst WHERE WidgetInstId = 5945) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5969;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5946) END FROM WidgetInst WHERE WidgetInstId = 5946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5970;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5947) END FROM WidgetInst WHERE WidgetInstId = 5947) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5971;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5948) END FROM WidgetInst WHERE WidgetInstId = 5948) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5972;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5949) END FROM WidgetInst WHERE WidgetInstId = 5949) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5973;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5944) END FROM WidgetInst WHERE WidgetInstId = 5944) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5974;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5945) END FROM WidgetInst WHERE WidgetInstId = 5945) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5975;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5946) END FROM WidgetInst WHERE WidgetInstId = 5946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5976;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5947) END FROM WidgetInst WHERE WidgetInstId = 5947) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5977;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5948) END FROM WidgetInst WHERE WidgetInstId = 5948) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5978;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5949) END FROM WidgetInst WHERE WidgetInstId = 5949) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5979;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5944) END FROM WidgetInst WHERE WidgetInstId = 5944) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5992;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5945) END FROM WidgetInst WHERE WidgetInstId = 5945) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5993;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5946) END FROM WidgetInst WHERE WidgetInstId = 5946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5994;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5947) END FROM WidgetInst WHERE WidgetInstId = 5947) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5995;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5948) END FROM WidgetInst WHERE WidgetInstId = 5948) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5996;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5949) END FROM WidgetInst WHERE WidgetInstId = 5949) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5997;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5944) END FROM WidgetInst WHERE WidgetInstId = 5944) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5998;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5945) END FROM WidgetInst WHERE WidgetInstId = 5945) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5999;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5946) END FROM WidgetInst WHERE WidgetInstId = 5946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6000;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5947) END FROM WidgetInst WHERE WidgetInstId = 5947) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6001;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5948) END FROM WidgetInst WHERE WidgetInstId = 5948) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6002;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5949) END FROM WidgetInst WHERE WidgetInstId = 5949) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6003;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5932) END FROM WidgetInst WHERE WidgetInstId = 5932)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6004;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5933) END FROM WidgetInst WHERE WidgetInstId = 5933)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6005;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5934) END FROM WidgetInst WHERE WidgetInstId = 5934)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6006;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5935) END FROM WidgetInst WHERE WidgetInstId = 5935)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6007;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5936) END FROM WidgetInst WHERE WidgetInstId = 5936)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6008;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5937) END FROM WidgetInst WHERE WidgetInstId = 5937)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6009;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5944) END FROM WidgetInst WHERE WidgetInstId = 5944) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6022;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5945) END FROM WidgetInst WHERE WidgetInstId = 5945) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6023;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5946) END FROM WidgetInst WHERE WidgetInstId = 5946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6024;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5947) END FROM WidgetInst WHERE WidgetInstId = 5947) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6025;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5948) END FROM WidgetInst WHERE WidgetInstId = 5948) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6026;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5949) END FROM WidgetInst WHERE WidgetInstId = 5949) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6027;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5944) END FROM WidgetInst WHERE WidgetInstId = 5944) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6028;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5945) END FROM WidgetInst WHERE WidgetInstId = 5945) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6029;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5946) END FROM WidgetInst WHERE WidgetInstId = 5946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6030;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5947) END FROM WidgetInst WHERE WidgetInstId = 5947) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6031;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5948) END FROM WidgetInst WHERE WidgetInstId = 5948) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6032;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5949) END FROM WidgetInst WHERE WidgetInstId = 5949) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6033;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6040) END FROM WidgetInst WHERE WidgetInstId = 6040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6046;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6041) END FROM WidgetInst WHERE WidgetInstId = 6041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6047;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6042) END FROM WidgetInst WHERE WidgetInstId = 6042) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6048;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6043) END FROM WidgetInst WHERE WidgetInstId = 6043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6049;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6044) END FROM WidgetInst WHERE WidgetInstId = 6044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6050;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6045) END FROM WidgetInst WHERE WidgetInstId = 6045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6051;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5944) END FROM WidgetInst WHERE WidgetInstId = 5944) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6058;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5945) END FROM WidgetInst WHERE WidgetInstId = 5945) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6059;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5946) END FROM WidgetInst WHERE WidgetInstId = 5946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6060;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5947) END FROM WidgetInst WHERE WidgetInstId = 5947) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6061;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5948) END FROM WidgetInst WHERE WidgetInstId = 5948) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6062;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5949) END FROM WidgetInst WHERE WidgetInstId = 5949) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6063;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5944) END FROM WidgetInst WHERE WidgetInstId = 5944) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6064;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5945) END FROM WidgetInst WHERE WidgetInstId = 5945) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6065;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5946) END FROM WidgetInst WHERE WidgetInstId = 5946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6066;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5947) END FROM WidgetInst WHERE WidgetInstId = 5947) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6067;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5948) END FROM WidgetInst WHERE WidgetInstId = 5948) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6068;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5949) END FROM WidgetInst WHERE WidgetInstId = 5949) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6069;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 6040) END FROM WidgetInst WHERE WidgetInstId = 6040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6070;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 6041) END FROM WidgetInst WHERE WidgetInstId = 6041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6071;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 6042) END FROM WidgetInst WHERE WidgetInstId = 6042) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6072;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 6043) END FROM WidgetInst WHERE WidgetInstId = 6043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6073;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 6044) END FROM WidgetInst WHERE WidgetInstId = 6044) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6074;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 6045) END FROM WidgetInst WHERE WidgetInstId = 6045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6075;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5944) END FROM WidgetInst WHERE WidgetInstId = 5944) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6082;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5945) END FROM WidgetInst WHERE WidgetInstId = 5945) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6083;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5946) END FROM WidgetInst WHERE WidgetInstId = 5946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6084;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5947) END FROM WidgetInst WHERE WidgetInstId = 5947) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6085;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5948) END FROM WidgetInst WHERE WidgetInstId = 5948) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6086;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 5949) END FROM WidgetInst WHERE WidgetInstId = 5949) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6087;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5944) END FROM WidgetInst WHERE WidgetInstId = 5944) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6088;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5945) END FROM WidgetInst WHERE WidgetInstId = 5945) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6089;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5946) END FROM WidgetInst WHERE WidgetInstId = 5946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6090;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5947) END FROM WidgetInst WHERE WidgetInstId = 5947) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6091;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5948) END FROM WidgetInst WHERE WidgetInstId = 5948) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6092;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 5949) END FROM WidgetInst WHERE WidgetInstId = 5949) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6094;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6095;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6096;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6097;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6098;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6099;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6112;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6113;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6114;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6115;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6116;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6117;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6310) END FROM WidgetInst WHERE WidgetInstId = 6310) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6316;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6311) END FROM WidgetInst WHERE WidgetInstId = 6311) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6317;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6312) END FROM WidgetInst WHERE WidgetInstId = 6312) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6318;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6313) END FROM WidgetInst WHERE WidgetInstId = 6313) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6319;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6314) END FROM WidgetInst WHERE WidgetInstId = 6314) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6320;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6315) END FROM WidgetInst WHERE WidgetInstId = 6315) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6321;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6310) END FROM WidgetInst WHERE WidgetInstId = 6310) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6328;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6311) END FROM WidgetInst WHERE WidgetInstId = 6311) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6329;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6312) END FROM WidgetInst WHERE WidgetInstId = 6312) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6330;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6313) END FROM WidgetInst WHERE WidgetInstId = 6313) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6331;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6314) END FROM WidgetInst WHERE WidgetInstId = 6314) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6332;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6315) END FROM WidgetInst WHERE WidgetInstId = 6315) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6333;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6310) END FROM WidgetInst WHERE WidgetInstId = 6310) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6340;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6311) END FROM WidgetInst WHERE WidgetInstId = 6311) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6341;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6312) END FROM WidgetInst WHERE WidgetInstId = 6312) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6342;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6313) END FROM WidgetInst WHERE WidgetInstId = 6313) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6343;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6314) END FROM WidgetInst WHERE WidgetInstId = 6314) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6344;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6315) END FROM WidgetInst WHERE WidgetInstId = 6315) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6345;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6352;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6353;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6354;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6355;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6356;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6357;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6406) END FROM WidgetInst WHERE WidgetInstId = 6406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6412;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6407) END FROM WidgetInst WHERE WidgetInstId = 6407) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6413;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6408) END FROM WidgetInst WHERE WidgetInstId = 6408) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6414;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6409) END FROM WidgetInst WHERE WidgetInstId = 6409) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6415;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6410) END FROM WidgetInst WHERE WidgetInstId = 6410) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6416;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6411) END FROM WidgetInst WHERE WidgetInstId = 6411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6417;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6406) END FROM WidgetInst WHERE WidgetInstId = 6406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6424;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6407) END FROM WidgetInst WHERE WidgetInstId = 6407) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6425;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6408) END FROM WidgetInst WHERE WidgetInstId = 6408) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6426;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6409) END FROM WidgetInst WHERE WidgetInstId = 6409) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6427;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6410) END FROM WidgetInst WHERE WidgetInstId = 6410) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6428;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6411) END FROM WidgetInst WHERE WidgetInstId = 6411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6429;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6406) END FROM WidgetInst WHERE WidgetInstId = 6406) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6436;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6407) END FROM WidgetInst WHERE WidgetInstId = 6407) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6437;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6408) END FROM WidgetInst WHERE WidgetInstId = 6408) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6438;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6409) END FROM WidgetInst WHERE WidgetInstId = 6409) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6439;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6410) END FROM WidgetInst WHERE WidgetInstId = 6410) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6440;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6411) END FROM WidgetInst WHERE WidgetInstId = 6411) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6441;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6448;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6449;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6450;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6451;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6452;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6453;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6526) END FROM WidgetInst WHERE WidgetInstId = 6526) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6532;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6527) END FROM WidgetInst WHERE WidgetInstId = 6527) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6533;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6528) END FROM WidgetInst WHERE WidgetInstId = 6528) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6534;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6529) END FROM WidgetInst WHERE WidgetInstId = 6529) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6535;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6530) END FROM WidgetInst WHERE WidgetInstId = 6530) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6536;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6531) END FROM WidgetInst WHERE WidgetInstId = 6531) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6537;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6526) END FROM WidgetInst WHERE WidgetInstId = 6526) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6544;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6527) END FROM WidgetInst WHERE WidgetInstId = 6527) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6545;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6528) END FROM WidgetInst WHERE WidgetInstId = 6528) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6546;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6529) END FROM WidgetInst WHERE WidgetInstId = 6529) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6547;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6530) END FROM WidgetInst WHERE WidgetInstId = 6530) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6548;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6531) END FROM WidgetInst WHERE WidgetInstId = 6531) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6549;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6526) END FROM WidgetInst WHERE WidgetInstId = 6526) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6556;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6527) END FROM WidgetInst WHERE WidgetInstId = 6527) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6557;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6528) END FROM WidgetInst WHERE WidgetInstId = 6528) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6558;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6529) END FROM WidgetInst WHERE WidgetInstId = 6529) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6559;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6530) END FROM WidgetInst WHERE WidgetInstId = 6530) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6560;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6531) END FROM WidgetInst WHERE WidgetInstId = 6531) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6561;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6568;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6569;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6570;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6571;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6572;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6573;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6646) END FROM WidgetInst WHERE WidgetInstId = 6646) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6652;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6647) END FROM WidgetInst WHERE WidgetInstId = 6647) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6653;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6648) END FROM WidgetInst WHERE WidgetInstId = 6648) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6654;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6649) END FROM WidgetInst WHERE WidgetInstId = 6649) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6655;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6650) END FROM WidgetInst WHERE WidgetInstId = 6650) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6656;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6651) END FROM WidgetInst WHERE WidgetInstId = 6651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6657;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6646) END FROM WidgetInst WHERE WidgetInstId = 6646) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6664;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6647) END FROM WidgetInst WHERE WidgetInstId = 6647) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6665;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6648) END FROM WidgetInst WHERE WidgetInstId = 6648) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6666;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6649) END FROM WidgetInst WHERE WidgetInstId = 6649) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6667;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6650) END FROM WidgetInst WHERE WidgetInstId = 6650) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6668;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6651) END FROM WidgetInst WHERE WidgetInstId = 6651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6669;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6646) END FROM WidgetInst WHERE WidgetInstId = 6646) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6676;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6647) END FROM WidgetInst WHERE WidgetInstId = 6647) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6677;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6648) END FROM WidgetInst WHERE WidgetInstId = 6648) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6678;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6649) END FROM WidgetInst WHERE WidgetInstId = 6649) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6679;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6650) END FROM WidgetInst WHERE WidgetInstId = 6650) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6680;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6651) END FROM WidgetInst WHERE WidgetInstId = 6651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6681;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6682) END FROM WidgetInst WHERE WidgetInstId = 6682) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6646) END FROM WidgetInst WHERE WidgetInstId = 6646)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6688;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6683) END FROM WidgetInst WHERE WidgetInstId = 6683) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6647) END FROM WidgetInst WHERE WidgetInstId = 6647)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6689;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6684) END FROM WidgetInst WHERE WidgetInstId = 6684) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6648) END FROM WidgetInst WHERE WidgetInstId = 6648)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6690;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6685) END FROM WidgetInst WHERE WidgetInstId = 6685) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6649) END FROM WidgetInst WHERE WidgetInstId = 6649)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6691;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6686) END FROM WidgetInst WHERE WidgetInstId = 6686) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6650) END FROM WidgetInst WHERE WidgetInstId = 6650)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6692;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6687) END FROM WidgetInst WHERE WidgetInstId = 6687) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6651) END FROM WidgetInst WHERE WidgetInstId = 6651)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6693;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6682) END FROM WidgetInst WHERE WidgetInstId = 6682) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6646) END FROM WidgetInst WHERE WidgetInstId = 6646)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6700;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6683) END FROM WidgetInst WHERE WidgetInstId = 6683) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6647) END FROM WidgetInst WHERE WidgetInstId = 6647)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6701;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6684) END FROM WidgetInst WHERE WidgetInstId = 6684) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6648) END FROM WidgetInst WHERE WidgetInstId = 6648)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6702;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6685) END FROM WidgetInst WHERE WidgetInstId = 6685) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6649) END FROM WidgetInst WHERE WidgetInstId = 6649)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6703;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6686) END FROM WidgetInst WHERE WidgetInstId = 6686) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6650) END FROM WidgetInst WHERE WidgetInstId = 6650)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6704;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6687) END FROM WidgetInst WHERE WidgetInstId = 6687) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6651) END FROM WidgetInst WHERE WidgetInstId = 6651)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6705;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6682) END FROM WidgetInst WHERE WidgetInstId = 6682) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6646) END FROM WidgetInst WHERE WidgetInstId = 6646)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6712;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6683) END FROM WidgetInst WHERE WidgetInstId = 6683) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6647) END FROM WidgetInst WHERE WidgetInstId = 6647)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6713;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6684) END FROM WidgetInst WHERE WidgetInstId = 6684) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6648) END FROM WidgetInst WHERE WidgetInstId = 6648)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6714;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6685) END FROM WidgetInst WHERE WidgetInstId = 6685) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6649) END FROM WidgetInst WHERE WidgetInstId = 6649)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6715;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6686) END FROM WidgetInst WHERE WidgetInstId = 6686) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6650) END FROM WidgetInst WHERE WidgetInstId = 6650)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6716;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 6687) END FROM WidgetInst WHERE WidgetInstId = 6687) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6651) END FROM WidgetInst WHERE WidgetInstId = 6651)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6717;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6724;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6725;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6726;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6727;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6728;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6729;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6736) END FROM WidgetInst WHERE WidgetInstId = 6736) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6742;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6737) END FROM WidgetInst WHERE WidgetInstId = 6737) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6743;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6738) END FROM WidgetInst WHERE WidgetInstId = 6738) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6744;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6739) END FROM WidgetInst WHERE WidgetInstId = 6739) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6745;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6740) END FROM WidgetInst WHERE WidgetInstId = 6740) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6746;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6741) END FROM WidgetInst WHERE WidgetInstId = 6741) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6747;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6736) END FROM WidgetInst WHERE WidgetInstId = 6736) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6760;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6737) END FROM WidgetInst WHERE WidgetInstId = 6737) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6761;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6738) END FROM WidgetInst WHERE WidgetInstId = 6738) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6762;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6739) END FROM WidgetInst WHERE WidgetInstId = 6739) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6763;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6740) END FROM WidgetInst WHERE WidgetInstId = 6740) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6764;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6741) END FROM WidgetInst WHERE WidgetInstId = 6741) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6765;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 6736) END FROM WidgetInst WHERE WidgetInstId = 6736) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6778;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 6737) END FROM WidgetInst WHERE WidgetInstId = 6737) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6779;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 6738) END FROM WidgetInst WHERE WidgetInstId = 6738) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6780;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 6739) END FROM WidgetInst WHERE WidgetInstId = 6739) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6781;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 6740) END FROM WidgetInst WHERE WidgetInstId = 6740) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6782;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 6741) END FROM WidgetInst WHERE WidgetInstId = 6741) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6783;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 6736) END FROM WidgetInst WHERE WidgetInstId = 6736) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6844;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 6737) END FROM WidgetInst WHERE WidgetInstId = 6737) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6845;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 6738) END FROM WidgetInst WHERE WidgetInstId = 6738) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6846;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 6739) END FROM WidgetInst WHERE WidgetInstId = 6739) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6847;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 6740) END FROM WidgetInst WHERE WidgetInstId = 6740) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6848;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 6741) END FROM WidgetInst WHERE WidgetInstId = 6741) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6849;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6862;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6863;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6864;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6865;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6866;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6867;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6880) END FROM WidgetInst WHERE WidgetInstId = 6880) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6886;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6881) END FROM WidgetInst WHERE WidgetInstId = 6881) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6887;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6882) END FROM WidgetInst WHERE WidgetInstId = 6882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6888;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6883) END FROM WidgetInst WHERE WidgetInstId = 6883) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6889;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6884) END FROM WidgetInst WHERE WidgetInstId = 6884) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6890;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6885) END FROM WidgetInst WHERE WidgetInstId = 6885) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6891;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6880) END FROM WidgetInst WHERE WidgetInstId = 6880) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6904;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6881) END FROM WidgetInst WHERE WidgetInstId = 6881) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6905;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6882) END FROM WidgetInst WHERE WidgetInstId = 6882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6906;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6883) END FROM WidgetInst WHERE WidgetInstId = 6883) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6907;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6884) END FROM WidgetInst WHERE WidgetInstId = 6884) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6908;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6885) END FROM WidgetInst WHERE WidgetInstId = 6885) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6909;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 6880) END FROM WidgetInst WHERE WidgetInstId = 6880) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6922;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 6881) END FROM WidgetInst WHERE WidgetInstId = 6881) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6923;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 6882) END FROM WidgetInst WHERE WidgetInstId = 6882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6924;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 6883) END FROM WidgetInst WHERE WidgetInstId = 6883) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6925;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 6884) END FROM WidgetInst WHERE WidgetInstId = 6884) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6926;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 6885) END FROM WidgetInst WHERE WidgetInstId = 6885) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6927;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 6880) END FROM WidgetInst WHERE WidgetInstId = 6880) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6988;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 6881) END FROM WidgetInst WHERE WidgetInstId = 6881) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6989;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 6882) END FROM WidgetInst WHERE WidgetInstId = 6882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6990;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 6883) END FROM WidgetInst WHERE WidgetInstId = 6883) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6991;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 6884) END FROM WidgetInst WHERE WidgetInstId = 6884) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6992;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 6885) END FROM WidgetInst WHERE WidgetInstId = 6885) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6993;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 7012) END FROM WidgetInst WHERE WidgetInstId = 7012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7018;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 7013) END FROM WidgetInst WHERE WidgetInstId = 7013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7019;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 7014) END FROM WidgetInst WHERE WidgetInstId = 7014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7020;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 7015) END FROM WidgetInst WHERE WidgetInstId = 7015) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7021;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 7016) END FROM WidgetInst WHERE WidgetInstId = 7016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7022;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 7017) END FROM WidgetInst WHERE WidgetInstId = 7017) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7023;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7012) END FROM WidgetInst WHERE WidgetInstId = 7012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7030;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7013) END FROM WidgetInst WHERE WidgetInstId = 7013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7031;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7014) END FROM WidgetInst WHERE WidgetInstId = 7014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7032;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7015) END FROM WidgetInst WHERE WidgetInstId = 7015) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7033;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7016) END FROM WidgetInst WHERE WidgetInstId = 7016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7034;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7017) END FROM WidgetInst WHERE WidgetInstId = 7017) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7035;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7012) END FROM WidgetInst WHERE WidgetInstId = 7012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7042;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7013) END FROM WidgetInst WHERE WidgetInstId = 7013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7043;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7014) END FROM WidgetInst WHERE WidgetInstId = 7014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7044;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7015) END FROM WidgetInst WHERE WidgetInstId = 7015) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7045;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7016) END FROM WidgetInst WHERE WidgetInstId = 7016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7046;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7017) END FROM WidgetInst WHERE WidgetInstId = 7017) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7047;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7012) END FROM WidgetInst WHERE WidgetInstId = 7012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7054;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7013) END FROM WidgetInst WHERE WidgetInstId = 7013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7055;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7014) END FROM WidgetInst WHERE WidgetInstId = 7014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7056;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7015) END FROM WidgetInst WHERE WidgetInstId = 7015) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7057;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7016) END FROM WidgetInst WHERE WidgetInstId = 7016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7058;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7017) END FROM WidgetInst WHERE WidgetInstId = 7017) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7059;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7012) END FROM WidgetInst WHERE WidgetInstId = 7012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7066;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7013) END FROM WidgetInst WHERE WidgetInstId = 7013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7067;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7014) END FROM WidgetInst WHERE WidgetInstId = 7014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7068;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7015) END FROM WidgetInst WHERE WidgetInstId = 7015) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7069;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7016) END FROM WidgetInst WHERE WidgetInstId = 7016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7070;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7017) END FROM WidgetInst WHERE WidgetInstId = 7017) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7071;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7012) END FROM WidgetInst WHERE WidgetInstId = 7012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7078;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7013) END FROM WidgetInst WHERE WidgetInstId = 7013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7079;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7014) END FROM WidgetInst WHERE WidgetInstId = 7014) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7080;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7015) END FROM WidgetInst WHERE WidgetInstId = 7015) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7081;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7016) END FROM WidgetInst WHERE WidgetInstId = 7016) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7082;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7017) END FROM WidgetInst WHERE WidgetInstId = 7017) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7083;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5686) END FROM WidgetInst WHERE WidgetInstId = 5686) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 5293) END FROM WidgetInst WHERE WidgetInstId = 5293)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7090;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5687) END FROM WidgetInst WHERE WidgetInstId = 5687) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 5293) END FROM WidgetInst WHERE WidgetInstId = 5293)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7091;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5688) END FROM WidgetInst WHERE WidgetInstId = 5688) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 5293) END FROM WidgetInst WHERE WidgetInstId = 5293)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7092;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5689) END FROM WidgetInst WHERE WidgetInstId = 5689) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 5293) END FROM WidgetInst WHERE WidgetInstId = 5293)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5690) END FROM WidgetInst WHERE WidgetInstId = 5690) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 5293) END FROM WidgetInst WHERE WidgetInstId = 5293)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7094;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5691) END FROM WidgetInst WHERE WidgetInstId = 5691) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 5293) END FROM WidgetInst WHERE WidgetInstId = 5293)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7095;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 7102) END FROM WidgetInst WHERE WidgetInstId = 7102) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7108;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 7103) END FROM WidgetInst WHERE WidgetInstId = 7103) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7109;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 7104) END FROM WidgetInst WHERE WidgetInstId = 7104) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7110;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 7105) END FROM WidgetInst WHERE WidgetInstId = 7105) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7111;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 7106) END FROM WidgetInst WHERE WidgetInstId = 7106) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7112;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 7107) END FROM WidgetInst WHERE WidgetInstId = 7107) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7113;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 7124;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 7124;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 7124;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 7124;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 7124;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 7124;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 7125;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 7125;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 7125;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 7125;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 7125;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 7125;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7126;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7127;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 7130) END FROM WidgetInst WHERE WidgetInstId = 7130) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7132;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 7131) END FROM WidgetInst WHERE WidgetInstId = 7131) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7133;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7136;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7137;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7148;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7149;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7154;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7155;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7160;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7161;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7164) END FROM WidgetInst WHERE WidgetInstId = 7164) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7166;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7165) END FROM WidgetInst WHERE WidgetInstId = 7165) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7167;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7164) END FROM WidgetInst WHERE WidgetInstId = 7164) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7172;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7165) END FROM WidgetInst WHERE WidgetInstId = 7165) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7173;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7178;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7179;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7182) END FROM WidgetInst WHERE WidgetInstId = 7182) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7184;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7183) END FROM WidgetInst WHERE WidgetInstId = 7183) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7185;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7182) END FROM WidgetInst WHERE WidgetInstId = 7182) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7190;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7183) END FROM WidgetInst WHERE WidgetInstId = 7183) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7191;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 7182) END FROM WidgetInst WHERE WidgetInstId = 7182) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7196;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 7183) END FROM WidgetInst WHERE WidgetInstId = 7183) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7197;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7202;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7203;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7206) END FROM WidgetInst WHERE WidgetInstId = 7206)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7212;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7207) END FROM WidgetInst WHERE WidgetInstId = 7207)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7213;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7210) END FROM WidgetInst WHERE WidgetInstId = 7210) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7218;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7211) END FROM WidgetInst WHERE WidgetInstId = 7211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7219;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7210) END FROM WidgetInst WHERE WidgetInstId = 7210) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7220;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7211) END FROM WidgetInst WHERE WidgetInstId = 7211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7221;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7210) END FROM WidgetInst WHERE WidgetInstId = 7210) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7226;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7211) END FROM WidgetInst WHERE WidgetInstId = 7211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7227;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7210) END FROM WidgetInst WHERE WidgetInstId = 7210) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7228;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7211) END FROM WidgetInst WHERE WidgetInstId = 7211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7229;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7206) END FROM WidgetInst WHERE WidgetInstId = 7206)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7230;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7207) END FROM WidgetInst WHERE WidgetInstId = 7207)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7231;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7210) END FROM WidgetInst WHERE WidgetInstId = 7210) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7236;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7211) END FROM WidgetInst WHERE WidgetInstId = 7211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7237;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7210) END FROM WidgetInst WHERE WidgetInstId = 7210) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7238;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7211) END FROM WidgetInst WHERE WidgetInstId = 7211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7239;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7242) END FROM WidgetInst WHERE WidgetInstId = 7242) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7244;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7243) END FROM WidgetInst WHERE WidgetInstId = 7243) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7245;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7210) END FROM WidgetInst WHERE WidgetInstId = 7210) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7248;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7211) END FROM WidgetInst WHERE WidgetInstId = 7211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7249;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7210) END FROM WidgetInst WHERE WidgetInstId = 7210) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7250;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7211) END FROM WidgetInst WHERE WidgetInstId = 7211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7251;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 7242) END FROM WidgetInst WHERE WidgetInstId = 7242) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7252;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 7243) END FROM WidgetInst WHERE WidgetInstId = 7243) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7253;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7210) END FROM WidgetInst WHERE WidgetInstId = 7210) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7256;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7211) END FROM WidgetInst WHERE WidgetInstId = 7211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7257;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7210) END FROM WidgetInst WHERE WidgetInstId = 7210) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7258;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7211) END FROM WidgetInst WHERE WidgetInstId = 7211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7259;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7260;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7261;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7266;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7267;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7332) END FROM WidgetInst WHERE WidgetInstId = 7332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7334;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7333) END FROM WidgetInst WHERE WidgetInstId = 7333) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7335;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7332) END FROM WidgetInst WHERE WidgetInstId = 7332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7338;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7333) END FROM WidgetInst WHERE WidgetInstId = 7333) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7339;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7332) END FROM WidgetInst WHERE WidgetInstId = 7332) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7342;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7333) END FROM WidgetInst WHERE WidgetInstId = 7333) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7343;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7346;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7347;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7364) END FROM WidgetInst WHERE WidgetInstId = 7364) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7366;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7365) END FROM WidgetInst WHERE WidgetInstId = 7365) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7367;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7364) END FROM WidgetInst WHERE WidgetInstId = 7364) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7370;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7365) END FROM WidgetInst WHERE WidgetInstId = 7365) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7371;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7364) END FROM WidgetInst WHERE WidgetInstId = 7364) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7374;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7365) END FROM WidgetInst WHERE WidgetInstId = 7365) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7375;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7378;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7379;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7404) END FROM WidgetInst WHERE WidgetInstId = 7404) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7406;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7405) END FROM WidgetInst WHERE WidgetInstId = 7405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7407;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7404) END FROM WidgetInst WHERE WidgetInstId = 7404) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7410;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7405) END FROM WidgetInst WHERE WidgetInstId = 7405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7411;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7404) END FROM WidgetInst WHERE WidgetInstId = 7404) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7414;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7405) END FROM WidgetInst WHERE WidgetInstId = 7405) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7415;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7418;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7419;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7444) END FROM WidgetInst WHERE WidgetInstId = 7444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7446;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7445) END FROM WidgetInst WHERE WidgetInstId = 7445) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7447;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7444) END FROM WidgetInst WHERE WidgetInstId = 7444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7450;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7445) END FROM WidgetInst WHERE WidgetInstId = 7445) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7451;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7444) END FROM WidgetInst WHERE WidgetInstId = 7444) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7454;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7445) END FROM WidgetInst WHERE WidgetInstId = 7445) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7455;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7456) END FROM WidgetInst WHERE WidgetInstId = 7456) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7444) END FROM WidgetInst WHERE WidgetInstId = 7444)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7458;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7457) END FROM WidgetInst WHERE WidgetInstId = 7457) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7445) END FROM WidgetInst WHERE WidgetInstId = 7445)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7459;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7456) END FROM WidgetInst WHERE WidgetInstId = 7456) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7444) END FROM WidgetInst WHERE WidgetInstId = 7444)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7462;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7457) END FROM WidgetInst WHERE WidgetInstId = 7457) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7445) END FROM WidgetInst WHERE WidgetInstId = 7445)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7463;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7456) END FROM WidgetInst WHERE WidgetInstId = 7456) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7444) END FROM WidgetInst WHERE WidgetInstId = 7444)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7466;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7457) END FROM WidgetInst WHERE WidgetInstId = 7457) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7445) END FROM WidgetInst WHERE WidgetInstId = 7445)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7467;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7470;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7471;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7474) END FROM WidgetInst WHERE WidgetInstId = 7474) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7476;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7475) END FROM WidgetInst WHERE WidgetInstId = 7475) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7477;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7474) END FROM WidgetInst WHERE WidgetInstId = 7474) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7482;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7475) END FROM WidgetInst WHERE WidgetInstId = 7475) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7483;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 7474) END FROM WidgetInst WHERE WidgetInstId = 7474) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7488;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 7475) END FROM WidgetInst WHERE WidgetInstId = 7475) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7489;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 7474) END FROM WidgetInst WHERE WidgetInstId = 7474) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7510;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 7475) END FROM WidgetInst WHERE WidgetInstId = 7475) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7511;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7516;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7517;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7522) END FROM WidgetInst WHERE WidgetInstId = 7522) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7524;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7523) END FROM WidgetInst WHERE WidgetInstId = 7523) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7525;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7522) END FROM WidgetInst WHERE WidgetInstId = 7522) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7530;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7523) END FROM WidgetInst WHERE WidgetInstId = 7523) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7531;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 7522) END FROM WidgetInst WHERE WidgetInstId = 7522) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7536;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 7523) END FROM WidgetInst WHERE WidgetInstId = 7523) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7537;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 7522) END FROM WidgetInst WHERE WidgetInstId = 7522) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7558;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 7523) END FROM WidgetInst WHERE WidgetInstId = 7523) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7559;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 7566) END FROM WidgetInst WHERE WidgetInstId = 7566) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7568;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 7567) END FROM WidgetInst WHERE WidgetInstId = 7567) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7569;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7566) END FROM WidgetInst WHERE WidgetInstId = 7566) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7572;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7567) END FROM WidgetInst WHERE WidgetInstId = 7567) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7573;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7566) END FROM WidgetInst WHERE WidgetInstId = 7566) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7576;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7567) END FROM WidgetInst WHERE WidgetInstId = 7567) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7577;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7566) END FROM WidgetInst WHERE WidgetInstId = 7566) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7580;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7567) END FROM WidgetInst WHERE WidgetInstId = 7567) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7581;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7566) END FROM WidgetInst WHERE WidgetInstId = 7566) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7584;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7567) END FROM WidgetInst WHERE WidgetInstId = 7567) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7585;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7566) END FROM WidgetInst WHERE WidgetInstId = 7566) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7588;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 7567) END FROM WidgetInst WHERE WidgetInstId = 7567) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7589;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 7124) END FROM WidgetInst WHERE WidgetInstId = 7124) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 5293) END FROM WidgetInst WHERE WidgetInstId = 5293)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7592;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 7125) END FROM WidgetInst WHERE WidgetInstId = 7125) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 5293) END FROM WidgetInst WHERE WidgetInstId = 5293)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7593;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 7596) END FROM WidgetInst WHERE WidgetInstId = 7596) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7598;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 7597) END FROM WidgetInst WHERE WidgetInstId = 7597) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7599;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Flow' AND WidgetInstId = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7655;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7657;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mixed' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7663;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7671;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 7667) END FROM WidgetInst WHERE WidgetInstId = 7667) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7673;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 7669) END FROM WidgetInst WHERE WidgetInstId = 7669) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7675;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7677;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 7667) END FROM WidgetInst WHERE WidgetInstId = 7667) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7679;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parker' AND WidgetInstId = 7669) END FROM WidgetInst WHERE WidgetInstId = 7669) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7681;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7683;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 7667) END FROM WidgetInst WHERE WidgetInstId = 7667) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7685;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 7669) END FROM WidgetInst WHERE WidgetInstId = 7669) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7687;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7689;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 7667) END FROM WidgetInst WHERE WidgetInstId = 7667) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7691;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 7669) END FROM WidgetInst WHERE WidgetInstId = 7669) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7693;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7695;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 7667) END FROM WidgetInst WHERE WidgetInstId = 7667) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7697;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wilcock-Crowe' AND WidgetInstId = 7669) END FROM WidgetInst WHERE WidgetInstId = 7669) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7699;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7701;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 7667) END FROM WidgetInst WHERE WidgetInstId = 7667) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7703;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wu-et-al' AND WidgetInstId = 7669) END FROM WidgetInst WHERE WidgetInstId = 7669) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7705;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7707;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 7667) END FROM WidgetInst WHERE WidgetInstId = 7667) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7709;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Meyer-Peter-Muller' AND WidgetInstId = 7669) END FROM WidgetInst WHERE WidgetInstId = 7669) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7711;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7713;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7715;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Trinity' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7717;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Aw' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7719;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rijn' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7721;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7723;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Seminara' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7725;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7727;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7729;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7731;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'User defined' AND WidgetInstId = 7662) END FROM WidgetInst WHERE WidgetInstId = 7662) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7733;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant Length' AND WidgetInstId = 7746) END FROM WidgetInst WHERE WidgetInstId = 7746) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7747;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 7756) END FROM WidgetInst WHERE WidgetInstId = 7756) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7757;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 7759) END FROM WidgetInst WHERE WidgetInstId = 7759) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7760;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Data File' AND WidgetInstId = 7764) END FROM WidgetInst WHERE WidgetInstId = 7764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7765;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Input Parameters' AND WidgetInstId = 7764) END FROM WidgetInst WHERE WidgetInstId = 7764) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7767;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 7756) END FROM WidgetInst WHERE WidgetInstId = 7756) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7782;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 7796;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 7796;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 7796;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 7796;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 7796;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 7796;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7797;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 7799) END FROM WidgetInst WHERE WidgetInstId = 7799) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7800;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7802;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 86) END FROM WidgetInst WHERE WidgetInstId = 86) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7808;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 86) END FROM WidgetInst WHERE WidgetInstId = 86) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7811;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7814;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7816) END FROM WidgetInst WHERE WidgetInstId = 7816) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7817;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7816) END FROM WidgetInst WHERE WidgetInstId = 7816) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7820;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7823;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7825) END FROM WidgetInst WHERE WidgetInstId = 7825) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7826;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7825) END FROM WidgetInst WHERE WidgetInstId = 7825) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7829;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 7825) END FROM WidgetInst WHERE WidgetInstId = 7825) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7832;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7835;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7837) END FROM WidgetInst WHERE WidgetInstId = 7837)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7840;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7839) END FROM WidgetInst WHERE WidgetInstId = 7839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7843;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7839) END FROM WidgetInst WHERE WidgetInstId = 7839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7844;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7839) END FROM WidgetInst WHERE WidgetInstId = 7839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7847;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7839) END FROM WidgetInst WHERE WidgetInstId = 7839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7848;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7837) END FROM WidgetInst WHERE WidgetInstId = 7837)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7849;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7839) END FROM WidgetInst WHERE WidgetInstId = 7839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7852;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7839) END FROM WidgetInst WHERE WidgetInstId = 7839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7853;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7855) END FROM WidgetInst WHERE WidgetInstId = 7855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7856;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7839) END FROM WidgetInst WHERE WidgetInstId = 7839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7858;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7839) END FROM WidgetInst WHERE WidgetInstId = 7839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7859;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 7855) END FROM WidgetInst WHERE WidgetInstId = 7855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7860;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 7839) END FROM WidgetInst WHERE WidgetInstId = 7839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7862;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 7839) END FROM WidgetInst WHERE WidgetInstId = 7839) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7863;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7864;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7867;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7900) END FROM WidgetInst WHERE WidgetInstId = 7900) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7901;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7900) END FROM WidgetInst WHERE WidgetInstId = 7900) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7903;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7900) END FROM WidgetInst WHERE WidgetInstId = 7900) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7905;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7907;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7916) END FROM WidgetInst WHERE WidgetInstId = 7916) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7917;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7916) END FROM WidgetInst WHERE WidgetInstId = 7916) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7919;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7916) END FROM WidgetInst WHERE WidgetInstId = 7916) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7921;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7923;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7936) END FROM WidgetInst WHERE WidgetInstId = 7936) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7937;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7936) END FROM WidgetInst WHERE WidgetInstId = 7936) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7939;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7936) END FROM WidgetInst WHERE WidgetInstId = 7936) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7941;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7943;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7956) END FROM WidgetInst WHERE WidgetInstId = 7956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7957;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7956) END FROM WidgetInst WHERE WidgetInstId = 7956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7959;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7956) END FROM WidgetInst WHERE WidgetInstId = 7956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7961;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7962) END FROM WidgetInst WHERE WidgetInstId = 7962) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7956) END FROM WidgetInst WHERE WidgetInstId = 7956)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7963;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7962) END FROM WidgetInst WHERE WidgetInstId = 7962) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7956) END FROM WidgetInst WHERE WidgetInstId = 7956)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7965;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 7962) END FROM WidgetInst WHERE WidgetInstId = 7962) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7956) END FROM WidgetInst WHERE WidgetInstId = 7956)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7967;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7969;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7971) END FROM WidgetInst WHERE WidgetInstId = 7971) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7972;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7971) END FROM WidgetInst WHERE WidgetInstId = 7971) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7975;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 7971) END FROM WidgetInst WHERE WidgetInstId = 7971) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7978;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 7971) END FROM WidgetInst WHERE WidgetInstId = 7971) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7989;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 7796) END FROM WidgetInst WHERE WidgetInstId = 7796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7992;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7995) END FROM WidgetInst WHERE WidgetInstId = 7995) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7996;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7995) END FROM WidgetInst WHERE WidgetInstId = 7995) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7999;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 7995) END FROM WidgetInst WHERE WidgetInstId = 7995) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8002;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 7995) END FROM WidgetInst WHERE WidgetInstId = 7995) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8013;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Specified' AND WidgetInstId = 8017) END FROM WidgetInst WHERE WidgetInstId = 8017) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8018;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 8017) END FROM WidgetInst WHERE WidgetInstId = 8017) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8020;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 8017) END FROM WidgetInst WHERE WidgetInstId = 8017) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8022;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 8017) END FROM WidgetInst WHERE WidgetInstId = 8017) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8024;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 8017) END FROM WidgetInst WHERE WidgetInstId = 8017) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8026;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 8017) END FROM WidgetInst WHERE WidgetInstId = 8017) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8028;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 231) END FROM WidgetInst WHERE WidgetInstId = 231) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 89) END FROM WidgetInst WHERE WidgetInstId = 89)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8030;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'File' AND WidgetInstId = 8032) END FROM WidgetInst WHERE WidgetInstId = 8032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8033;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 8049;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 8049;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 8049;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 8049;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 8049;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 8049;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 8050;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 8050;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 8050;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 8050;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 8050;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 8050;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 8051;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 8051;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 8051;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 8051;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 8051;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 8051;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 8052;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 8052;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 8052;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 8052;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 8052;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 8052;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 8053;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 8053;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 8053;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 8053;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 8053;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 8053;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 8054;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 8054;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 8054;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 8054;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 8054;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 8054;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 264 AND WidgetInstId = 8055;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 265 AND WidgetInstId = 8055;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 266 AND WidgetInstId = 8055;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 267 AND WidgetInstId = 8055;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 268 AND WidgetInstId = 8055;


Query:
UPDATE ComboOptionInst SET Enabled = CASE WHEN (SELECT CASE WHEN (SELECT COUNT(*) FROM Sets WHERE SetEntityId = ?)= 2 THEN 1 ELSE 0 END) = 1 THEN 1 ELSE 0 END WHERE CbxOptionId = 269 AND WidgetInstId = 8055;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8056;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8057;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8058;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8059;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8060;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8061;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Wall (No-slip boundary)' AND WidgetInstId = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8062;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 8070) END FROM WidgetInst WHERE WidgetInstId = 8070) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8077;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 8071) END FROM WidgetInst WHERE WidgetInstId = 8071) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8078;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 8072) END FROM WidgetInst WHERE WidgetInstId = 8072) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8079;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 8073) END FROM WidgetInst WHERE WidgetInstId = 8073) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8080;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 8074) END FROM WidgetInst WHERE WidgetInstId = 8074) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8081;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 8075) END FROM WidgetInst WHERE WidgetInstId = 8075) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8082;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'On' AND WidgetInstId = 8076) END FROM WidgetInst WHERE WidgetInstId = 8076) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8083;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8091;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8092;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8094;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8095;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8096;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8097;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8133;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8134;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8135;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8136;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8137;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8138;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8139;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8154;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8155;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8156;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8157;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8158;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8159;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8160;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8175;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8176;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8177;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8178;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8179;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8180;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8181;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8189) END FROM WidgetInst WHERE WidgetInstId = 8189) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8196;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8190) END FROM WidgetInst WHERE WidgetInstId = 8190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8197;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8191) END FROM WidgetInst WHERE WidgetInstId = 8191) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8198;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8192) END FROM WidgetInst WHERE WidgetInstId = 8192) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8199;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8193) END FROM WidgetInst WHERE WidgetInstId = 8193) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8200;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8194) END FROM WidgetInst WHERE WidgetInstId = 8194) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8201;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8195) END FROM WidgetInst WHERE WidgetInstId = 8195) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8202;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8189) END FROM WidgetInst WHERE WidgetInstId = 8189) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8217;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8190) END FROM WidgetInst WHERE WidgetInstId = 8190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8218;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8191) END FROM WidgetInst WHERE WidgetInstId = 8191) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8219;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8192) END FROM WidgetInst WHERE WidgetInstId = 8192) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8220;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8193) END FROM WidgetInst WHERE WidgetInstId = 8193) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8221;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8194) END FROM WidgetInst WHERE WidgetInstId = 8194) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8222;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8195) END FROM WidgetInst WHERE WidgetInstId = 8195) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8223;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8238;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8239;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8240;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8241;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8242;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8243;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8244;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8252) END FROM WidgetInst WHERE WidgetInstId = 8252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8259;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8253) END FROM WidgetInst WHERE WidgetInstId = 8253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8260;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8254) END FROM WidgetInst WHERE WidgetInstId = 8254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8261;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8255) END FROM WidgetInst WHERE WidgetInstId = 8255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8262;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8256) END FROM WidgetInst WHERE WidgetInstId = 8256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8263;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8257) END FROM WidgetInst WHERE WidgetInstId = 8257) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8264;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8258) END FROM WidgetInst WHERE WidgetInstId = 8258) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8265;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8252) END FROM WidgetInst WHERE WidgetInstId = 8252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8280;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8253) END FROM WidgetInst WHERE WidgetInstId = 8253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8281;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8254) END FROM WidgetInst WHERE WidgetInstId = 8254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8282;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8255) END FROM WidgetInst WHERE WidgetInstId = 8255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8283;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8256) END FROM WidgetInst WHERE WidgetInstId = 8256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8284;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8257) END FROM WidgetInst WHERE WidgetInstId = 8257) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8285;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8258) END FROM WidgetInst WHERE WidgetInstId = 8258) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8286;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8252) END FROM WidgetInst WHERE WidgetInstId = 8252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8301;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8253) END FROM WidgetInst WHERE WidgetInstId = 8253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8302;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8254) END FROM WidgetInst WHERE WidgetInstId = 8254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8303;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8255) END FROM WidgetInst WHERE WidgetInstId = 8255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8304;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8256) END FROM WidgetInst WHERE WidgetInstId = 8256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8305;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8257) END FROM WidgetInst WHERE WidgetInstId = 8257) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8306;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8258) END FROM WidgetInst WHERE WidgetInstId = 8258) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8307;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8322;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8323;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8324;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8325;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8326;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8327;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8328;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8336) END FROM WidgetInst WHERE WidgetInstId = 8336)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8357;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8337) END FROM WidgetInst WHERE WidgetInstId = 8337)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8358;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8338) END FROM WidgetInst WHERE WidgetInstId = 8338)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8359;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8339) END FROM WidgetInst WHERE WidgetInstId = 8339)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8360;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8340) END FROM WidgetInst WHERE WidgetInstId = 8340)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8361;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8341) END FROM WidgetInst WHERE WidgetInstId = 8341)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8362;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 8342) END FROM WidgetInst WHERE WidgetInstId = 8342)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8363;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8350) END FROM WidgetInst WHERE WidgetInstId = 8350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8378;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8351) END FROM WidgetInst WHERE WidgetInstId = 8351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8379;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8352) END FROM WidgetInst WHERE WidgetInstId = 8352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8380;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8353) END FROM WidgetInst WHERE WidgetInstId = 8353) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8381;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8354) END FROM WidgetInst WHERE WidgetInstId = 8354) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8382;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8355) END FROM WidgetInst WHERE WidgetInstId = 8355) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8383;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8356) END FROM WidgetInst WHERE WidgetInstId = 8356) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8384;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8350) END FROM WidgetInst WHERE WidgetInstId = 8350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8385;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8351) END FROM WidgetInst WHERE WidgetInstId = 8351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8386;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8352) END FROM WidgetInst WHERE WidgetInstId = 8352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8387;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8353) END FROM WidgetInst WHERE WidgetInstId = 8353) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8388;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8354) END FROM WidgetInst WHERE WidgetInstId = 8354) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8389;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8355) END FROM WidgetInst WHERE WidgetInstId = 8355) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8390;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8356) END FROM WidgetInst WHERE WidgetInstId = 8356) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8391;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8350) END FROM WidgetInst WHERE WidgetInstId = 8350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8406;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8351) END FROM WidgetInst WHERE WidgetInstId = 8351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8407;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8352) END FROM WidgetInst WHERE WidgetInstId = 8352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8408;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8353) END FROM WidgetInst WHERE WidgetInstId = 8353) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8409;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8354) END FROM WidgetInst WHERE WidgetInstId = 8354) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8410;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8355) END FROM WidgetInst WHERE WidgetInstId = 8355) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8411;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8356) END FROM WidgetInst WHERE WidgetInstId = 8356) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8412;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8350) END FROM WidgetInst WHERE WidgetInstId = 8350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8413;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8351) END FROM WidgetInst WHERE WidgetInstId = 8351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8414;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8352) END FROM WidgetInst WHERE WidgetInstId = 8352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8415;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8353) END FROM WidgetInst WHERE WidgetInstId = 8353) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8416;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8354) END FROM WidgetInst WHERE WidgetInstId = 8354) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8417;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8355) END FROM WidgetInst WHERE WidgetInstId = 8355) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8418;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8356) END FROM WidgetInst WHERE WidgetInstId = 8356) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8419;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8336) END FROM WidgetInst WHERE WidgetInstId = 8336)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8420;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8337) END FROM WidgetInst WHERE WidgetInstId = 8337)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8421;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8338) END FROM WidgetInst WHERE WidgetInstId = 8338)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8422;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8339) END FROM WidgetInst WHERE WidgetInstId = 8339)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8423;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8340) END FROM WidgetInst WHERE WidgetInstId = 8340)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8424;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8341) END FROM WidgetInst WHERE WidgetInstId = 8341)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8425;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT C FROM AndOperator WHERE A = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8342) END FROM WidgetInst WHERE WidgetInstId = 8342)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8426;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8350) END FROM WidgetInst WHERE WidgetInstId = 8350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8441;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8351) END FROM WidgetInst WHERE WidgetInstId = 8351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8442;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8352) END FROM WidgetInst WHERE WidgetInstId = 8352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8443;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8353) END FROM WidgetInst WHERE WidgetInstId = 8353) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8444;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8354) END FROM WidgetInst WHERE WidgetInstId = 8354) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8445;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8355) END FROM WidgetInst WHERE WidgetInstId = 8355) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8446;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8356) END FROM WidgetInst WHERE WidgetInstId = 8356) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8447;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8350) END FROM WidgetInst WHERE WidgetInstId = 8350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8448;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8351) END FROM WidgetInst WHERE WidgetInstId = 8351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8449;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8352) END FROM WidgetInst WHERE WidgetInstId = 8352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8450;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8353) END FROM WidgetInst WHERE WidgetInstId = 8353) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8451;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8354) END FROM WidgetInst WHERE WidgetInstId = 8354) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8452;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8355) END FROM WidgetInst WHERE WidgetInstId = 8355) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8453;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8356) END FROM WidgetInst WHERE WidgetInstId = 8356) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8454;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8462) END FROM WidgetInst WHERE WidgetInstId = 8462) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8469;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8463) END FROM WidgetInst WHERE WidgetInstId = 8463) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8470;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8464) END FROM WidgetInst WHERE WidgetInstId = 8464) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8471;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8465) END FROM WidgetInst WHERE WidgetInstId = 8465) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8472;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8466) END FROM WidgetInst WHERE WidgetInstId = 8466) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8473;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8467) END FROM WidgetInst WHERE WidgetInstId = 8467) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8474;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 8468) END FROM WidgetInst WHERE WidgetInstId = 8468) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8475;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8350) END FROM WidgetInst WHERE WidgetInstId = 8350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8483;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8351) END FROM WidgetInst WHERE WidgetInstId = 8351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8484;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8352) END FROM WidgetInst WHERE WidgetInstId = 8352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8485;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8353) END FROM WidgetInst WHERE WidgetInstId = 8353) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8486;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8354) END FROM WidgetInst WHERE WidgetInstId = 8354) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8487;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8355) END FROM WidgetInst WHERE WidgetInstId = 8355) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8488;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8356) END FROM WidgetInst WHERE WidgetInstId = 8356) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8489;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8350) END FROM WidgetInst WHERE WidgetInstId = 8350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8490;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8351) END FROM WidgetInst WHERE WidgetInstId = 8351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8491;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8352) END FROM WidgetInst WHERE WidgetInstId = 8352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8492;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8353) END FROM WidgetInst WHERE WidgetInstId = 8353) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8493;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8354) END FROM WidgetInst WHERE WidgetInstId = 8354) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8494;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8355) END FROM WidgetInst WHERE WidgetInstId = 8355) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8495;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8356) END FROM WidgetInst WHERE WidgetInstId = 8356) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8496;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8462) END FROM WidgetInst WHERE WidgetInstId = 8462) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8497;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8463) END FROM WidgetInst WHERE WidgetInstId = 8463) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8498;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8464) END FROM WidgetInst WHERE WidgetInstId = 8464) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8499;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8465) END FROM WidgetInst WHERE WidgetInstId = 8465) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8500;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8466) END FROM WidgetInst WHERE WidgetInstId = 8466) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8501;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8467) END FROM WidgetInst WHERE WidgetInstId = 8467) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8502;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 8468) END FROM WidgetInst WHERE WidgetInstId = 8468) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8503;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8350) END FROM WidgetInst WHERE WidgetInstId = 8350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8511;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8351) END FROM WidgetInst WHERE WidgetInstId = 8351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8512;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8352) END FROM WidgetInst WHERE WidgetInstId = 8352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8513;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8353) END FROM WidgetInst WHERE WidgetInstId = 8353) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8514;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8354) END FROM WidgetInst WHERE WidgetInstId = 8354) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8515;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8355) END FROM WidgetInst WHERE WidgetInstId = 8355) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8516;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 8356) END FROM WidgetInst WHERE WidgetInstId = 8356) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8517;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8350) END FROM WidgetInst WHERE WidgetInstId = 8350) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8518;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8351) END FROM WidgetInst WHERE WidgetInstId = 8351) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8519;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8352) END FROM WidgetInst WHERE WidgetInstId = 8352) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8520;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8353) END FROM WidgetInst WHERE WidgetInstId = 8353) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8521;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8354) END FROM WidgetInst WHERE WidgetInstId = 8354) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8522;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8355) END FROM WidgetInst WHERE WidgetInstId = 8355) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8523;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 8356) END FROM WidgetInst WHERE WidgetInstId = 8356) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8524;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8525;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8526;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8527;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8528;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8529;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8530;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8531;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8546;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8547;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8548;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8549;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8550;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8551;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Culvert' AND WidgetInstId = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8552;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8777) END FROM WidgetInst WHERE WidgetInstId = 8777) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8784;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8778) END FROM WidgetInst WHERE WidgetInstId = 8778) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8785;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8779) END FROM WidgetInst WHERE WidgetInstId = 8779) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8786;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8780) END FROM WidgetInst WHERE WidgetInstId = 8780) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8787;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8781) END FROM WidgetInst WHERE WidgetInstId = 8781) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8788;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8782) END FROM WidgetInst WHERE WidgetInstId = 8782) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8789;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8783) END FROM WidgetInst WHERE WidgetInstId = 8783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8790;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8777) END FROM WidgetInst WHERE WidgetInstId = 8777) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8798;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8778) END FROM WidgetInst WHERE WidgetInstId = 8778) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8799;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8779) END FROM WidgetInst WHERE WidgetInstId = 8779) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8800;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8780) END FROM WidgetInst WHERE WidgetInstId = 8780) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8801;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8781) END FROM WidgetInst WHERE WidgetInstId = 8781) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8802;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8782) END FROM WidgetInst WHERE WidgetInstId = 8782) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8803;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8783) END FROM WidgetInst WHERE WidgetInstId = 8783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8804;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8777) END FROM WidgetInst WHERE WidgetInstId = 8777) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8812;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8778) END FROM WidgetInst WHERE WidgetInstId = 8778) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8813;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8779) END FROM WidgetInst WHERE WidgetInstId = 8779) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8814;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8780) END FROM WidgetInst WHERE WidgetInstId = 8780) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8815;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8781) END FROM WidgetInst WHERE WidgetInstId = 8781) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8816;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8782) END FROM WidgetInst WHERE WidgetInstId = 8782) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8817;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8783) END FROM WidgetInst WHERE WidgetInstId = 8783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8818;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8826;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8827;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8828;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8829;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8830;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8831;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Weir' AND WidgetInstId = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8832;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8889) END FROM WidgetInst WHERE WidgetInstId = 8889) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8896;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8890) END FROM WidgetInst WHERE WidgetInstId = 8890) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8897;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8891) END FROM WidgetInst WHERE WidgetInstId = 8891) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8898;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8892) END FROM WidgetInst WHERE WidgetInstId = 8892) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8899;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8893) END FROM WidgetInst WHERE WidgetInstId = 8893) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8900;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8894) END FROM WidgetInst WHERE WidgetInstId = 8894) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8901;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8895) END FROM WidgetInst WHERE WidgetInstId = 8895) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8902;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8889) END FROM WidgetInst WHERE WidgetInstId = 8889) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8910;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8890) END FROM WidgetInst WHERE WidgetInstId = 8890) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8911;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8891) END FROM WidgetInst WHERE WidgetInstId = 8891) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8912;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8892) END FROM WidgetInst WHERE WidgetInstId = 8892) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8913;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8893) END FROM WidgetInst WHERE WidgetInstId = 8893) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8914;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8894) END FROM WidgetInst WHERE WidgetInstId = 8894) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8915;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8895) END FROM WidgetInst WHERE WidgetInstId = 8895) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8916;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8889) END FROM WidgetInst WHERE WidgetInstId = 8889) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8924;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8890) END FROM WidgetInst WHERE WidgetInstId = 8890) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8925;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8891) END FROM WidgetInst WHERE WidgetInstId = 8891) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8926;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8892) END FROM WidgetInst WHERE WidgetInstId = 8892) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8927;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8893) END FROM WidgetInst WHERE WidgetInstId = 8893) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8928;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8894) END FROM WidgetInst WHERE WidgetInstId = 8894) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8929;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 8895) END FROM WidgetInst WHERE WidgetInstId = 8895) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8930;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8938;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8939;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8940;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8941;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8942;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8943;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Gate' AND WidgetInstId = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8944;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9029) END FROM WidgetInst WHERE WidgetInstId = 9029) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9036;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9030) END FROM WidgetInst WHERE WidgetInstId = 9030) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9037;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9031) END FROM WidgetInst WHERE WidgetInstId = 9031) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9038;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9032) END FROM WidgetInst WHERE WidgetInstId = 9032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9039;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9033) END FROM WidgetInst WHERE WidgetInstId = 9033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9040;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9034) END FROM WidgetInst WHERE WidgetInstId = 9034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9041;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9035) END FROM WidgetInst WHERE WidgetInstId = 9035) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9042;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9029) END FROM WidgetInst WHERE WidgetInstId = 9029) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9050;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9030) END FROM WidgetInst WHERE WidgetInstId = 9030) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9051;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9031) END FROM WidgetInst WHERE WidgetInstId = 9031) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9052;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9032) END FROM WidgetInst WHERE WidgetInstId = 9032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9053;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9033) END FROM WidgetInst WHERE WidgetInstId = 9033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9054;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9034) END FROM WidgetInst WHERE WidgetInstId = 9034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9055;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9035) END FROM WidgetInst WHERE WidgetInstId = 9035) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9056;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9029) END FROM WidgetInst WHERE WidgetInstId = 9029) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9064;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9030) END FROM WidgetInst WHERE WidgetInstId = 9030) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9065;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9031) END FROM WidgetInst WHERE WidgetInstId = 9031) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9066;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9032) END FROM WidgetInst WHERE WidgetInstId = 9032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9067;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9033) END FROM WidgetInst WHERE WidgetInstId = 9033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9068;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9034) END FROM WidgetInst WHERE WidgetInstId = 9034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9069;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 9035) END FROM WidgetInst WHERE WidgetInstId = 9035) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9070;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9078;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9079;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9080;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9081;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9082;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9083;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Pressure' AND WidgetInstId = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9084;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9169) END FROM WidgetInst WHERE WidgetInstId = 9169) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9176;


