# 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 = 'user' AND WidgetInstId = 4526) END FROM WidgetInst WHERE WidgetInstId = 4526) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4536;


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 = 4245) END FROM WidgetInst WHERE WidgetInstId = 4245) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4539;


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 = 4246) END FROM WidgetInst WHERE WidgetInstId = 4246) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4540;


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 = 4565) END FROM WidgetInst WHERE WidgetInstId = 4565) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4567;


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 = 4566) END FROM WidgetInst WHERE WidgetInstId = 4566) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4568;


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 = 4565) END FROM WidgetInst WHERE WidgetInstId = 4565) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4571;


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 = 4566) END FROM WidgetInst WHERE WidgetInstId = 4566) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4572;


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 = 4565) END FROM WidgetInst WHERE WidgetInstId = 4565) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4575;


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 = 4566) END FROM WidgetInst WHERE WidgetInstId = 4566) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4576;


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 = 4577) END FROM WidgetInst WHERE WidgetInstId = 4577) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 4565) END FROM WidgetInst WHERE WidgetInstId = 4565)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4579;


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 = 4578) END FROM WidgetInst WHERE WidgetInstId = 4578) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 4566) END FROM WidgetInst WHERE WidgetInstId = 4566)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4580;


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 = 4577) END FROM WidgetInst WHERE WidgetInstId = 4577) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 4565) END FROM WidgetInst WHERE WidgetInstId = 4565)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4583;


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 = 4578) END FROM WidgetInst WHERE WidgetInstId = 4578) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 4566) END FROM WidgetInst WHERE WidgetInstId = 4566)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4584;


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 = 4577) END FROM WidgetInst WHERE WidgetInstId = 4577) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 4565) END FROM WidgetInst WHERE WidgetInstId = 4565)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4587;


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 = 4578) END FROM WidgetInst WHERE WidgetInstId = 4578) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 4566) END FROM WidgetInst WHERE WidgetInstId = 4566)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4588;


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 = 4245) END FROM WidgetInst WHERE WidgetInstId = 4245) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4591;


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 = 4246) END FROM WidgetInst WHERE WidgetInstId = 4246) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4592;


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 = 4595) END FROM WidgetInst WHERE WidgetInstId = 4595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4597;


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 = 4596) END FROM WidgetInst WHERE WidgetInstId = 4596) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4598;


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 = 4595) END FROM WidgetInst WHERE WidgetInstId = 4595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4603;


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 = 4596) END FROM WidgetInst WHERE WidgetInstId = 4596) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4604;


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 = 4595) END FROM WidgetInst WHERE WidgetInstId = 4595) = 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 = 'Weir' AND WidgetInstId = 4596) END FROM WidgetInst WHERE WidgetInstId = 4596) = 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 = 4595) END FROM WidgetInst WHERE WidgetInstId = 4595) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4631;


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 = 4596) END FROM WidgetInst WHERE WidgetInstId = 4596) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4632;


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 = 4245) END FROM WidgetInst WHERE WidgetInstId = 4245) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4637;


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 = 4246) END FROM WidgetInst WHERE WidgetInstId = 4246) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4638;


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 = 4643) END FROM WidgetInst WHERE WidgetInstId = 4643) = 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 = 'Constant' AND WidgetInstId = 4644) END FROM WidgetInst WHERE WidgetInstId = 4644) = 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 = 'Time Series' AND WidgetInstId = 4643) END FROM WidgetInst WHERE WidgetInstId = 4643) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4651;


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 = 4644) END FROM WidgetInst WHERE WidgetInstId = 4644) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4652;


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 = 4643) END FROM WidgetInst WHERE WidgetInstId = 4643) = 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 = 'Weir' AND WidgetInstId = 4644) END FROM WidgetInst WHERE WidgetInstId = 4644) = 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 = 'Rating curve' AND WidgetInstId = 4643) END FROM WidgetInst WHERE WidgetInstId = 4643) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4679;


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 = 4644) END FROM WidgetInst WHERE WidgetInstId = 4644) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4680;


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 = 4687) END FROM WidgetInst WHERE WidgetInstId = 4687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4689;


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 = 4688) END FROM WidgetInst WHERE WidgetInstId = 4688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4690;


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 = 4687) END FROM WidgetInst WHERE WidgetInstId = 4687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4693;


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 = 4688) END FROM WidgetInst WHERE WidgetInstId = 4688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4694;


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 = 4687) END FROM WidgetInst WHERE WidgetInstId = 4687) = 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 = 4688) END FROM WidgetInst WHERE WidgetInstId = 4688) = 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 = 4687) END FROM WidgetInst WHERE WidgetInstId = 4687) = 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 = 4688) END FROM WidgetInst WHERE WidgetInstId = 4688) = 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 = 4687) END FROM WidgetInst WHERE WidgetInstId = 4687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4705;


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 = 4688) END FROM WidgetInst WHERE WidgetInstId = 4688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4706;


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 = 4687) END FROM WidgetInst WHERE WidgetInstId = 4687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4709;


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 = 4688) END FROM WidgetInst WHERE WidgetInstId = 4688) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4710;


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 = 4245) END FROM WidgetInst WHERE WidgetInstId = 4245) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 2414) END FROM WidgetInst WHERE WidgetInstId = 2414)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4713;


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 = 4246) END FROM WidgetInst WHERE WidgetInstId = 4246) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 2414) END FROM WidgetInst WHERE WidgetInstId = 2414)) = 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 = 'File' AND WidgetInstId = 4717) END FROM WidgetInst WHERE WidgetInstId = 4717) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4719;


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 = 4718) END FROM WidgetInst WHERE WidgetInstId = 4718) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4720;


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 = 4775) END FROM WidgetInst WHERE WidgetInstId = 4775) = 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 = 'Mobile' AND WidgetInstId = 4775) END FROM WidgetInst WHERE WidgetInstId = 4775) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4778;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4784;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4792;


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 = 4788) END FROM WidgetInst WHERE WidgetInstId = 4788) = 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 = 'Parker' AND WidgetInstId = 4790) END FROM WidgetInst WHERE WidgetInstId = 4790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4796;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4798;


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 = 4788) END FROM WidgetInst WHERE WidgetInstId = 4788) = 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 = 'Parker' AND WidgetInstId = 4790) END FROM WidgetInst WHERE WidgetInstId = 4790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4802;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4804;


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 = 4788) END FROM WidgetInst WHERE WidgetInstId = 4788) = 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 = 'Wilcock-Crowe' AND WidgetInstId = 4790) END FROM WidgetInst WHERE WidgetInstId = 4790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4808;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4810;


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 = 4788) END FROM WidgetInst WHERE WidgetInstId = 4788) = 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 = 'Wilcock-Crowe' AND WidgetInstId = 4790) END FROM WidgetInst WHERE WidgetInstId = 4790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4814;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4816;


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 = 4788) END FROM WidgetInst WHERE WidgetInstId = 4788) = 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 = 'Wilcock-Crowe' AND WidgetInstId = 4790) END FROM WidgetInst WHERE WidgetInstId = 4790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4820;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4822;


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 = 4788) END FROM WidgetInst WHERE WidgetInstId = 4788) = 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 = 'Wu-et-al' AND WidgetInstId = 4790) END FROM WidgetInst WHERE WidgetInstId = 4790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4826;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4828;


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 = 4788) END FROM WidgetInst WHERE WidgetInstId = 4788) = 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 = 'Meyer-Peter-Muller' AND WidgetInstId = 4790) END FROM WidgetInst WHERE WidgetInstId = 4790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4832;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4834;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 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 = 'Trinity' AND WidgetInstId = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4838;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4840;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4842;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4844;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4846;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4848;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4850;


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 = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 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 = 'User defined' AND WidgetInstId = 4783) END FROM WidgetInst WHERE WidgetInstId = 4783) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4854;


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 = 4867) END FROM WidgetInst WHERE WidgetInstId = 4867) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4868;


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 = 4877) END FROM WidgetInst WHERE WidgetInstId = 4877) = 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 = 'Data File' AND WidgetInstId = 4880) END FROM WidgetInst WHERE WidgetInstId = 4880) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4881;


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 = 4885) END FROM WidgetInst WHERE WidgetInstId = 4885) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4886;


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 = 4885) END FROM WidgetInst WHERE WidgetInstId = 4885) = 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 = 'On' AND WidgetInstId = 4877) END FROM WidgetInst WHERE WidgetInstId = 4877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4903;


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 = 4917;


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 = 4917;


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 = 4917;


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 = 4917;


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 = 4917;


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 = 4917;


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 = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4918;


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 = 4920) END FROM WidgetInst WHERE WidgetInstId = 4920) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4921;


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 = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4923;


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 = 50) END FROM WidgetInst WHERE WidgetInstId = 50) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4929;


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 = 50) END FROM WidgetInst WHERE WidgetInstId = 50) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4932;


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 = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4935;


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 = 4937) END FROM WidgetInst WHERE WidgetInstId = 4937) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4938;


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 = 4937) END FROM WidgetInst WHERE WidgetInstId = 4937) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4941;


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 = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4944;


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 = 4946) END FROM WidgetInst WHERE WidgetInstId = 4946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4947;


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 = 4946) END FROM WidgetInst WHERE WidgetInstId = 4946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4950;


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 = 4946) END FROM WidgetInst WHERE WidgetInstId = 4946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4953;


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 = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4956;


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 = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 4958) END FROM WidgetInst WHERE WidgetInstId = 4958)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4961;


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 = 4960) END FROM WidgetInst WHERE WidgetInstId = 4960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4964;


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 = 4960) END FROM WidgetInst WHERE WidgetInstId = 4960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4965;


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 = 4960) END FROM WidgetInst WHERE WidgetInstId = 4960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4968;


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 = 4960) END FROM WidgetInst WHERE WidgetInstId = 4960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4969;


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 = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 4958) END FROM WidgetInst WHERE WidgetInstId = 4958)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4970;


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 = 4960) END FROM WidgetInst WHERE WidgetInstId = 4960) = 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 = 'Metric' AND WidgetInstId = 4960) END FROM WidgetInst WHERE WidgetInstId = 4960) = 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 = 'Time Series' AND WidgetInstId = 4976) END FROM WidgetInst WHERE WidgetInstId = 4976) = 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 = 'U.S. Customary' AND WidgetInstId = 4960) END FROM WidgetInst WHERE WidgetInstId = 4960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4979;


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 = 4960) END FROM WidgetInst WHERE WidgetInstId = 4960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4980;


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 = 4976) END FROM WidgetInst WHERE WidgetInstId = 4976) = 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 = 'U.S. Customary' AND WidgetInstId = 4960) END FROM WidgetInst WHERE WidgetInstId = 4960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4983;


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 = 4960) END FROM WidgetInst WHERE WidgetInstId = 4960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4984;


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 = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) = 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 = 'Culvert' AND WidgetInstId = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 4988;


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 = 5021) END FROM WidgetInst WHERE WidgetInstId = 5021) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5022;


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 = 5021) END FROM WidgetInst WHERE WidgetInstId = 5021) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5024;


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 = 5021) END FROM WidgetInst WHERE WidgetInstId = 5021) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5026;


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 = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5028;


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 = 5037) END FROM WidgetInst WHERE WidgetInstId = 5037) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5038;


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 = 5037) END FROM WidgetInst WHERE WidgetInstId = 5037) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5040;


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 = 5037) END FROM WidgetInst WHERE WidgetInstId = 5037) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5042;


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 = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5044;


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 = 5057) END FROM WidgetInst WHERE WidgetInstId = 5057) = 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 TextValues WHERE Value = 'user' AND WidgetInstId = 5057) END FROM WidgetInst WHERE WidgetInstId = 5057) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5060;


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 = 5057) END FROM WidgetInst WHERE WidgetInstId = 5057) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5062;


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 = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5064;


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 = 5077) END FROM WidgetInst WHERE WidgetInstId = 5077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5078;


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 = 5077) END FROM WidgetInst WHERE WidgetInstId = 5077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5080;


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 = 5077) END FROM WidgetInst WHERE WidgetInstId = 5077) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5082;


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 = 5083) END FROM WidgetInst WHERE WidgetInstId = 5083) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5077) END FROM WidgetInst WHERE WidgetInstId = 5077)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5084;


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 = 5083) END FROM WidgetInst WHERE WidgetInstId = 5083) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5077) END FROM WidgetInst WHERE WidgetInstId = 5077)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5086;


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 = 5083) END FROM WidgetInst WHERE WidgetInstId = 5083) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 5077) END FROM WidgetInst WHERE WidgetInstId = 5077)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5088;


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 = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) = 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 TextValues WHERE Value = 'Constant' AND WidgetInstId = 5092) END FROM WidgetInst WHERE WidgetInstId = 5092) = 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 TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5092) END FROM WidgetInst WHERE WidgetInstId = 5092) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5096;


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 = 5092) END FROM WidgetInst WHERE WidgetInstId = 5092) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5099;


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 = 5092) END FROM WidgetInst WHERE WidgetInstId = 5092) = 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 = 'Link' AND WidgetInstId = 4917) END FROM WidgetInst WHERE WidgetInstId = 4917) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5113;


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 = 5116) END FROM WidgetInst WHERE WidgetInstId = 5116) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5117;


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 = 5116) END FROM WidgetInst WHERE WidgetInstId = 5116) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5120;


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 = 5116) END FROM WidgetInst WHERE WidgetInstId = 5116) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5123;


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 = 5116) END FROM WidgetInst WHERE WidgetInstId = 5116) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5134;


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 = 5138) END FROM WidgetInst WHERE WidgetInstId = 5138) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5139;


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 = 5138) END FROM WidgetInst WHERE WidgetInstId = 5138) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5141;


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 = 5138) END FROM WidgetInst WHERE WidgetInstId = 5138) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5143;


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 = 5138) END FROM WidgetInst WHERE WidgetInstId = 5138) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5145;


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 = 5138) END FROM WidgetInst WHERE WidgetInstId = 5138) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5147;


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 = 5138) END FROM WidgetInst WHERE WidgetInstId = 5138) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5149;


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 = 195) END FROM WidgetInst WHERE WidgetInstId = 195) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 53) END FROM WidgetInst WHERE WidgetInstId = 53)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5151;


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 = 5153) END FROM WidgetInst WHERE WidgetInstId = 5153) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5154;


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 = 5168;


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 = 5168;


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 = 5168;


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 = 5168;


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 = 5168;


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 = 5168;


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 = 5169;


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 = 5169;


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 = 5169;


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 = 5169;


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 = 5169;


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 = 5169;


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 = 5170;


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 = 5170;


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 = 5170;


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 = 5170;


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 = 5170;


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 = 5170;


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 = 5171;


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 = 5171;


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 = 5171;


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 = 5171;


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 = 5171;


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 = 5171;


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 = 5172;


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 = 5172;


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 = 5172;


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 = 5172;


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 = 5172;


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 = 5172;


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 = 5173;


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 = 5173;


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 = 5173;


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 = 5173;


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 = 5173;


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 = 5173;


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 = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5174;


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 = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) = 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 = 'Wall (No-slip boundary)' AND WidgetInstId = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) = 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 = 'Wall (No-slip boundary)' AND WidgetInstId = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5177;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5178;


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 = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5179;


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 = 5186) END FROM WidgetInst WHERE WidgetInstId = 5186) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5192;


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 = 5187) END FROM WidgetInst WHERE WidgetInstId = 5187) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5193;


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 = 5188) END FROM WidgetInst WHERE WidgetInstId = 5188) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5194;


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 = 5189) END FROM WidgetInst WHERE WidgetInstId = 5189) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5195;


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 = 5190) END FROM WidgetInst WHERE WidgetInstId = 5190) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5196;


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 = 5191) END FROM WidgetInst WHERE WidgetInstId = 5191) = 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 = 'Culvert HY-8' AND WidgetInstId = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5204;


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 = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5205;


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 = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5206;


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 = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) = 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 = 'Culvert HY-8' AND WidgetInstId = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) = 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 = 'Culvert HY-8' AND WidgetInstId = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5209;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5240;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5241;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5242;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5243;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5244;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5245;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5258;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5259;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5260;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5261;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5262;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5263;


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 = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5276;


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 = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5277;


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 = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5278;


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 = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5279;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5280;


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 = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5281;


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 = 5288) END FROM WidgetInst WHERE WidgetInstId = 5288) = 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 = 'Constant' AND WidgetInstId = 5289) END FROM WidgetInst WHERE WidgetInstId = 5289) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5295;


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 = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 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 = 'Constant' AND WidgetInstId = 5291) END FROM WidgetInst WHERE WidgetInstId = 5291) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5297;


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 = 5292) END FROM WidgetInst WHERE WidgetInstId = 5292) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5298;


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 = 5293) END FROM WidgetInst WHERE WidgetInstId = 5293) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5299;


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 = 5288) END FROM WidgetInst WHERE WidgetInstId = 5288) = 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 = 'Time Series' AND WidgetInstId = 5289) END FROM WidgetInst WHERE WidgetInstId = 5289) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5313;


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 = 5290) END FROM WidgetInst WHERE WidgetInstId = 5290) = 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 = 'Time Series' AND WidgetInstId = 5291) END FROM WidgetInst WHERE WidgetInstId = 5291) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5315;


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 = 5292) END FROM WidgetInst WHERE WidgetInstId = 5292) = 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 = 'Time Series' AND WidgetInstId = 5293) END FROM WidgetInst WHERE WidgetInstId = 5293) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5317;


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 = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) = 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 = 'Exit-H (subcritical outflow)' AND WidgetInstId = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5331;


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 = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) = 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 = 'Exit-H (subcritical outflow)' AND WidgetInstId = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5333;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) = 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 = 'Exit-H (subcritical outflow)' AND WidgetInstId = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5335;


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 = 5342) END FROM WidgetInst WHERE WidgetInstId = 5342) = 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 = 'Constant' AND WidgetInstId = 5343) END FROM WidgetInst WHERE WidgetInstId = 5343) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5349;


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 = 5344) END FROM WidgetInst WHERE WidgetInstId = 5344) = 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 = 'Constant' AND WidgetInstId = 5345) END FROM WidgetInst WHERE WidgetInstId = 5345) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5351;


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 = 5346) END FROM WidgetInst WHERE WidgetInstId = 5346) = 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 = 'Constant' AND WidgetInstId = 5347) END FROM WidgetInst WHERE WidgetInstId = 5347) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5353;


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 = 5342) END FROM WidgetInst WHERE WidgetInstId = 5342) = 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 = 'Time Series' AND WidgetInstId = 5343) END FROM WidgetInst WHERE WidgetInstId = 5343) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5367;


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 = 5344) END FROM WidgetInst WHERE WidgetInstId = 5344) = 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 = 'Time Series' AND WidgetInstId = 5345) END FROM WidgetInst WHERE WidgetInstId = 5345) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5369;


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 = 5346) END FROM WidgetInst WHERE WidgetInstId = 5346) = 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 = 'Time Series' AND WidgetInstId = 5347) END FROM WidgetInst WHERE WidgetInstId = 5347) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5371;


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 = 5342) END FROM WidgetInst WHERE WidgetInstId = 5342) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5384;


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 = 5343) END FROM WidgetInst WHERE WidgetInstId = 5343) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5385;


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 = 5344) END FROM WidgetInst WHERE WidgetInstId = 5344) = 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 = 'Rating Curve' AND WidgetInstId = 5345) END FROM WidgetInst WHERE WidgetInstId = 5345) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5387;


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 = 5346) END FROM WidgetInst WHERE WidgetInstId = 5346) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5388;


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 = 5347) END FROM WidgetInst WHERE WidgetInstId = 5347) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5389;


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 = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5402;


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 = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5403;


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 = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) = 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 = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5405;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) = 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 = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5407;


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 = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5414) END FROM WidgetInst WHERE WidgetInstId = 5414)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5432;


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 = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5415) END FROM WidgetInst WHERE WidgetInstId = 5415)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5433;


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 = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5416) END FROM WidgetInst WHERE WidgetInstId = 5416)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5434;


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 = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5417) END FROM WidgetInst WHERE WidgetInstId = 5417)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5435;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5418) END FROM WidgetInst WHERE WidgetInstId = 5418)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5436;


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 = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 5419) END FROM WidgetInst WHERE WidgetInstId = 5419)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5437;


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 = 5426) END FROM WidgetInst WHERE WidgetInstId = 5426) = 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 = 'U.S. Customary' AND WidgetInstId = 5427) END FROM WidgetInst WHERE WidgetInstId = 5427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5451;


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 = 5428) END FROM WidgetInst WHERE WidgetInstId = 5428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5452;


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 = 5429) END FROM WidgetInst WHERE WidgetInstId = 5429) = 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 = 'U.S. Customary' AND WidgetInstId = 5430) END FROM WidgetInst WHERE WidgetInstId = 5430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5454;


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 = 5431) END FROM WidgetInst WHERE WidgetInstId = 5431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5455;


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 = 5426) END FROM WidgetInst WHERE WidgetInstId = 5426) = 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 = 'Metric' AND WidgetInstId = 5427) END FROM WidgetInst WHERE WidgetInstId = 5427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5457;


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 = 5428) END FROM WidgetInst WHERE WidgetInstId = 5428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5458;


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 = 5429) END FROM WidgetInst WHERE WidgetInstId = 5429) = 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 = 'Metric' AND WidgetInstId = 5430) END FROM WidgetInst WHERE WidgetInstId = 5430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5460;


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 = 5431) END FROM WidgetInst WHERE WidgetInstId = 5431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5461;


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 = 5426) END FROM WidgetInst WHERE WidgetInstId = 5426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5474;


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 = 5427) END FROM WidgetInst WHERE WidgetInstId = 5427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5475;


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 = 5428) END FROM WidgetInst WHERE WidgetInstId = 5428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5476;


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 = 5429) END FROM WidgetInst WHERE WidgetInstId = 5429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5477;


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 = 5430) END FROM WidgetInst WHERE WidgetInstId = 5430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5478;


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 = 5431) END FROM WidgetInst WHERE WidgetInstId = 5431) = 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 = 'Metric' AND WidgetInstId = 5426) END FROM WidgetInst WHERE WidgetInstId = 5426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5480;


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 = 5427) END FROM WidgetInst WHERE WidgetInstId = 5427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5481;


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 = 5428) END FROM WidgetInst WHERE WidgetInstId = 5428) = 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 = 5429) END FROM WidgetInst WHERE WidgetInstId = 5429) = 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 = 'Metric' AND WidgetInstId = 5430) END FROM WidgetInst WHERE WidgetInstId = 5430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5484;


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 = 5431) END FROM WidgetInst WHERE WidgetInstId = 5431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5485;


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 = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5414) END FROM WidgetInst WHERE WidgetInstId = 5414)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5486;


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 = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5415) END FROM WidgetInst WHERE WidgetInstId = 5415)) = 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 = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5416) END FROM WidgetInst WHERE WidgetInstId = 5416)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5488;


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 = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5417) END FROM WidgetInst WHERE WidgetInstId = 5417)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5489;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5418) END FROM WidgetInst WHERE WidgetInstId = 5418)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5490;


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 = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 5419) END FROM WidgetInst WHERE WidgetInstId = 5419)) = 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 = 'U.S. Customary' AND WidgetInstId = 5426) END FROM WidgetInst WHERE WidgetInstId = 5426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5504;


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 = 5427) END FROM WidgetInst WHERE WidgetInstId = 5427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5505;


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 = 5428) END FROM WidgetInst WHERE WidgetInstId = 5428) = 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 = 'U.S. Customary' AND WidgetInstId = 5429) END FROM WidgetInst WHERE WidgetInstId = 5429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5507;


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 = 5430) END FROM WidgetInst WHERE WidgetInstId = 5430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5508;


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 = 5431) END FROM WidgetInst WHERE WidgetInstId = 5431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5509;


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 = 5426) END FROM WidgetInst WHERE WidgetInstId = 5426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5510;


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 = 5427) END FROM WidgetInst WHERE WidgetInstId = 5427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5511;


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 = 5428) END FROM WidgetInst WHERE WidgetInstId = 5428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5512;


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 = 5429) END FROM WidgetInst WHERE WidgetInstId = 5429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5513;


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 = 5430) END FROM WidgetInst WHERE WidgetInstId = 5430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5514;


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 = 5431) END FROM WidgetInst WHERE WidgetInstId = 5431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5515;


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 = 5522) END FROM WidgetInst WHERE WidgetInstId = 5522) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5528;


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 = 5523) END FROM WidgetInst WHERE WidgetInstId = 5523) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5529;


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 = 5524) END FROM WidgetInst WHERE WidgetInstId = 5524) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5530;


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 = 5525) END FROM WidgetInst WHERE WidgetInstId = 5525) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5531;


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 = 5526) END FROM WidgetInst WHERE WidgetInstId = 5526) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5532;


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 = 5527) END FROM WidgetInst WHERE WidgetInstId = 5527) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5533;


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 = 5426) END FROM WidgetInst WHERE WidgetInstId = 5426) = 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 = 'U.S. Customary' AND WidgetInstId = 5427) END FROM WidgetInst WHERE WidgetInstId = 5427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5541;


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 = 5428) END FROM WidgetInst WHERE WidgetInstId = 5428) = 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 = 'U.S. Customary' AND WidgetInstId = 5429) END FROM WidgetInst WHERE WidgetInstId = 5429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5543;


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 = 5430) END FROM WidgetInst WHERE WidgetInstId = 5430) = 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 = 'U.S. Customary' AND WidgetInstId = 5431) END FROM WidgetInst WHERE WidgetInstId = 5431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5545;


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 = 5426) END FROM WidgetInst WHERE WidgetInstId = 5426) = 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 = 'Metric' AND WidgetInstId = 5427) END FROM WidgetInst WHERE WidgetInstId = 5427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5547;


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 = 5428) END FROM WidgetInst WHERE WidgetInstId = 5428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5548;


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 = 5429) END FROM WidgetInst WHERE WidgetInstId = 5429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5549;


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 = 5430) END FROM WidgetInst WHERE WidgetInstId = 5430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5550;


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 = 5431) END FROM WidgetInst WHERE WidgetInstId = 5431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5551;


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 = 5522) END FROM WidgetInst WHERE WidgetInstId = 5522) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5552;


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 = 5523) END FROM WidgetInst WHERE WidgetInstId = 5523) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5553;


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 = 5524) END FROM WidgetInst WHERE WidgetInstId = 5524) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5554;


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 = 5525) END FROM WidgetInst WHERE WidgetInstId = 5525) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5555;


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 = 5526) END FROM WidgetInst WHERE WidgetInstId = 5526) = 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 = 'Rating Curve' AND WidgetInstId = 5527) END FROM WidgetInst WHERE WidgetInstId = 5527) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5557;


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 = 5426) END FROM WidgetInst WHERE WidgetInstId = 5426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5564;


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 = 5427) END FROM WidgetInst WHERE WidgetInstId = 5427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5565;


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 = 5428) END FROM WidgetInst WHERE WidgetInstId = 5428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5566;


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 = 5429) END FROM WidgetInst WHERE WidgetInstId = 5429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5567;


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 = 5430) END FROM WidgetInst WHERE WidgetInstId = 5430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5568;


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 = 5431) END FROM WidgetInst WHERE WidgetInstId = 5431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5569;


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 = 5426) END FROM WidgetInst WHERE WidgetInstId = 5426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5570;


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 = 5427) END FROM WidgetInst WHERE WidgetInstId = 5427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5571;


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 = 5428) END FROM WidgetInst WHERE WidgetInstId = 5428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5572;


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 = 5429) END FROM WidgetInst WHERE WidgetInstId = 5429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5573;


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 = 5430) END FROM WidgetInst WHERE WidgetInstId = 5430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5574;


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 = 5431) END FROM WidgetInst WHERE WidgetInstId = 5431) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5575;


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 = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) = 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 IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5577;


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 = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) = 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 IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5579;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) = 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 IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5581;


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 = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5594;


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 = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5595;


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 = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) = 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 TextValues WHERE Value = 'Culvert' AND WidgetInstId = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5597;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) = 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 TextValues WHERE Value = 'Culvert' AND WidgetInstId = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5599;


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 = 5792) END FROM WidgetInst WHERE WidgetInstId = 5792) = 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 = 'user' AND WidgetInstId = 5793) END FROM WidgetInst WHERE WidgetInstId = 5793) = 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 = 'user' AND WidgetInstId = 5794) END FROM WidgetInst WHERE WidgetInstId = 5794) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5800;


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 = 5795) END FROM WidgetInst WHERE WidgetInstId = 5795) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5801;


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 = 5796) END FROM WidgetInst WHERE WidgetInstId = 5796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5802;


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 = 5797) END FROM WidgetInst WHERE WidgetInstId = 5797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5803;


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 = 5792) END FROM WidgetInst WHERE WidgetInstId = 5792) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5810;


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 = 5793) END FROM WidgetInst WHERE WidgetInstId = 5793) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5811;


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 = 5794) END FROM WidgetInst WHERE WidgetInstId = 5794) = 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 = 'user' AND WidgetInstId = 5795) END FROM WidgetInst WHERE WidgetInstId = 5795) = 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 = 'user' AND WidgetInstId = 5796) END FROM WidgetInst WHERE WidgetInstId = 5796) = 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 = 'user' AND WidgetInstId = 5797) END FROM WidgetInst WHERE WidgetInstId = 5797) = 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 = 'user' AND WidgetInstId = 5792) END FROM WidgetInst WHERE WidgetInstId = 5792) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5822;


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 = 5793) END FROM WidgetInst WHERE WidgetInstId = 5793) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5823;


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 = 5794) END FROM WidgetInst WHERE WidgetInstId = 5794) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5824;


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 = 5795) END FROM WidgetInst WHERE WidgetInstId = 5795) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5825;


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 = 5796) END FROM WidgetInst WHERE WidgetInstId = 5796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5826;


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 = 5797) END FROM WidgetInst WHERE WidgetInstId = 5797) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5827;


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 = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) = 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 = 'Weir' AND WidgetInstId = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) = 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 = 'Weir' AND WidgetInstId = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5836;


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 = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5837;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5838;


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 = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5839;


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 = 5888) END FROM WidgetInst WHERE WidgetInstId = 5888) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5894;


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 = 5889) END FROM WidgetInst WHERE WidgetInstId = 5889) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5895;


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 = 5890) END FROM WidgetInst WHERE WidgetInstId = 5890) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5896;


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 = 5891) END FROM WidgetInst WHERE WidgetInstId = 5891) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5897;


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 = 5892) END FROM WidgetInst WHERE WidgetInstId = 5892) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5898;


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 = 5893) END FROM WidgetInst WHERE WidgetInstId = 5893) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5899;


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 = 5888) END FROM WidgetInst WHERE WidgetInstId = 5888) = 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 = 'user' AND WidgetInstId = 5889) END FROM WidgetInst WHERE WidgetInstId = 5889) = 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 = 'user' AND WidgetInstId = 5890) END FROM WidgetInst WHERE WidgetInstId = 5890) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5908;


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 = 5891) END FROM WidgetInst WHERE WidgetInstId = 5891) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5909;


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 = 5892) END FROM WidgetInst WHERE WidgetInstId = 5892) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5910;


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 = 5893) END FROM WidgetInst WHERE WidgetInstId = 5893) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5911;


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 = 5888) END FROM WidgetInst WHERE WidgetInstId = 5888) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5918;


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 = 5889) END FROM WidgetInst WHERE WidgetInstId = 5889) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5919;


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 = 5890) END FROM WidgetInst WHERE WidgetInstId = 5890) = 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 = 'user' AND WidgetInstId = 5891) END FROM WidgetInst WHERE WidgetInstId = 5891) = 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 = 'user' AND WidgetInstId = 5892) END FROM WidgetInst WHERE WidgetInstId = 5892) = 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 = 'user' AND WidgetInstId = 5893) END FROM WidgetInst WHERE WidgetInstId = 5893) = 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 = 'Gate' AND WidgetInstId = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5930;


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 = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5931;


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 = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5932;


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 = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5933;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5934;


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 = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 5935;


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 = 6008) END FROM WidgetInst WHERE WidgetInstId = 6008) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6014;


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 = 6009) END FROM WidgetInst WHERE WidgetInstId = 6009) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6015;


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 = 6010) END FROM WidgetInst WHERE WidgetInstId = 6010) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6016;


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 = 6011) END FROM WidgetInst WHERE WidgetInstId = 6011) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6017;


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 = 6012) END FROM WidgetInst WHERE WidgetInstId = 6012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6018;


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 = 6013) END FROM WidgetInst WHERE WidgetInstId = 6013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6019;


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 = 6008) END FROM WidgetInst WHERE WidgetInstId = 6008) = 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 = 'user' AND WidgetInstId = 6009) END FROM WidgetInst WHERE WidgetInstId = 6009) = 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 = 'user' AND WidgetInstId = 6010) END FROM WidgetInst WHERE WidgetInstId = 6010) = 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 = 'user' AND WidgetInstId = 6011) END FROM WidgetInst WHERE WidgetInstId = 6011) = 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 = 'user' AND WidgetInstId = 6012) END FROM WidgetInst WHERE WidgetInstId = 6012) = 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 = 'user' AND WidgetInstId = 6013) END FROM WidgetInst WHERE WidgetInstId = 6013) = 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 = 'user' AND WidgetInstId = 6008) END FROM WidgetInst WHERE WidgetInstId = 6008) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6038;


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 = 6009) END FROM WidgetInst WHERE WidgetInstId = 6009) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6039;


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 = 6010) END FROM WidgetInst WHERE WidgetInstId = 6010) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6040;


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 = 6011) END FROM WidgetInst WHERE WidgetInstId = 6011) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6041;


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 = 6012) END FROM WidgetInst WHERE WidgetInstId = 6012) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6042;


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 = 6013) END FROM WidgetInst WHERE WidgetInstId = 6013) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6043;


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 = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) = 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 = 'Pressure' AND WidgetInstId = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) = 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 = 'Pressure' AND WidgetInstId = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6052;


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 = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6053;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6054;


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 = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6055;


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 = 6128) END FROM WidgetInst WHERE WidgetInstId = 6128) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6134;


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 = 6129) END FROM WidgetInst WHERE WidgetInstId = 6129) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6135;


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 = 6130) END FROM WidgetInst WHERE WidgetInstId = 6130) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6136;


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 = 6131) END FROM WidgetInst WHERE WidgetInstId = 6131) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6137;


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 = 6132) END FROM WidgetInst WHERE WidgetInstId = 6132) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6138;


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 = 6133) END FROM WidgetInst WHERE WidgetInstId = 6133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6139;


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 = 6128) END FROM WidgetInst WHERE WidgetInstId = 6128) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6146;


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 = 6129) END FROM WidgetInst WHERE WidgetInstId = 6129) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6147;


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 = 6130) END FROM WidgetInst WHERE WidgetInstId = 6130) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6148;


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 = 6131) END FROM WidgetInst WHERE WidgetInstId = 6131) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6149;


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 = 6132) END FROM WidgetInst WHERE WidgetInstId = 6132) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6150;


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 = 6133) END FROM WidgetInst WHERE WidgetInstId = 6133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6151;


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 = 6128) END FROM WidgetInst WHERE WidgetInstId = 6128) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6158;


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 = 6129) END FROM WidgetInst WHERE WidgetInstId = 6129) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6159;


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 = 6130) END FROM WidgetInst WHERE WidgetInstId = 6130) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6160;


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 = 6131) END FROM WidgetInst WHERE WidgetInstId = 6131) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6161;


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 = 6132) END FROM WidgetInst WHERE WidgetInstId = 6132) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6162;


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 = 6133) END FROM WidgetInst WHERE WidgetInstId = 6133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6163;


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 = 6164) END FROM WidgetInst WHERE WidgetInstId = 6164) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6128) END FROM WidgetInst WHERE WidgetInstId = 6128)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6170;


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 = 6165) END FROM WidgetInst WHERE WidgetInstId = 6165) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6129) END FROM WidgetInst WHERE WidgetInstId = 6129)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6171;


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 = 6166) END FROM WidgetInst WHERE WidgetInstId = 6166) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6130) END FROM WidgetInst WHERE WidgetInstId = 6130)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6172;


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 = 6167) END FROM WidgetInst WHERE WidgetInstId = 6167) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6131) END FROM WidgetInst WHERE WidgetInstId = 6131)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6173;


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 = 6168) END FROM WidgetInst WHERE WidgetInstId = 6168) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6132) END FROM WidgetInst WHERE WidgetInstId = 6132)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6174;


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 = 6169) END FROM WidgetInst WHERE WidgetInstId = 6169) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6133) END FROM WidgetInst WHERE WidgetInstId = 6133)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6175;


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 = 6164) END FROM WidgetInst WHERE WidgetInstId = 6164) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6128) END FROM WidgetInst WHERE WidgetInstId = 6128)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6182;


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 = 6165) END FROM WidgetInst WHERE WidgetInstId = 6165) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6129) END FROM WidgetInst WHERE WidgetInstId = 6129)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6183;


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 = 6166) END FROM WidgetInst WHERE WidgetInstId = 6166) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6130) END FROM WidgetInst WHERE WidgetInstId = 6130)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6184;


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 = 6167) END FROM WidgetInst WHERE WidgetInstId = 6167) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6131) END FROM WidgetInst WHERE WidgetInstId = 6131)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6185;


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 = 6168) END FROM WidgetInst WHERE WidgetInstId = 6168) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6132) END FROM WidgetInst WHERE WidgetInstId = 6132)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6186;


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 = 6169) END FROM WidgetInst WHERE WidgetInstId = 6169) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6133) END FROM WidgetInst WHERE WidgetInstId = 6133)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6187;


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 = 6164) END FROM WidgetInst WHERE WidgetInstId = 6164) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6128) END FROM WidgetInst WHERE WidgetInstId = 6128)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6194;


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 = 6165) END FROM WidgetInst WHERE WidgetInstId = 6165) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6129) END FROM WidgetInst WHERE WidgetInstId = 6129)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6195;


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 = 6166) END FROM WidgetInst WHERE WidgetInstId = 6166) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6130) END FROM WidgetInst WHERE WidgetInstId = 6130)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6196;


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 = 6167) END FROM WidgetInst WHERE WidgetInstId = 6167) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6131) END FROM WidgetInst WHERE WidgetInstId = 6131)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6197;


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 = 6168) END FROM WidgetInst WHERE WidgetInstId = 6168) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6132) END FROM WidgetInst WHERE WidgetInstId = 6132)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6198;


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 = 6169) END FROM WidgetInst WHERE WidgetInstId = 6169) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6133) END FROM WidgetInst WHERE WidgetInstId = 6133)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6199;


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 = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6206;


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 = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6207;


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 = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6208;


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 = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6209;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6210;


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 = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6211;


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 = 6218) END FROM WidgetInst WHERE WidgetInstId = 6218) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6224;


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 = 6219) END FROM WidgetInst WHERE WidgetInstId = 6219) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6225;


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 = 6220) END FROM WidgetInst WHERE WidgetInstId = 6220) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6226;


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 = 6221) END FROM WidgetInst WHERE WidgetInstId = 6221) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6227;


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 = 6222) END FROM WidgetInst WHERE WidgetInstId = 6222) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6228;


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 = 6223) END FROM WidgetInst WHERE WidgetInstId = 6223) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6229;


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 = 6218) END FROM WidgetInst WHERE WidgetInstId = 6218) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6242;


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 = 6219) END FROM WidgetInst WHERE WidgetInstId = 6219) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6243;


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 = 6220) END FROM WidgetInst WHERE WidgetInstId = 6220) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6244;


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 = 6221) END FROM WidgetInst WHERE WidgetInstId = 6221) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6245;


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 = 6222) END FROM WidgetInst WHERE WidgetInstId = 6222) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6246;


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 = 6223) END FROM WidgetInst WHERE WidgetInstId = 6223) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6247;


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 = 6218) END FROM WidgetInst WHERE WidgetInstId = 6218) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6260;


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 = 6219) END FROM WidgetInst WHERE WidgetInstId = 6219) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6261;


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 = 6220) END FROM WidgetInst WHERE WidgetInstId = 6220) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6262;


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 = 6221) END FROM WidgetInst WHERE WidgetInstId = 6221) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6263;


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 = 6222) END FROM WidgetInst WHERE WidgetInstId = 6222) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6264;


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 = 6223) END FROM WidgetInst WHERE WidgetInstId = 6223) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6265;


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 = 6218) END FROM WidgetInst WHERE WidgetInstId = 6218) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6326;


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 = 6219) END FROM WidgetInst WHERE WidgetInstId = 6219) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6327;


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 = 6220) END FROM WidgetInst WHERE WidgetInstId = 6220) = 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 = 'Rating curve' AND WidgetInstId = 6221) END FROM WidgetInst WHERE WidgetInstId = 6221) = 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 = 'Rating curve' AND WidgetInstId = 6222) END FROM WidgetInst WHERE WidgetInstId = 6222) = 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 = 'Rating curve' AND WidgetInstId = 6223) END FROM WidgetInst WHERE WidgetInstId = 6223) = 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 = 'Link' AND WidgetInstId = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) = 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 = 'Link' AND WidgetInstId = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) = 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 = 'Link' AND WidgetInstId = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6346;


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 = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6347;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6348;


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 = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6349;


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 = 6362) END FROM WidgetInst WHERE WidgetInstId = 6362) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6368;


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 = 6363) END FROM WidgetInst WHERE WidgetInstId = 6363) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6369;


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 = 6364) END FROM WidgetInst WHERE WidgetInstId = 6364) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6370;


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 = 6365) END FROM WidgetInst WHERE WidgetInstId = 6365) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6371;


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 = 6366) END FROM WidgetInst WHERE WidgetInstId = 6366) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6372;


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 = 6367) END FROM WidgetInst WHERE WidgetInstId = 6367) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6373;


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 = 6362) END FROM WidgetInst WHERE WidgetInstId = 6362) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6386;


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 = 6363) END FROM WidgetInst WHERE WidgetInstId = 6363) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6387;


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 = 6364) END FROM WidgetInst WHERE WidgetInstId = 6364) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6388;


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 = 6365) END FROM WidgetInst WHERE WidgetInstId = 6365) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6389;


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 = 6366) END FROM WidgetInst WHERE WidgetInstId = 6366) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6390;


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 = 6367) END FROM WidgetInst WHERE WidgetInstId = 6367) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6391;


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 = 6362) END FROM WidgetInst WHERE WidgetInstId = 6362) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6404;


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 = 6363) END FROM WidgetInst WHERE WidgetInstId = 6363) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6405;


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 = 6364) END FROM WidgetInst WHERE WidgetInstId = 6364) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6406;


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 = 6365) END FROM WidgetInst WHERE WidgetInstId = 6365) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6407;


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 = 6366) END FROM WidgetInst WHERE WidgetInstId = 6366) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6408;


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 = 6367) END FROM WidgetInst WHERE WidgetInstId = 6367) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6409;


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 = 6362) END FROM WidgetInst WHERE WidgetInstId = 6362) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6470;


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 = 6363) END FROM WidgetInst WHERE WidgetInstId = 6363) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6471;


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 = 6364) END FROM WidgetInst WHERE WidgetInstId = 6364) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6472;


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 = 6365) END FROM WidgetInst WHERE WidgetInstId = 6365) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6473;


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 = 6366) END FROM WidgetInst WHERE WidgetInstId = 6366) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6474;


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 = 6367) END FROM WidgetInst WHERE WidgetInstId = 6367) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6475;


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 = 6494) END FROM WidgetInst WHERE WidgetInstId = 6494) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6500;


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 = 6495) END FROM WidgetInst WHERE WidgetInstId = 6495) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6501;


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 = 6496) END FROM WidgetInst WHERE WidgetInstId = 6496) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6502;


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 = 6497) END FROM WidgetInst WHERE WidgetInstId = 6497) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6503;


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 = 6498) END FROM WidgetInst WHERE WidgetInstId = 6498) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6504;


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 = 6499) END FROM WidgetInst WHERE WidgetInstId = 6499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6505;


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 = 6494) END FROM WidgetInst WHERE WidgetInstId = 6494) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6512;


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 = 6495) END FROM WidgetInst WHERE WidgetInstId = 6495) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6513;


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 = 6496) END FROM WidgetInst WHERE WidgetInstId = 6496) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6514;


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 = 6497) END FROM WidgetInst WHERE WidgetInstId = 6497) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6515;


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 = 6498) END FROM WidgetInst WHERE WidgetInstId = 6498) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6516;


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 = 6499) END FROM WidgetInst WHERE WidgetInstId = 6499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6517;


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 = 6494) END FROM WidgetInst WHERE WidgetInstId = 6494) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6524;


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 = 6495) END FROM WidgetInst WHERE WidgetInstId = 6495) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6525;


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 = 6496) END FROM WidgetInst WHERE WidgetInstId = 6496) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6526;


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 = 6497) END FROM WidgetInst WHERE WidgetInstId = 6497) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6527;


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 = 6498) END FROM WidgetInst WHERE WidgetInstId = 6498) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6528;


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 = 6499) END FROM WidgetInst WHERE WidgetInstId = 6499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6529;


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 = 6494) END FROM WidgetInst WHERE WidgetInstId = 6494) = 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 = 'Computed' AND WidgetInstId = 6495) END FROM WidgetInst WHERE WidgetInstId = 6495) = 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 = 'Computed' AND WidgetInstId = 6496) END FROM WidgetInst WHERE WidgetInstId = 6496) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6538;


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 = 6497) END FROM WidgetInst WHERE WidgetInstId = 6497) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6539;


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 = 6498) END FROM WidgetInst WHERE WidgetInstId = 6498) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6540;


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 = 6499) END FROM WidgetInst WHERE WidgetInstId = 6499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6541;


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 = 6494) END FROM WidgetInst WHERE WidgetInstId = 6494) = 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 = 'Computed' AND WidgetInstId = 6495) END FROM WidgetInst WHERE WidgetInstId = 6495) = 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 = 'Computed' AND WidgetInstId = 6496) END FROM WidgetInst WHERE WidgetInstId = 6496) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6550;


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 = 6497) END FROM WidgetInst WHERE WidgetInstId = 6497) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6551;


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 = 6498) END FROM WidgetInst WHERE WidgetInstId = 6498) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6552;


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 = 6499) END FROM WidgetInst WHERE WidgetInstId = 6499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6553;


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 = 6494) END FROM WidgetInst WHERE WidgetInstId = 6494) = 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 = 'Computed' AND WidgetInstId = 6495) END FROM WidgetInst WHERE WidgetInstId = 6495) = 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 = 'Computed' AND WidgetInstId = 6496) END FROM WidgetInst WHERE WidgetInstId = 6496) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6562;


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 = 6497) END FROM WidgetInst WHERE WidgetInstId = 6497) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6563;


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 = 6498) END FROM WidgetInst WHERE WidgetInstId = 6498) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6564;


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 = 6499) END FROM WidgetInst WHERE WidgetInstId = 6499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6565;


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 = 5168) END FROM WidgetInst WHERE WidgetInstId = 5168) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 4775) END FROM WidgetInst WHERE WidgetInstId = 4775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6572;


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 = 5169) END FROM WidgetInst WHERE WidgetInstId = 5169) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 4775) END FROM WidgetInst WHERE WidgetInstId = 4775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6573;


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 = 5170) END FROM WidgetInst WHERE WidgetInstId = 5170) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 4775) END FROM WidgetInst WHERE WidgetInstId = 4775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6574;


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 = 5171) END FROM WidgetInst WHERE WidgetInstId = 5171) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 4775) END FROM WidgetInst WHERE WidgetInstId = 4775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6575;


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 = 5172) END FROM WidgetInst WHERE WidgetInstId = 5172) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 4775) END FROM WidgetInst WHERE WidgetInstId = 4775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6576;


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 = 5173) END FROM WidgetInst WHERE WidgetInstId = 5173) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 4775) END FROM WidgetInst WHERE WidgetInstId = 4775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6577;


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 = 6584) END FROM WidgetInst WHERE WidgetInstId = 6584) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6590;


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 = 6585) END FROM WidgetInst WHERE WidgetInstId = 6585) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6591;


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 = 6586) END FROM WidgetInst WHERE WidgetInstId = 6586) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6592;


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 = 6587) END FROM WidgetInst WHERE WidgetInstId = 6587) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6593;


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 = 6588) END FROM WidgetInst WHERE WidgetInstId = 6588) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6594;


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 = 6589) END FROM WidgetInst WHERE WidgetInstId = 6589) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6595;


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 = 6606;


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 = 6606;


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 = 6606;


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 = 6606;


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 = 6606;


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 = 6606;


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 = 6607;


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 = 6607;


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 = 6607;


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 = 6607;


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 = 6607;


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 = 6607;


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 = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6608;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6609;


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 = 6612) END FROM WidgetInst WHERE WidgetInstId = 6612) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6614;


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 = 6613) END FROM WidgetInst WHERE WidgetInstId = 6613) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6615;


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 = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6618;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6619;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6630;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6631;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6636;


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 = 4772) END FROM WidgetInst WHERE WidgetInstId = 4772) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6637;


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 = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6642;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6643;


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 = 6646) END FROM WidgetInst WHERE WidgetInstId = 6646) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6648;


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 = 6647) END FROM WidgetInst WHERE WidgetInstId = 6647) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6649;


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 = 6646) END FROM WidgetInst WHERE WidgetInstId = 6646) = 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 TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6647) END FROM WidgetInst WHERE WidgetInstId = 6647) = 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 TextValues WHERE Value = 'Exit-H (subcritical outflow)' AND WidgetInstId = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6660;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6661;


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 = 6664) END FROM WidgetInst WHERE WidgetInstId = 6664) = 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 TextValues WHERE Value = 'Constant' AND WidgetInstId = 6665) END FROM WidgetInst WHERE WidgetInstId = 6665) = 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 TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6664) END FROM WidgetInst WHERE WidgetInstId = 6664) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6672;


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 = 6665) END FROM WidgetInst WHERE WidgetInstId = 6665) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6673;


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 = 6664) END FROM WidgetInst WHERE WidgetInstId = 6664) = 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 TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 6665) END FROM WidgetInst WHERE WidgetInstId = 6665) = 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 TextValues WHERE Value = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6684;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6685;


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 = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6688) END FROM WidgetInst WHERE WidgetInstId = 6688)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6694;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 6689) END FROM WidgetInst WHERE WidgetInstId = 6689)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6695;


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 = 6692) END FROM WidgetInst WHERE WidgetInstId = 6692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6700;


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 = 6693) END FROM WidgetInst WHERE WidgetInstId = 6693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6701;


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 = 6692) END FROM WidgetInst WHERE WidgetInstId = 6692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6702;


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 = 6693) END FROM WidgetInst WHERE WidgetInstId = 6693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6703;


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 = 6692) END FROM WidgetInst WHERE WidgetInstId = 6692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6708;


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 = 6693) END FROM WidgetInst WHERE WidgetInstId = 6693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6709;


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 = 6692) END FROM WidgetInst WHERE WidgetInstId = 6692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6710;


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 = 6693) END FROM WidgetInst WHERE WidgetInstId = 6693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6711;


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 = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6688) END FROM WidgetInst WHERE WidgetInstId = 6688)) = 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 = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 6689) END FROM WidgetInst WHERE WidgetInstId = 6689)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6713;


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 = 6692) END FROM WidgetInst WHERE WidgetInstId = 6692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6718;


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 = 6693) END FROM WidgetInst WHERE WidgetInstId = 6693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6719;


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 = 6692) END FROM WidgetInst WHERE WidgetInstId = 6692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6720;


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 = 6693) END FROM WidgetInst WHERE WidgetInstId = 6693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6721;


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 = 6724) END FROM WidgetInst WHERE WidgetInstId = 6724) = 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 = 'Time Series' AND WidgetInstId = 6725) END FROM WidgetInst WHERE WidgetInstId = 6725) = 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 = 'U.S. Customary' AND WidgetInstId = 6692) END FROM WidgetInst WHERE WidgetInstId = 6692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6730;


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 = 6693) END FROM WidgetInst WHERE WidgetInstId = 6693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6731;


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 = 6692) END FROM WidgetInst WHERE WidgetInstId = 6692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6732;


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 = 6693) END FROM WidgetInst WHERE WidgetInstId = 6693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6733;


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 = 6724) END FROM WidgetInst WHERE WidgetInstId = 6724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6734;


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 = 6725) END FROM WidgetInst WHERE WidgetInstId = 6725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6735;


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 = 6692) END FROM WidgetInst WHERE WidgetInstId = 6692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6738;


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 = 6693) END FROM WidgetInst WHERE WidgetInstId = 6693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6739;


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 = 6692) END FROM WidgetInst WHERE WidgetInstId = 6692) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6740;


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 = 6693) END FROM WidgetInst WHERE WidgetInstId = 6693) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6741;


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 = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) = 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 IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) = 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 = 'Culvert' AND WidgetInstId = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6748;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6749;


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 = 6814) END FROM WidgetInst WHERE WidgetInstId = 6814) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6816;


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 = 6815) END FROM WidgetInst WHERE WidgetInstId = 6815) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6817;


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 = 6814) END FROM WidgetInst WHERE WidgetInstId = 6814) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6820;


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 = 6815) END FROM WidgetInst WHERE WidgetInstId = 6815) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6821;


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 = 6814) END FROM WidgetInst WHERE WidgetInstId = 6814) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6824;


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 = 6815) END FROM WidgetInst WHERE WidgetInstId = 6815) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6825;


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 = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6828;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6829;


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 = 6846) END FROM WidgetInst WHERE WidgetInstId = 6846) = 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 = 'user' AND WidgetInstId = 6847) END FROM WidgetInst WHERE WidgetInstId = 6847) = 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 = 'user' AND WidgetInstId = 6846) END FROM WidgetInst WHERE WidgetInstId = 6846) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6852;


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 = 6847) END FROM WidgetInst WHERE WidgetInstId = 6847) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6853;


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 = 6846) END FROM WidgetInst WHERE WidgetInstId = 6846) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6856;


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 = 6847) END FROM WidgetInst WHERE WidgetInstId = 6847) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6857;


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 = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6860;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6861;


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 = 6886) END FROM WidgetInst WHERE WidgetInstId = 6886) = 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 = 'user' AND WidgetInstId = 6887) END FROM WidgetInst WHERE WidgetInstId = 6887) = 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 = 'user' AND WidgetInstId = 6886) END FROM WidgetInst WHERE WidgetInstId = 6886) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6892;


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 = 6887) END FROM WidgetInst WHERE WidgetInstId = 6887) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6893;


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 = 6886) END FROM WidgetInst WHERE WidgetInstId = 6886) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6896;


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 = 6887) END FROM WidgetInst WHERE WidgetInstId = 6887) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6897;


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 = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6900;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6901;


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 = 6926) END FROM WidgetInst WHERE WidgetInstId = 6926) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6928;


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 = 6927) END FROM WidgetInst WHERE WidgetInstId = 6927) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6929;


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 = 6926) END FROM WidgetInst WHERE WidgetInstId = 6926) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6932;


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 = 6927) END FROM WidgetInst WHERE WidgetInstId = 6927) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6933;


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 = 6926) END FROM WidgetInst WHERE WidgetInstId = 6926) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6936;


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 = 6927) END FROM WidgetInst WHERE WidgetInstId = 6927) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6937;


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 = 6938) END FROM WidgetInst WHERE WidgetInstId = 6938) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6926) END FROM WidgetInst WHERE WidgetInstId = 6926)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6940;


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 = 6939) END FROM WidgetInst WHERE WidgetInstId = 6939) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6927) END FROM WidgetInst WHERE WidgetInstId = 6927)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6941;


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 = 6938) END FROM WidgetInst WHERE WidgetInstId = 6938) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6926) END FROM WidgetInst WHERE WidgetInstId = 6926)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6944;


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 = 6939) END FROM WidgetInst WHERE WidgetInstId = 6939) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6927) END FROM WidgetInst WHERE WidgetInstId = 6927)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6945;


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 = 6938) END FROM WidgetInst WHERE WidgetInstId = 6938) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6926) END FROM WidgetInst WHERE WidgetInstId = 6926)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6948;


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 = 6939) END FROM WidgetInst WHERE WidgetInstId = 6939) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 6927) END FROM WidgetInst WHERE WidgetInstId = 6927)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6949;


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 = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6952;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6953;


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 = 6956) END FROM WidgetInst WHERE WidgetInstId = 6956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6958;


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 = 6957) END FROM WidgetInst WHERE WidgetInstId = 6957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6959;


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 = 6956) END FROM WidgetInst WHERE WidgetInstId = 6956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6964;


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 = 6957) END FROM WidgetInst WHERE WidgetInstId = 6957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6965;


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 = 6956) END FROM WidgetInst WHERE WidgetInstId = 6956) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6970;


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 = 6957) END FROM WidgetInst WHERE WidgetInstId = 6957) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6971;


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 = 6956) END FROM WidgetInst WHERE WidgetInstId = 6956) = 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 = 6957) END FROM WidgetInst WHERE WidgetInstId = 6957) = 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 = 'Link' AND WidgetInstId = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6998;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 6999;


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 = 7004) END FROM WidgetInst WHERE WidgetInstId = 7004) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7006;


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 = 7005) END FROM WidgetInst WHERE WidgetInstId = 7005) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7007;


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 = 7004) END FROM WidgetInst WHERE WidgetInstId = 7004) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7012;


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 = 7005) END FROM WidgetInst WHERE WidgetInstId = 7005) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7013;


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 = 7004) END FROM WidgetInst WHERE WidgetInstId = 7004) = 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 = 'Weir' AND WidgetInstId = 7005) END FROM WidgetInst WHERE WidgetInstId = 7005) = 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 = 'Rating curve' AND WidgetInstId = 7004) END FROM WidgetInst WHERE WidgetInstId = 7004) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7040;


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 = 7005) END FROM WidgetInst WHERE WidgetInstId = 7005) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7041;


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 = 7048) END FROM WidgetInst WHERE WidgetInstId = 7048) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7050;


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 = 7049) END FROM WidgetInst WHERE WidgetInstId = 7049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7051;


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 = 7048) END FROM WidgetInst WHERE WidgetInstId = 7048) = 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 = 7049) END FROM WidgetInst WHERE WidgetInstId = 7049) = 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 = 7048) END FROM WidgetInst WHERE WidgetInstId = 7048) = 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 = 7049) END FROM WidgetInst WHERE WidgetInstId = 7049) = 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 = 7048) END FROM WidgetInst WHERE WidgetInstId = 7048) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7062;


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 = 7049) END FROM WidgetInst WHERE WidgetInstId = 7049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7063;


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 = 7048) END FROM WidgetInst WHERE WidgetInstId = 7048) = 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 = 7049) END FROM WidgetInst WHERE WidgetInstId = 7049) = 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 = 7048) END FROM WidgetInst WHERE WidgetInstId = 7048) = 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 = 7049) END FROM WidgetInst WHERE WidgetInstId = 7049) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7071;


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 = 6606) END FROM WidgetInst WHERE WidgetInstId = 6606) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 4775) END FROM WidgetInst WHERE WidgetInstId = 4775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7074;


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 = 6607) END FROM WidgetInst WHERE WidgetInstId = 6607) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 4775) END FROM WidgetInst WHERE WidgetInstId = 4775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7075;


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 = 7078) END FROM WidgetInst WHERE WidgetInstId = 7078) = 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 = 'File' AND WidgetInstId = 7079) END FROM WidgetInst WHERE WidgetInstId = 7079) = 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 = 'Flow' AND WidgetInstId = 7136) END FROM WidgetInst WHERE WidgetInstId = 7136) = 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 = 'Mobile' AND WidgetInstId = 7136) END FROM WidgetInst WHERE WidgetInstId = 7136) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7139;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7145;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7153;


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 = 7149) END FROM WidgetInst WHERE WidgetInstId = 7149) = 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 = 'Parker' AND WidgetInstId = 7151) END FROM WidgetInst WHERE WidgetInstId = 7151) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7157;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7159;


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 = 7149) END FROM WidgetInst WHERE WidgetInstId = 7149) = 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 = 'Parker' AND WidgetInstId = 7151) END FROM WidgetInst WHERE WidgetInstId = 7151) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7163;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7165;


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 = 7149) END FROM WidgetInst WHERE WidgetInstId = 7149) = 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 = 'Wilcock-Crowe' AND WidgetInstId = 7151) END FROM WidgetInst WHERE WidgetInstId = 7151) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7169;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7171;


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 = 7149) END FROM WidgetInst WHERE WidgetInstId = 7149) = 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 = 'Wilcock-Crowe' AND WidgetInstId = 7151) END FROM WidgetInst WHERE WidgetInstId = 7151) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7175;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7177;


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 = 7149) END FROM WidgetInst WHERE WidgetInstId = 7149) = 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 = 'Wilcock-Crowe' AND WidgetInstId = 7151) END FROM WidgetInst WHERE WidgetInstId = 7151) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7181;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7183;


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 = 7149) END FROM WidgetInst WHERE WidgetInstId = 7149) = 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 = 'Wu-et-al' AND WidgetInstId = 7151) END FROM WidgetInst WHERE WidgetInstId = 7151) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7187;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7189;


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 = 7149) END FROM WidgetInst WHERE WidgetInstId = 7149) = 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 = 'Meyer-Peter-Muller' AND WidgetInstId = 7151) END FROM WidgetInst WHERE WidgetInstId = 7151) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7193;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7195;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 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 = 'Trinity' AND WidgetInstId = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7199;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7201;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7203;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7205;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7207;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7209;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7211;


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 = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 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 = 'User defined' AND WidgetInstId = 7144) END FROM WidgetInst WHERE WidgetInstId = 7144) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7215;


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 = 7228) END FROM WidgetInst WHERE WidgetInstId = 7228) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7229;


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 = 7238) END FROM WidgetInst WHERE WidgetInstId = 7238) = 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 = 'Data File' AND WidgetInstId = 7241) END FROM WidgetInst WHERE WidgetInstId = 7241) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7242;


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 = 7246) END FROM WidgetInst WHERE WidgetInstId = 7246) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7247;


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 = 7246) END FROM WidgetInst WHERE WidgetInstId = 7246) = 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 = 'On' AND WidgetInstId = 7238) END FROM WidgetInst WHERE WidgetInstId = 7238) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7264;


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 = 7278;


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 = 7278;


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 = 7278;


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 = 7278;


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 = 7278;


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 = 7278;


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 = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7279;


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 = 7281) END FROM WidgetInst WHERE WidgetInstId = 7281) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7282;


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 = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7284;


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 = 50) END FROM WidgetInst WHERE WidgetInstId = 50) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7290;


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 = 50) END FROM WidgetInst WHERE WidgetInstId = 50) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7293;


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 = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7296;


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 = 7298) END FROM WidgetInst WHERE WidgetInstId = 7298) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7299;


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 = 7298) END FROM WidgetInst WHERE WidgetInstId = 7298) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7302;


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 = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7305;


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 = 7307) END FROM WidgetInst WHERE WidgetInstId = 7307) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7308;


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 = 7307) END FROM WidgetInst WHERE WidgetInstId = 7307) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7311;


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 = 7307) END FROM WidgetInst WHERE WidgetInstId = 7307) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7314;


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 = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7317;


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 = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7319) END FROM WidgetInst WHERE WidgetInstId = 7319)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7322;


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 = 7321) END FROM WidgetInst WHERE WidgetInstId = 7321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7325;


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 = 7321) END FROM WidgetInst WHERE WidgetInstId = 7321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7326;


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 = 7321) END FROM WidgetInst WHERE WidgetInstId = 7321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7329;


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 = 7321) END FROM WidgetInst WHERE WidgetInstId = 7321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7330;


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 = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7319) END FROM WidgetInst WHERE WidgetInstId = 7319)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7331;


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 = 7321) END FROM WidgetInst WHERE WidgetInstId = 7321) = 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 = 'Metric' AND WidgetInstId = 7321) END FROM WidgetInst WHERE WidgetInstId = 7321) = 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 = 'Time Series' AND WidgetInstId = 7337) END FROM WidgetInst WHERE WidgetInstId = 7337) = 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 = 'U.S. Customary' AND WidgetInstId = 7321) END FROM WidgetInst WHERE WidgetInstId = 7321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7340;


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 = 7321) END FROM WidgetInst WHERE WidgetInstId = 7321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7341;


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 = 7337) END FROM WidgetInst WHERE WidgetInstId = 7337) = 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 = 'U.S. Customary' AND WidgetInstId = 7321) END FROM WidgetInst WHERE WidgetInstId = 7321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7344;


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 = 7321) END FROM WidgetInst WHERE WidgetInstId = 7321) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7345;


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 = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) = 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 = 'Culvert' AND WidgetInstId = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7349;


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 = 7382) END FROM WidgetInst WHERE WidgetInstId = 7382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7383;


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 = 7382) END FROM WidgetInst WHERE WidgetInstId = 7382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7385;


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 = 7382) END FROM WidgetInst WHERE WidgetInstId = 7382) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7387;


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 = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7389;


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 = 7398) END FROM WidgetInst WHERE WidgetInstId = 7398) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7399;


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 = 7398) END FROM WidgetInst WHERE WidgetInstId = 7398) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7401;


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 = 7398) END FROM WidgetInst WHERE WidgetInstId = 7398) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7403;


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 = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7405;


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 = 7418) END FROM WidgetInst WHERE WidgetInstId = 7418) = 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 TextValues WHERE Value = 'user' AND WidgetInstId = 7418) END FROM WidgetInst WHERE WidgetInstId = 7418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7421;


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 = 7418) END FROM WidgetInst WHERE WidgetInstId = 7418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7423;


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 = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7425;


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 = 7438) END FROM WidgetInst WHERE WidgetInstId = 7438) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7439;


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 = 7438) END FROM WidgetInst WHERE WidgetInstId = 7438) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7441;


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 = 7438) END FROM WidgetInst WHERE WidgetInstId = 7438) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7443;


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 = 7444) END FROM WidgetInst WHERE WidgetInstId = 7444) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7438) END FROM WidgetInst WHERE WidgetInstId = 7438)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7445;


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 = 7444) END FROM WidgetInst WHERE WidgetInstId = 7444) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7438) END FROM WidgetInst WHERE WidgetInstId = 7438)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7447;


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 = 7444) END FROM WidgetInst WHERE WidgetInstId = 7444) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 7438) END FROM WidgetInst WHERE WidgetInstId = 7438)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7449;


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 = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) = 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 TextValues WHERE Value = 'Constant' AND WidgetInstId = 7453) END FROM WidgetInst WHERE WidgetInstId = 7453) = 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 TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7453) END FROM WidgetInst WHERE WidgetInstId = 7453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7457;


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 = 7453) END FROM WidgetInst WHERE WidgetInstId = 7453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7460;


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 = 7453) END FROM WidgetInst WHERE WidgetInstId = 7453) = 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 = 'Link' AND WidgetInstId = 7278) END FROM WidgetInst WHERE WidgetInstId = 7278) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7474;


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 = 7477) END FROM WidgetInst WHERE WidgetInstId = 7477) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7478;


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 = 7477) END FROM WidgetInst WHERE WidgetInstId = 7477) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7481;


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 = 7477) END FROM WidgetInst WHERE WidgetInstId = 7477) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7484;


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 = 7477) END FROM WidgetInst WHERE WidgetInstId = 7477) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7495;


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 = 7499) END FROM WidgetInst WHERE WidgetInstId = 7499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7500;


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 = 7499) END FROM WidgetInst WHERE WidgetInstId = 7499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7502;


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 = 7499) END FROM WidgetInst WHERE WidgetInstId = 7499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7504;


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 = 7499) END FROM WidgetInst WHERE WidgetInstId = 7499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7506;


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 = 7499) END FROM WidgetInst WHERE WidgetInstId = 7499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7508;


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 = 7499) END FROM WidgetInst WHERE WidgetInstId = 7499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7510;


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 = 195) END FROM WidgetInst WHERE WidgetInstId = 195) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 53) END FROM WidgetInst WHERE WidgetInstId = 53)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7512;


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 = 7514) END FROM WidgetInst WHERE WidgetInstId = 7514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7515;


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 = 7529;


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 = 7529;


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 = 7529;


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 = 7529;


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 = 7529;


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 = 7529;


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 = 7530;


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 = 7530;


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 = 7530;


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 = 7530;


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 = 7530;


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 = 7530;


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 = 7531;


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 = 7531;


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 = 7531;


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 = 7531;


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 = 7531;


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 = 7531;


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 = 7532;


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 = 7532;


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 = 7532;


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 = 7532;


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 = 7532;


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 = 7532;


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 = 7533;


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 = 7533;


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 = 7533;


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 = 7533;


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 = 7533;


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 = 7533;


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 = 7534;


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 = 7534;


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 = 7534;


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 = 7534;


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 = 7534;


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 = 7534;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7535;


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 = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) = 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 = 'Wall (No-slip boundary)' AND WidgetInstId = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) = 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 = 'Wall (No-slip boundary)' AND WidgetInstId = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7538;


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 = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7539;


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 = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7540;


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 = 7547) END FROM WidgetInst WHERE WidgetInstId = 7547) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7553;


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 = 7548) END FROM WidgetInst WHERE WidgetInstId = 7548) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7554;


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 = 7549) END FROM WidgetInst WHERE WidgetInstId = 7549) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7555;


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 = 7550) END FROM WidgetInst WHERE WidgetInstId = 7550) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7556;


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 = 7551) END FROM WidgetInst WHERE WidgetInstId = 7551) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7557;


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 = 7552) END FROM WidgetInst WHERE WidgetInstId = 7552) = 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 = 'Culvert HY-8' AND WidgetInstId = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7565;


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 = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7566;


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 = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7567;


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 = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) = 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 = 'Culvert HY-8' AND WidgetInstId = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) = 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 = 'Culvert HY-8' AND WidgetInstId = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7570;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7601;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7602;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7603;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7604;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7605;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7606;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7619;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7620;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7621;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7622;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7623;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7624;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7637;


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 = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7638;


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 = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7639;


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 = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7640;


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 = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7641;


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 = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7642;


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 = 7649) END FROM WidgetInst WHERE WidgetInstId = 7649) = 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 = 'Constant' AND WidgetInstId = 7650) END FROM WidgetInst WHERE WidgetInstId = 7650) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7656;


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 = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 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 = 'Constant' AND WidgetInstId = 7652) END FROM WidgetInst WHERE WidgetInstId = 7652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7658;


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 = 7653) END FROM WidgetInst WHERE WidgetInstId = 7653) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7659;


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 = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7660;


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 = 7649) END FROM WidgetInst WHERE WidgetInstId = 7649) = 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 = 'Time Series' AND WidgetInstId = 7650) END FROM WidgetInst WHERE WidgetInstId = 7650) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7674;


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 = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 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 = 'Time Series' AND WidgetInstId = 7652) END FROM WidgetInst WHERE WidgetInstId = 7652) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7676;


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 = 7653) END FROM WidgetInst WHERE WidgetInstId = 7653) = 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 = 'Time Series' AND WidgetInstId = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7678;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) = 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 = 'Exit-H (subcritical outflow)' AND WidgetInstId = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7692;


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 = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) = 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 = 'Exit-H (subcritical outflow)' AND WidgetInstId = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7694;


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 = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) = 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 = 'Exit-H (subcritical outflow)' AND WidgetInstId = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7696;


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 = 7703) END FROM WidgetInst WHERE WidgetInstId = 7703) = 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 = 'Constant' AND WidgetInstId = 7704) END FROM WidgetInst WHERE WidgetInstId = 7704) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7710;


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 = 7705) END FROM WidgetInst WHERE WidgetInstId = 7705) = 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 = 'Constant' AND WidgetInstId = 7706) END FROM WidgetInst WHERE WidgetInstId = 7706) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7712;


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 = 7707) END FROM WidgetInst WHERE WidgetInstId = 7707) = 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 = 'Constant' AND WidgetInstId = 7708) END FROM WidgetInst WHERE WidgetInstId = 7708) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7714;


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 = 7703) END FROM WidgetInst WHERE WidgetInstId = 7703) = 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 = 'Time Series' AND WidgetInstId = 7704) END FROM WidgetInst WHERE WidgetInstId = 7704) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7728;


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 = 7705) END FROM WidgetInst WHERE WidgetInstId = 7705) = 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 = 'Time Series' AND WidgetInstId = 7706) END FROM WidgetInst WHERE WidgetInstId = 7706) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7730;


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 = 7707) END FROM WidgetInst WHERE WidgetInstId = 7707) = 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 = 'Time Series' AND WidgetInstId = 7708) END FROM WidgetInst WHERE WidgetInstId = 7708) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7732;


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 = 7703) END FROM WidgetInst WHERE WidgetInstId = 7703) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7745;


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 = 7704) END FROM WidgetInst WHERE WidgetInstId = 7704) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7746;


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 = 7705) END FROM WidgetInst WHERE WidgetInstId = 7705) = 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 = 'Rating Curve' AND WidgetInstId = 7706) END FROM WidgetInst WHERE WidgetInstId = 7706) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7748;


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 = 7707) END FROM WidgetInst WHERE WidgetInstId = 7707) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7749;


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 = 7708) END FROM WidgetInst WHERE WidgetInstId = 7708) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7750;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7763;


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 = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7764;


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 = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) = 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 = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7766;


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 = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) = 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 = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7768;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7775) END FROM WidgetInst WHERE WidgetInstId = 7775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7793;


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 = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7776) END FROM WidgetInst WHERE WidgetInstId = 7776)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7794;


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 = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7777) END FROM WidgetInst WHERE WidgetInstId = 7777)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7795;


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 = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7778) END FROM WidgetInst WHERE WidgetInstId = 7778)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7796;


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 = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7779) END FROM WidgetInst WHERE WidgetInstId = 7779)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7797;


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 = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 7780) END FROM WidgetInst WHERE WidgetInstId = 7780)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7798;


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 = 7787) END FROM WidgetInst WHERE WidgetInstId = 7787) = 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 = 'U.S. Customary' AND WidgetInstId = 7788) END FROM WidgetInst WHERE WidgetInstId = 7788) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7812;


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 = 7789) END FROM WidgetInst WHERE WidgetInstId = 7789) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7813;


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 = 7790) END FROM WidgetInst WHERE WidgetInstId = 7790) = 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 = 'U.S. Customary' AND WidgetInstId = 7791) END FROM WidgetInst WHERE WidgetInstId = 7791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7815;


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 = 7792) END FROM WidgetInst WHERE WidgetInstId = 7792) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7816;


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 = 7787) END FROM WidgetInst WHERE WidgetInstId = 7787) = 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 = 'Metric' AND WidgetInstId = 7788) END FROM WidgetInst WHERE WidgetInstId = 7788) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7818;


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 = 7789) END FROM WidgetInst WHERE WidgetInstId = 7789) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7819;


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 = 7790) END FROM WidgetInst WHERE WidgetInstId = 7790) = 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 = 'Metric' AND WidgetInstId = 7791) END FROM WidgetInst WHERE WidgetInstId = 7791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7821;


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 = 7792) END FROM WidgetInst WHERE WidgetInstId = 7792) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7822;


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 = 7787) END FROM WidgetInst WHERE WidgetInstId = 7787) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7835;


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 = 7788) END FROM WidgetInst WHERE WidgetInstId = 7788) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7836;


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 = 7789) END FROM WidgetInst WHERE WidgetInstId = 7789) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7837;


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 = 7790) END FROM WidgetInst WHERE WidgetInstId = 7790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7838;


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 = 7791) END FROM WidgetInst WHERE WidgetInstId = 7791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7839;


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 = 7792) END FROM WidgetInst WHERE WidgetInstId = 7792) = 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 = 'Metric' AND WidgetInstId = 7787) END FROM WidgetInst WHERE WidgetInstId = 7787) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7841;


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 = 7788) END FROM WidgetInst WHERE WidgetInstId = 7788) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7842;


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 = 7789) END FROM WidgetInst WHERE WidgetInstId = 7789) = 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 = 7790) END FROM WidgetInst WHERE WidgetInstId = 7790) = 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 = 'Metric' AND WidgetInstId = 7791) END FROM WidgetInst WHERE WidgetInstId = 7791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7845;


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 = 7792) END FROM WidgetInst WHERE WidgetInstId = 7792) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7846;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7775) END FROM WidgetInst WHERE WidgetInstId = 7775)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7847;


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 = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7776) END FROM WidgetInst WHERE WidgetInstId = 7776)) = 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 = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7777) END FROM WidgetInst WHERE WidgetInstId = 7777)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7849;


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 = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7778) END FROM WidgetInst WHERE WidgetInstId = 7778)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7850;


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 = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7779) END FROM WidgetInst WHERE WidgetInstId = 7779)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7851;


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 = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 7780) END FROM WidgetInst WHERE WidgetInstId = 7780)) = 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 = 'U.S. Customary' AND WidgetInstId = 7787) END FROM WidgetInst WHERE WidgetInstId = 7787) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7865;


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 = 7788) END FROM WidgetInst WHERE WidgetInstId = 7788) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7866;


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 = 7789) END FROM WidgetInst WHERE WidgetInstId = 7789) = 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 = 'U.S. Customary' AND WidgetInstId = 7790) END FROM WidgetInst WHERE WidgetInstId = 7790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7868;


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 = 7791) END FROM WidgetInst WHERE WidgetInstId = 7791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7869;


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 = 7792) END FROM WidgetInst WHERE WidgetInstId = 7792) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7870;


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 = 7787) END FROM WidgetInst WHERE WidgetInstId = 7787) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7871;


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 = 7788) END FROM WidgetInst WHERE WidgetInstId = 7788) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7872;


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 = 7789) END FROM WidgetInst WHERE WidgetInstId = 7789) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7873;


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 = 7790) END FROM WidgetInst WHERE WidgetInstId = 7790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7874;


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 = 7791) END FROM WidgetInst WHERE WidgetInstId = 7791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7875;


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 = 7792) END FROM WidgetInst WHERE WidgetInstId = 7792) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7876;


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 = 7883) END FROM WidgetInst WHERE WidgetInstId = 7883) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7889;


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 = 7884) END FROM WidgetInst WHERE WidgetInstId = 7884) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7890;


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 = 7885) END FROM WidgetInst WHERE WidgetInstId = 7885) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7891;


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 = 7886) END FROM WidgetInst WHERE WidgetInstId = 7886) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7892;


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 = 7887) END FROM WidgetInst WHERE WidgetInstId = 7887) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7893;


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 = 7888) END FROM WidgetInst WHERE WidgetInstId = 7888) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7894;


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 = 7787) END FROM WidgetInst WHERE WidgetInstId = 7787) = 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 = 'U.S. Customary' AND WidgetInstId = 7788) END FROM WidgetInst WHERE WidgetInstId = 7788) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7902;


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 = 7789) END FROM WidgetInst WHERE WidgetInstId = 7789) = 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 = 'U.S. Customary' AND WidgetInstId = 7790) END FROM WidgetInst WHERE WidgetInstId = 7790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7904;


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 = 7791) END FROM WidgetInst WHERE WidgetInstId = 7791) = 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 = 'U.S. Customary' AND WidgetInstId = 7792) END FROM WidgetInst WHERE WidgetInstId = 7792) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7906;


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 = 7787) END FROM WidgetInst WHERE WidgetInstId = 7787) = 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 = 'Metric' AND WidgetInstId = 7788) END FROM WidgetInst WHERE WidgetInstId = 7788) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7908;


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 = 7789) END FROM WidgetInst WHERE WidgetInstId = 7789) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7909;


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 = 7790) END FROM WidgetInst WHERE WidgetInstId = 7790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7910;


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 = 7791) END FROM WidgetInst WHERE WidgetInstId = 7791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7911;


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 = 7792) END FROM WidgetInst WHERE WidgetInstId = 7792) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7912;


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 = 7883) END FROM WidgetInst WHERE WidgetInstId = 7883) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7913;


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 = 7884) END FROM WidgetInst WHERE WidgetInstId = 7884) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7914;


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 = 7885) END FROM WidgetInst WHERE WidgetInstId = 7885) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7915;


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 = 7886) END FROM WidgetInst WHERE WidgetInstId = 7886) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7916;


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 = 7887) END FROM WidgetInst WHERE WidgetInstId = 7887) = 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 = 'Rating Curve' AND WidgetInstId = 7888) END FROM WidgetInst WHERE WidgetInstId = 7888) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7918;


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 = 7787) END FROM WidgetInst WHERE WidgetInstId = 7787) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7925;


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 = 7788) END FROM WidgetInst WHERE WidgetInstId = 7788) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7926;


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 = 7789) END FROM WidgetInst WHERE WidgetInstId = 7789) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7927;


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 = 7790) END FROM WidgetInst WHERE WidgetInstId = 7790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7928;


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 = 7791) END FROM WidgetInst WHERE WidgetInstId = 7791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7929;


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 = 7792) END FROM WidgetInst WHERE WidgetInstId = 7792) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7930;


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 = 7787) END FROM WidgetInst WHERE WidgetInstId = 7787) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7931;


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 = 7788) END FROM WidgetInst WHERE WidgetInstId = 7788) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7932;


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 = 7789) END FROM WidgetInst WHERE WidgetInstId = 7789) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7933;


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 = 7790) END FROM WidgetInst WHERE WidgetInstId = 7790) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7934;


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 = 7791) END FROM WidgetInst WHERE WidgetInstId = 7791) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7935;


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 = 7792) END FROM WidgetInst WHERE WidgetInstId = 7792) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7936;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) = 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 IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7938;


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 = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) = 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 IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7940;


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 = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) = 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 IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7942;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7955;


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 = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7956;


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 = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) = 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 TextValues WHERE Value = 'Culvert' AND WidgetInstId = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7958;


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 = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) = 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 TextValues WHERE Value = 'Culvert' AND WidgetInstId = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 7960;


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 = 8153) END FROM WidgetInst WHERE WidgetInstId = 8153) = 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 = 'user' AND WidgetInstId = 8154) END FROM WidgetInst WHERE WidgetInstId = 8154) = 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 = 'user' AND WidgetInstId = 8155) END FROM WidgetInst WHERE WidgetInstId = 8155) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8161;


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 = 8156) END FROM WidgetInst WHERE WidgetInstId = 8156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8162;


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 = 8157) END FROM WidgetInst WHERE WidgetInstId = 8157) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8163;


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 = 8158) END FROM WidgetInst WHERE WidgetInstId = 8158) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8164;


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 = 8153) END FROM WidgetInst WHERE WidgetInstId = 8153) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8171;


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 = 8154) END FROM WidgetInst WHERE WidgetInstId = 8154) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8172;


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 = 8155) END FROM WidgetInst WHERE WidgetInstId = 8155) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8173;


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 = 8156) END FROM WidgetInst WHERE WidgetInstId = 8156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8174;


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 = 8157) END FROM WidgetInst WHERE WidgetInstId = 8157) = 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 = 'user' AND WidgetInstId = 8158) END FROM WidgetInst WHERE WidgetInstId = 8158) = 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 = 'user' AND WidgetInstId = 8153) END FROM WidgetInst WHERE WidgetInstId = 8153) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8183;


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 = 8154) END FROM WidgetInst WHERE WidgetInstId = 8154) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8184;


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 = 8155) END FROM WidgetInst WHERE WidgetInstId = 8155) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8185;


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 = 8156) END FROM WidgetInst WHERE WidgetInstId = 8156) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8186;


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 = 8157) END FROM WidgetInst WHERE WidgetInstId = 8157) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8187;


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 = 8158) END FROM WidgetInst WHERE WidgetInstId = 8158) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8188;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8195;


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 = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) = 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 = 'Weir' AND WidgetInstId = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) = 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 = 'Weir' AND WidgetInstId = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) = 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 = 'Weir' AND WidgetInstId = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) = 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 = 'Weir' AND WidgetInstId = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) = 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 = 'user' AND WidgetInstId = 8249) END FROM WidgetInst WHERE WidgetInstId = 8249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8255;


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 = 8250) END FROM WidgetInst WHERE WidgetInstId = 8250) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8256;


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 = 8251) END FROM WidgetInst WHERE WidgetInstId = 8251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8257;


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 = 8252) END FROM WidgetInst WHERE WidgetInstId = 8252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8258;


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 = 8253) END FROM WidgetInst WHERE WidgetInstId = 8253) = 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 = 'user' AND WidgetInstId = 8254) END FROM WidgetInst WHERE WidgetInstId = 8254) = 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 = 'user' AND WidgetInstId = 8249) END FROM WidgetInst WHERE WidgetInstId = 8249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8267;


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 = 8250) END FROM WidgetInst WHERE WidgetInstId = 8250) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8268;


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 = 8251) END FROM WidgetInst WHERE WidgetInstId = 8251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8269;


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 = 8252) END FROM WidgetInst WHERE WidgetInstId = 8252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8270;


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 = 8253) END FROM WidgetInst WHERE WidgetInstId = 8253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8271;


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 = 8254) END FROM WidgetInst WHERE WidgetInstId = 8254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8272;


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 = 8249) END FROM WidgetInst WHERE WidgetInstId = 8249) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8279;


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 = 8250) END FROM WidgetInst WHERE WidgetInstId = 8250) = 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 = 'user' AND WidgetInstId = 8251) END FROM WidgetInst WHERE WidgetInstId = 8251) = 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 = 'user' AND WidgetInstId = 8252) END FROM WidgetInst WHERE WidgetInstId = 8252) = 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 = 'user' AND WidgetInstId = 8253) END FROM WidgetInst WHERE WidgetInstId = 8253) = 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 = 'user' AND WidgetInstId = 8254) END FROM WidgetInst WHERE WidgetInstId = 8254) = 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 = 'Gate' AND WidgetInstId = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8291;


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 = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8292;


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 = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8293;


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 = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8294;


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 = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8295;


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 = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8296;


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 = 8369) END FROM WidgetInst WHERE WidgetInstId = 8369) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8375;


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 = 8370) END FROM WidgetInst WHERE WidgetInstId = 8370) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8376;


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 = 8371) END FROM WidgetInst WHERE WidgetInstId = 8371) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8377;


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 = 8372) END FROM WidgetInst WHERE WidgetInstId = 8372) = 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 = 'user' AND WidgetInstId = 8373) END FROM WidgetInst WHERE WidgetInstId = 8373) = 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 = 'user' AND WidgetInstId = 8374) END FROM WidgetInst WHERE WidgetInstId = 8374) = 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 = 'user' AND WidgetInstId = 8369) END FROM WidgetInst WHERE WidgetInstId = 8369) = 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 = 'user' AND WidgetInstId = 8370) END FROM WidgetInst WHERE WidgetInstId = 8370) = 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 = 'user' AND WidgetInstId = 8371) END FROM WidgetInst WHERE WidgetInstId = 8371) = 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 = 'user' AND WidgetInstId = 8372) END FROM WidgetInst WHERE WidgetInstId = 8372) = 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 = 'user' AND WidgetInstId = 8373) END FROM WidgetInst WHERE WidgetInstId = 8373) = 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 = 'user' AND WidgetInstId = 8374) END FROM WidgetInst WHERE WidgetInstId = 8374) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8392;


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 = 8369) END FROM WidgetInst WHERE WidgetInstId = 8369) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8399;


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 = 8370) END FROM WidgetInst WHERE WidgetInstId = 8370) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8400;


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 = 8371) END FROM WidgetInst WHERE WidgetInstId = 8371) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8401;


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 = 8372) END FROM WidgetInst WHERE WidgetInstId = 8372) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8402;


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 = 8373) END FROM WidgetInst WHERE WidgetInstId = 8373) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8403;


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 = 8374) END FROM WidgetInst WHERE WidgetInstId = 8374) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8404;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) = 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 = 'Pressure' AND WidgetInstId = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) = 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 = 'Pressure' AND WidgetInstId = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) = 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 = 'Pressure' AND WidgetInstId = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) = 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 = 'Pressure' AND WidgetInstId = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) = 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 = 'Pressure' AND WidgetInstId = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8489) END FROM WidgetInst WHERE WidgetInstId = 8489) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8490) END FROM WidgetInst WHERE WidgetInstId = 8490) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8491) END FROM WidgetInst WHERE WidgetInstId = 8491) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8492) END FROM WidgetInst WHERE WidgetInstId = 8492) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8493) END FROM WidgetInst WHERE WidgetInstId = 8493) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8494) END FROM WidgetInst WHERE WidgetInstId = 8494) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8489) END FROM WidgetInst WHERE WidgetInstId = 8489) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8507;


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 = 8490) END FROM WidgetInst WHERE WidgetInstId = 8490) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8508;


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 = 8491) END FROM WidgetInst WHERE WidgetInstId = 8491) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8509;


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 = 8492) END FROM WidgetInst WHERE WidgetInstId = 8492) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8510;


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 = 8493) END FROM WidgetInst WHERE WidgetInstId = 8493) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8494) END FROM WidgetInst WHERE WidgetInstId = 8494) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8489) END FROM WidgetInst WHERE WidgetInstId = 8489) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8490) END FROM WidgetInst WHERE WidgetInstId = 8490) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8491) END FROM WidgetInst WHERE WidgetInstId = 8491) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8492) END FROM WidgetInst WHERE WidgetInstId = 8492) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8493) END FROM WidgetInst WHERE WidgetInstId = 8493) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 8494) END FROM WidgetInst WHERE WidgetInstId = 8494) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8524;


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 = 8525) END FROM WidgetInst WHERE WidgetInstId = 8525) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8489) END FROM WidgetInst WHERE WidgetInstId = 8489)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8531;


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 = 8526) END FROM WidgetInst WHERE WidgetInstId = 8526) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8490) END FROM WidgetInst WHERE WidgetInstId = 8490)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8532;


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 = 8527) END FROM WidgetInst WHERE WidgetInstId = 8527) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8491) END FROM WidgetInst WHERE WidgetInstId = 8491)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8533;


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 = 8528) END FROM WidgetInst WHERE WidgetInstId = 8528) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8492) END FROM WidgetInst WHERE WidgetInstId = 8492)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8534;


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 = 8529) END FROM WidgetInst WHERE WidgetInstId = 8529) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8493) END FROM WidgetInst WHERE WidgetInstId = 8493)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8535;


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 = 8530) END FROM WidgetInst WHERE WidgetInstId = 8530) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8494) END FROM WidgetInst WHERE WidgetInstId = 8494)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8536;


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 = 8525) END FROM WidgetInst WHERE WidgetInstId = 8525) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8489) END FROM WidgetInst WHERE WidgetInstId = 8489)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8543;


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 = 8526) END FROM WidgetInst WHERE WidgetInstId = 8526) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8490) END FROM WidgetInst WHERE WidgetInstId = 8490)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8544;


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 = 8527) END FROM WidgetInst WHERE WidgetInstId = 8527) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8491) END FROM WidgetInst WHERE WidgetInstId = 8491)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8545;


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 = 8528) END FROM WidgetInst WHERE WidgetInstId = 8528) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8492) END FROM WidgetInst WHERE WidgetInstId = 8492)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8546;


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 = 8529) END FROM WidgetInst WHERE WidgetInstId = 8529) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8493) END FROM WidgetInst WHERE WidgetInstId = 8493)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8547;


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 = 8530) END FROM WidgetInst WHERE WidgetInstId = 8530) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8494) END FROM WidgetInst WHERE WidgetInstId = 8494)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8548;


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 = 8525) END FROM WidgetInst WHERE WidgetInstId = 8525) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8489) END FROM WidgetInst WHERE WidgetInstId = 8489)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8555;


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 = 8526) END FROM WidgetInst WHERE WidgetInstId = 8526) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8490) END FROM WidgetInst WHERE WidgetInstId = 8490)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8556;


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 = 8527) END FROM WidgetInst WHERE WidgetInstId = 8527) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8491) END FROM WidgetInst WHERE WidgetInstId = 8491)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8557;


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 = 8528) END FROM WidgetInst WHERE WidgetInstId = 8528) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8492) END FROM WidgetInst WHERE WidgetInstId = 8492)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8558;


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 = 8529) END FROM WidgetInst WHERE WidgetInstId = 8529) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8493) END FROM WidgetInst WHERE WidgetInstId = 8493)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8559;


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 = 8530) END FROM WidgetInst WHERE WidgetInstId = 8530) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 8494) END FROM WidgetInst WHERE WidgetInstId = 8494)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8560;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8567;


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 = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8568;


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 = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8569;


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 = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8570;


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 = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8571;


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 = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8572;


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 = 8579) END FROM WidgetInst WHERE WidgetInstId = 8579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8585;


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 = 8580) END FROM WidgetInst WHERE WidgetInstId = 8580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8586;


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 = 8581) END FROM WidgetInst WHERE WidgetInstId = 8581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8587;


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 = 8582) END FROM WidgetInst WHERE WidgetInstId = 8582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8588;


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 = 8583) END FROM WidgetInst WHERE WidgetInstId = 8583) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8589;


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 = 8584) END FROM WidgetInst WHERE WidgetInstId = 8584) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8590;


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 = 8579) END FROM WidgetInst WHERE WidgetInstId = 8579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8603;


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 = 8580) END FROM WidgetInst WHERE WidgetInstId = 8580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8604;


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 = 8581) END FROM WidgetInst WHERE WidgetInstId = 8581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8605;


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 = 8582) END FROM WidgetInst WHERE WidgetInstId = 8582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8606;


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 = 8583) END FROM WidgetInst WHERE WidgetInstId = 8583) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8607;


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 = 8584) END FROM WidgetInst WHERE WidgetInstId = 8584) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8608;


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 = 8579) END FROM WidgetInst WHERE WidgetInstId = 8579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8621;


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 = 8580) END FROM WidgetInst WHERE WidgetInstId = 8580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8622;


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 = 8581) END FROM WidgetInst WHERE WidgetInstId = 8581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8623;


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 = 8582) END FROM WidgetInst WHERE WidgetInstId = 8582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8624;


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 = 8583) END FROM WidgetInst WHERE WidgetInstId = 8583) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8625;


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 = 8584) END FROM WidgetInst WHERE WidgetInstId = 8584) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8626;


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 = 8579) END FROM WidgetInst WHERE WidgetInstId = 8579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8687;


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 = 8580) END FROM WidgetInst WHERE WidgetInstId = 8580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8688;


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 = 8581) END FROM WidgetInst WHERE WidgetInstId = 8581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8689;


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 = 8582) END FROM WidgetInst WHERE WidgetInstId = 8582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8690;


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 = 8583) END FROM WidgetInst WHERE WidgetInstId = 8583) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8691;


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 = 8584) END FROM WidgetInst WHERE WidgetInstId = 8584) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8692;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8705;


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 = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8706;


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 = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8707;


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 = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8708;


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 = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8709;


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 = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8710;


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 = 8723) END FROM WidgetInst WHERE WidgetInstId = 8723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8729;


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 = 8724) END FROM WidgetInst WHERE WidgetInstId = 8724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8730;


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 = 8725) END FROM WidgetInst WHERE WidgetInstId = 8725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8731;


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 = 8726) END FROM WidgetInst WHERE WidgetInstId = 8726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8732;


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 = 8727) END FROM WidgetInst WHERE WidgetInstId = 8727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8733;


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 = 8728) END FROM WidgetInst WHERE WidgetInstId = 8728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8734;


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 = 8723) END FROM WidgetInst WHERE WidgetInstId = 8723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8747;


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 = 8724) END FROM WidgetInst WHERE WidgetInstId = 8724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8748;


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 = 8725) END FROM WidgetInst WHERE WidgetInstId = 8725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8749;


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 = 8726) END FROM WidgetInst WHERE WidgetInstId = 8726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8750;


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 = 8727) END FROM WidgetInst WHERE WidgetInstId = 8727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8751;


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 = 8728) END FROM WidgetInst WHERE WidgetInstId = 8728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8752;


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 = 8723) END FROM WidgetInst WHERE WidgetInstId = 8723) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8765;


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 = 8724) END FROM WidgetInst WHERE WidgetInstId = 8724) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8766;


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 = 8725) END FROM WidgetInst WHERE WidgetInstId = 8725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8767;


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 = 8726) END FROM WidgetInst WHERE WidgetInstId = 8726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8768;


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 = 8727) END FROM WidgetInst WHERE WidgetInstId = 8727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8769;


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 = 8728) END FROM WidgetInst WHERE WidgetInstId = 8728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8770;


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 = 8723) END FROM WidgetInst WHERE WidgetInstId = 8723) = 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 = 'Rating curve' AND WidgetInstId = 8724) END FROM WidgetInst WHERE WidgetInstId = 8724) = 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 = 'Rating curve' AND WidgetInstId = 8725) END FROM WidgetInst WHERE WidgetInstId = 8725) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8833;


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 = 8726) END FROM WidgetInst WHERE WidgetInstId = 8726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8834;


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 = 8727) END FROM WidgetInst WHERE WidgetInstId = 8727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8835;


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 = 8728) END FROM WidgetInst WHERE WidgetInstId = 8728) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8836;


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 = 8855) END FROM WidgetInst WHERE WidgetInstId = 8855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8861;


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 = 8856) END FROM WidgetInst WHERE WidgetInstId = 8856) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8862;


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 = 8857) END FROM WidgetInst WHERE WidgetInstId = 8857) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8863;


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 = 8858) END FROM WidgetInst WHERE WidgetInstId = 8858) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8864;


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 = 8859) END FROM WidgetInst WHERE WidgetInstId = 8859) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8865;


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 = 8860) END FROM WidgetInst WHERE WidgetInstId = 8860) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8866;


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 = 8855) END FROM WidgetInst WHERE WidgetInstId = 8855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8873;


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 = 8856) END FROM WidgetInst WHERE WidgetInstId = 8856) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8874;


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 = 8857) END FROM WidgetInst WHERE WidgetInstId = 8857) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8875;


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 = 8858) END FROM WidgetInst WHERE WidgetInstId = 8858) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8876;


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 = 8859) END FROM WidgetInst WHERE WidgetInstId = 8859) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8877;


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 = 8860) END FROM WidgetInst WHERE WidgetInstId = 8860) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8878;


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 = 8855) END FROM WidgetInst WHERE WidgetInstId = 8855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8885;


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 = 8856) END FROM WidgetInst WHERE WidgetInstId = 8856) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8886;


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 = 8857) END FROM WidgetInst WHERE WidgetInstId = 8857) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8887;


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 = 8858) END FROM WidgetInst WHERE WidgetInstId = 8858) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8888;


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 = 8859) END FROM WidgetInst WHERE WidgetInstId = 8859) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8889;


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 = 8860) END FROM WidgetInst WHERE WidgetInstId = 8860) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8890;


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 = 8855) END FROM WidgetInst WHERE WidgetInstId = 8855) = 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 = 'Computed' AND WidgetInstId = 8856) END FROM WidgetInst WHERE WidgetInstId = 8856) = 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 = 'Computed' AND WidgetInstId = 8857) END FROM WidgetInst WHERE WidgetInstId = 8857) = 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 = 'Computed' AND WidgetInstId = 8858) END FROM WidgetInst WHERE WidgetInstId = 8858) = 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 = 'Computed' AND WidgetInstId = 8859) END FROM WidgetInst WHERE WidgetInstId = 8859) = 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 = 'Computed' AND WidgetInstId = 8860) END FROM WidgetInst WHERE WidgetInstId = 8860) = 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 = 'Computed' AND WidgetInstId = 8855) END FROM WidgetInst WHERE WidgetInstId = 8855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8909;


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 = 8856) END FROM WidgetInst WHERE WidgetInstId = 8856) = 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 = 'Computed' AND WidgetInstId = 8857) END FROM WidgetInst WHERE WidgetInstId = 8857) = 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 = 'Computed' AND WidgetInstId = 8858) END FROM WidgetInst WHERE WidgetInstId = 8858) = 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 = 'Computed' AND WidgetInstId = 8859) END FROM WidgetInst WHERE WidgetInstId = 8859) = 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 = 'Computed' AND WidgetInstId = 8860) END FROM WidgetInst WHERE WidgetInstId = 8860) = 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 = 'Computed' AND WidgetInstId = 8855) END FROM WidgetInst WHERE WidgetInstId = 8855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8921;


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 = 8856) END FROM WidgetInst WHERE WidgetInstId = 8856) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8922;


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 = 8857) END FROM WidgetInst WHERE WidgetInstId = 8857) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8923;


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 = 8858) END FROM WidgetInst WHERE WidgetInstId = 8858) = 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 = 'Computed' AND WidgetInstId = 8859) END FROM WidgetInst WHERE WidgetInstId = 8859) = 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 = 'Computed' AND WidgetInstId = 8860) END FROM WidgetInst WHERE WidgetInstId = 8860) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8926;


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 = 7529) END FROM WidgetInst WHERE WidgetInstId = 7529) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7136) END FROM WidgetInst WHERE WidgetInstId = 7136)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8933;


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 = 7530) END FROM WidgetInst WHERE WidgetInstId = 7530) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7136) END FROM WidgetInst WHERE WidgetInstId = 7136)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8934;


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 = 7531) END FROM WidgetInst WHERE WidgetInstId = 7531) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7136) END FROM WidgetInst WHERE WidgetInstId = 7136)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8935;


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 = 7532) END FROM WidgetInst WHERE WidgetInstId = 7532) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7136) END FROM WidgetInst WHERE WidgetInstId = 7136)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8936;


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 = 7533) END FROM WidgetInst WHERE WidgetInstId = 7533) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7136) END FROM WidgetInst WHERE WidgetInstId = 7136)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8937;


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 = 7534) END FROM WidgetInst WHERE WidgetInstId = 7534) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7136) END FROM WidgetInst WHERE WidgetInstId = 7136)) = 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 = 'File' AND WidgetInstId = 8945) END FROM WidgetInst WHERE WidgetInstId = 8945) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8951;


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 = 8946) END FROM WidgetInst WHERE WidgetInstId = 8946) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8952;


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 = 8947) END FROM WidgetInst WHERE WidgetInstId = 8947) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8953;


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 = 8948) END FROM WidgetInst WHERE WidgetInstId = 8948) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8954;


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 = 8949) END FROM WidgetInst WHERE WidgetInstId = 8949) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8955;


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 = 8950) END FROM WidgetInst WHERE WidgetInstId = 8950) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8956;


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 = 8967;


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 = 8967;


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 = 8967;


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 = 8967;


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 = 8967;


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 = 8967;


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 = 8968;


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 = 8968;


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 = 8968;


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 = 8968;


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 = 8968;


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 = 8968;


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 = 8967) END FROM WidgetInst WHERE WidgetInstId = 8967) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8969;


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 = 8968) END FROM WidgetInst WHERE WidgetInstId = 8968) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8970;


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 = 8973) END FROM WidgetInst WHERE WidgetInstId = 8973) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8975;


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 = 8974) END FROM WidgetInst WHERE WidgetInstId = 8974) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8976;


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 = 8967) END FROM WidgetInst WHERE WidgetInstId = 8967) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8979;


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 = 8968) END FROM WidgetInst WHERE WidgetInstId = 8968) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8980;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8991;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8992;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8997;


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 = 7133) END FROM WidgetInst WHERE WidgetInstId = 7133) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 8998;


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 = 8967) END FROM WidgetInst WHERE WidgetInstId = 8967) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9003;


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 = 8968) END FROM WidgetInst WHERE WidgetInstId = 8968) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9004;


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 = 9007) END FROM WidgetInst WHERE WidgetInstId = 9007) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9009;


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 = 9008) END FROM WidgetInst WHERE WidgetInstId = 9008) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9010;


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 = 9007) END FROM WidgetInst WHERE WidgetInstId = 9007) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9015;


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 = 9008) END FROM WidgetInst WHERE WidgetInstId = 9008) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9016;


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 = 8967) END FROM WidgetInst WHERE WidgetInstId = 8967) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9021;


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 = 8968) END FROM WidgetInst WHERE WidgetInstId = 8968) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9022;


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 = 9025) END FROM WidgetInst WHERE WidgetInstId = 9025) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9027;


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 = 9026) END FROM WidgetInst WHERE WidgetInstId = 9026) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9028;


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 = 9025) END FROM WidgetInst WHERE WidgetInstId = 9025) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9033;


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 = 9026) END FROM WidgetInst WHERE WidgetInstId = 9026) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9034;


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 = 9025) END FROM WidgetInst WHERE WidgetInstId = 9025) = 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 = 'Rating Curve' AND WidgetInstId = 9026) END FROM WidgetInst WHERE WidgetInstId = 9026) = 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 = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 8967) END FROM WidgetInst WHERE WidgetInstId = 8967) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9045;


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 = 8968) END FROM WidgetInst WHERE WidgetInstId = 8968) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9046;


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 = 8967) END FROM WidgetInst WHERE WidgetInstId = 8967) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 9049) END FROM WidgetInst WHERE WidgetInstId = 9049)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9055;


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 = 8968) END FROM WidgetInst WHERE WidgetInstId = 8968) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 9050) END FROM WidgetInst WHERE WidgetInstId = 9050)) = 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 = 'U.S. Customary' AND WidgetInstId = 9053) END FROM WidgetInst WHERE WidgetInstId = 9053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9061;


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 = 9054) END FROM WidgetInst WHERE WidgetInstId = 9054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9062;


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 = 9053) END FROM WidgetInst WHERE WidgetInstId = 9053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9063;


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 = 9054) END FROM WidgetInst WHERE WidgetInstId = 9054) = 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 = 'U.S. Customary' AND WidgetInstId = 9053) END FROM WidgetInst WHERE WidgetInstId = 9053) = 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 = 'U.S. Customary' AND WidgetInstId = 9054) END FROM WidgetInst WHERE WidgetInstId = 9054) = 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 = 'Metric' AND WidgetInstId = 9053) END FROM WidgetInst WHERE WidgetInstId = 9053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9071;


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 = 9054) END FROM WidgetInst WHERE WidgetInstId = 9054) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9072;


