# QueryInst

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
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 = 9505) END FROM WidgetInst WHERE WidgetInstId = 9505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9570;


Query:
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 = 9505) END FROM WidgetInst WHERE WidgetInstId = 9505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9572;


Query:
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 = 9505) END FROM WidgetInst WHERE WidgetInstId = 9505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9574;


Query:
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 = 9505) END FROM WidgetInst WHERE WidgetInstId = 9505) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9576;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 11866) END FROM WidgetInst WHERE WidgetInstId = 11866) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11929;


Query:
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 = 11866) END FROM WidgetInst WHERE WidgetInstId = 11866) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11931;


Query:
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 = 11866) END FROM WidgetInst WHERE WidgetInstId = 11866) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11933;


Query:
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 = 11866) END FROM WidgetInst WHERE WidgetInstId = 11866) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11935;


Query:
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 = 11866) END FROM WidgetInst WHERE WidgetInstId = 11866) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11937;


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 = 11950) END FROM WidgetInst WHERE WidgetInstId = 11950) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11951;


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 = 11960) END FROM WidgetInst WHERE WidgetInstId = 11960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11961;


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 = 11963) END FROM WidgetInst WHERE WidgetInstId = 11963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11964;


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 = 11968) END FROM WidgetInst WHERE WidgetInstId = 11968) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11969;


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 = 11968) END FROM WidgetInst WHERE WidgetInstId = 11968) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11971;


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 = 11960) END FROM WidgetInst WHERE WidgetInstId = 11960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11986;


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 = 12000;


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 = 12000;


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 = 12000;


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 = 12000;


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 = 12000;


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 = 12000;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12001;


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 = 12003) END FROM WidgetInst WHERE WidgetInstId = 12003) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12004;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12006;


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 = 12012;


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 = 12015;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12018;


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 = 12020) END FROM WidgetInst WHERE WidgetInstId = 12020) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12021;


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 = 12020) END FROM WidgetInst WHERE WidgetInstId = 12020) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12024;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12027;


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 = 12029) END FROM WidgetInst WHERE WidgetInstId = 12029) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12030;


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 = 12029) END FROM WidgetInst WHERE WidgetInstId = 12029) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12033;


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 = 12029) END FROM WidgetInst WHERE WidgetInstId = 12029) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12036;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12039;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12041) END FROM WidgetInst WHERE WidgetInstId = 12041)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12044;


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 = 12043) END FROM WidgetInst WHERE WidgetInstId = 12043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12047;


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 = 12043) END FROM WidgetInst WHERE WidgetInstId = 12043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12048;


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 = 12043) END FROM WidgetInst WHERE WidgetInstId = 12043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12051;


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 = 12043) END FROM WidgetInst WHERE WidgetInstId = 12043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12052;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12041) END FROM WidgetInst WHERE WidgetInstId = 12041)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12053;


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 = 12043) END FROM WidgetInst WHERE WidgetInstId = 12043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12056;


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 = 12043) END FROM WidgetInst WHERE WidgetInstId = 12043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12057;


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 = 12059) END FROM WidgetInst WHERE WidgetInstId = 12059) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12060;


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 = 12043) END FROM WidgetInst WHERE WidgetInstId = 12043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12062;


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 = 12043) END FROM WidgetInst WHERE WidgetInstId = 12043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12063;


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 = 12059) END FROM WidgetInst WHERE WidgetInstId = 12059) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12064;


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 = 12043) END FROM WidgetInst WHERE WidgetInstId = 12043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12066;


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 = 12043) END FROM WidgetInst WHERE WidgetInstId = 12043) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12067;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12068;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12071;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12104) END FROM WidgetInst WHERE WidgetInstId = 12104) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12105;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12104) END FROM WidgetInst WHERE WidgetInstId = 12104) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12107;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12104) END FROM WidgetInst WHERE WidgetInstId = 12104) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12109;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12111;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12120) END FROM WidgetInst WHERE WidgetInstId = 12120) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12121;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12120) END FROM WidgetInst WHERE WidgetInstId = 12120) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12123;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12120) END FROM WidgetInst WHERE WidgetInstId = 12120) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12125;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12127;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12140) END FROM WidgetInst WHERE WidgetInstId = 12140) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12141;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12140) END FROM WidgetInst WHERE WidgetInstId = 12140) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12143;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12140) END FROM WidgetInst WHERE WidgetInstId = 12140) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12145;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12147;


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 = 12160) END FROM WidgetInst WHERE WidgetInstId = 12160) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12161;


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 = 12160) END FROM WidgetInst WHERE WidgetInstId = 12160) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12163;


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 = 12160) END FROM WidgetInst WHERE WidgetInstId = 12160) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12165;


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 = 12166) END FROM WidgetInst WHERE WidgetInstId = 12166) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12160) END FROM WidgetInst WHERE WidgetInstId = 12160)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12167;


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 = 12166) END FROM WidgetInst WHERE WidgetInstId = 12166) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12160) END FROM WidgetInst WHERE WidgetInstId = 12160)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12169;


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 = 12166) END FROM WidgetInst WHERE WidgetInstId = 12166) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12160) END FROM WidgetInst WHERE WidgetInstId = 12160)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12171;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12173;


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 = 12175) END FROM WidgetInst WHERE WidgetInstId = 12175) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12176;


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 = 12175) END FROM WidgetInst WHERE WidgetInstId = 12175) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12179;


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 = 12175) END FROM WidgetInst WHERE WidgetInstId = 12175) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12182;


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 = 12175) END FROM WidgetInst WHERE WidgetInstId = 12175) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12193;


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 = 12000) END FROM WidgetInst WHERE WidgetInstId = 12000) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12196;


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 = 12199) END FROM WidgetInst WHERE WidgetInstId = 12199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12200;


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 = 12199) END FROM WidgetInst WHERE WidgetInstId = 12199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12203;


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 = 12199) END FROM WidgetInst WHERE WidgetInstId = 12199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12206;


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 = 12199) END FROM WidgetInst WHERE WidgetInstId = 12199) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12217;


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 = 12221) END FROM WidgetInst WHERE WidgetInstId = 12221) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12222;


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 = 12221) END FROM WidgetInst WHERE WidgetInstId = 12221) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12224;


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 = 12221) END FROM WidgetInst WHERE WidgetInstId = 12221) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12226;


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 = 12221) END FROM WidgetInst WHERE WidgetInstId = 12221) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12228;


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 = 12221) END FROM WidgetInst WHERE WidgetInstId = 12221) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12230;


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 = 12221) END FROM WidgetInst WHERE WidgetInstId = 12221) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12232;


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 = 12234;


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 = 12236) END FROM WidgetInst WHERE WidgetInstId = 12236) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12237;


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 = 12251;


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 = 12251;


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 = 12251;


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 = 12251;


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 = 12251;


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 = 12251;


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 = 12252;


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 = 12252;


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 = 12252;


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 = 12252;


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 = 12252;


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 = 12252;


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 = 12253;


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 = 12253;


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 = 12253;


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 = 12253;


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 = 12253;


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 = 12253;


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 = 12254;


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 = 12254;


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 = 12254;


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 = 12254;


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 = 12254;


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 = 12254;


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 = 12255;


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 = 12255;


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 = 12255;


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 = 12255;


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 = 12255;


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 = 12255;


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 = 12256;


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 = 12256;


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 = 12256;


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 = 12256;


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 = 12256;


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 = 12256;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12257;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12258;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12259;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12260;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12261;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12262;


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 = 12269) END FROM WidgetInst WHERE WidgetInstId = 12269) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12275;


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 = 12270) END FROM WidgetInst WHERE WidgetInstId = 12270) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12276;


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 = 12271) END FROM WidgetInst WHERE WidgetInstId = 12271) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12277;


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 = 12272) END FROM WidgetInst WHERE WidgetInstId = 12272) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12278;


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 = 12273) END FROM WidgetInst WHERE WidgetInstId = 12273) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12279;


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 = 12274) END FROM WidgetInst WHERE WidgetInstId = 12274) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12280;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12287;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12288;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12289;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12290;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12291;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12292;


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 = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12323;


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 = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12324;


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 = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12325;


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 = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12326;


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 = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12327;


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 = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12328;


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 = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12341;


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 = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12342;


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 = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12343;


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 = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12344;


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 = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12345;


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 = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12346;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12359;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12360;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12361;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12362;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12363;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12364;


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 = 12371) END FROM WidgetInst WHERE WidgetInstId = 12371) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12377;


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 = 12372) END FROM WidgetInst WHERE WidgetInstId = 12372) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12378;


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 = 12373) END FROM WidgetInst WHERE WidgetInstId = 12373) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12379;


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 = 12374) END FROM WidgetInst WHERE WidgetInstId = 12374) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12380;


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 = 12375) END FROM WidgetInst WHERE WidgetInstId = 12375) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12381;


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 = 12376) END FROM WidgetInst WHERE WidgetInstId = 12376) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12382;


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 = 12371) END FROM WidgetInst WHERE WidgetInstId = 12371) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12395;


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 = 12372) END FROM WidgetInst WHERE WidgetInstId = 12372) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12396;


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 = 12373) END FROM WidgetInst WHERE WidgetInstId = 12373) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12397;


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 = 12374) END FROM WidgetInst WHERE WidgetInstId = 12374) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12398;


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 = 12375) END FROM WidgetInst WHERE WidgetInstId = 12375) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12399;


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 = 12376) END FROM WidgetInst WHERE WidgetInstId = 12376) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12400;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12413;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12414;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12415;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12416;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12417;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12418;


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 = 12425) END FROM WidgetInst WHERE WidgetInstId = 12425) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12431;


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 = 12426) END FROM WidgetInst WHERE WidgetInstId = 12426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12432;


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 = 12427) END FROM WidgetInst WHERE WidgetInstId = 12427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12433;


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 = 12428) END FROM WidgetInst WHERE WidgetInstId = 12428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12434;


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 = 12429) END FROM WidgetInst WHERE WidgetInstId = 12429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12435;


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 = 12430) END FROM WidgetInst WHERE WidgetInstId = 12430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12436;


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 = 12425) END FROM WidgetInst WHERE WidgetInstId = 12425) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12449;


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 = 12426) END FROM WidgetInst WHERE WidgetInstId = 12426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12450;


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 = 12427) END FROM WidgetInst WHERE WidgetInstId = 12427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12451;


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 = 12428) END FROM WidgetInst WHERE WidgetInstId = 12428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12452;


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 = 12429) END FROM WidgetInst WHERE WidgetInstId = 12429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12453;


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 = 12430) END FROM WidgetInst WHERE WidgetInstId = 12430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12454;


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 = 12425) END FROM WidgetInst WHERE WidgetInstId = 12425) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12467;


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 = 12426) END FROM WidgetInst WHERE WidgetInstId = 12426) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12468;


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 = 12427) END FROM WidgetInst WHERE WidgetInstId = 12427) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12469;


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 = 12428) END FROM WidgetInst WHERE WidgetInstId = 12428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12470;


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 = 12429) END FROM WidgetInst WHERE WidgetInstId = 12429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12471;


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 = 12430) END FROM WidgetInst WHERE WidgetInstId = 12430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12472;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12485;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12486;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12487;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12488;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12489;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12490;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12497) END FROM WidgetInst WHERE WidgetInstId = 12497)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12515;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12498) END FROM WidgetInst WHERE WidgetInstId = 12498)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12516;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12499) END FROM WidgetInst WHERE WidgetInstId = 12499)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12517;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12500) END FROM WidgetInst WHERE WidgetInstId = 12500)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12518;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12501) END FROM WidgetInst WHERE WidgetInstId = 12501)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12519;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12502) END FROM WidgetInst WHERE WidgetInstId = 12502)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12520;


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 = 12509) END FROM WidgetInst WHERE WidgetInstId = 12509) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12533;


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 = 12510) END FROM WidgetInst WHERE WidgetInstId = 12510) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12534;


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 = 12511) END FROM WidgetInst WHERE WidgetInstId = 12511) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12535;


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 = 12512) END FROM WidgetInst WHERE WidgetInstId = 12512) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12536;


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 = 12513) END FROM WidgetInst WHERE WidgetInstId = 12513) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12537;


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 = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12538;


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 = 12509) END FROM WidgetInst WHERE WidgetInstId = 12509) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12539;


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 = 12510) END FROM WidgetInst WHERE WidgetInstId = 12510) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12540;


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 = 12511) END FROM WidgetInst WHERE WidgetInstId = 12511) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12541;


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 = 12512) END FROM WidgetInst WHERE WidgetInstId = 12512) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12542;


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 = 12513) END FROM WidgetInst WHERE WidgetInstId = 12513) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12543;


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 = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12544;


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 = 12509) END FROM WidgetInst WHERE WidgetInstId = 12509) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12557;


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 = 12510) END FROM WidgetInst WHERE WidgetInstId = 12510) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12558;


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 = 12511) END FROM WidgetInst WHERE WidgetInstId = 12511) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12559;


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 = 12512) END FROM WidgetInst WHERE WidgetInstId = 12512) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12560;


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 = 12513) END FROM WidgetInst WHERE WidgetInstId = 12513) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12561;


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 = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12562;


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 = 12509) END FROM WidgetInst WHERE WidgetInstId = 12509) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12563;


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 = 12510) END FROM WidgetInst WHERE WidgetInstId = 12510) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12564;


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 = 12511) END FROM WidgetInst WHERE WidgetInstId = 12511) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12565;


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 = 12512) END FROM WidgetInst WHERE WidgetInstId = 12512) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12566;


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 = 12513) END FROM WidgetInst WHERE WidgetInstId = 12513) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12567;


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 = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12568;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12497) END FROM WidgetInst WHERE WidgetInstId = 12497)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12569;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12498) END FROM WidgetInst WHERE WidgetInstId = 12498)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12570;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12499) END FROM WidgetInst WHERE WidgetInstId = 12499)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12571;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12500) END FROM WidgetInst WHERE WidgetInstId = 12500)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12572;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12501) END FROM WidgetInst WHERE WidgetInstId = 12501)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12573;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12502) END FROM WidgetInst WHERE WidgetInstId = 12502)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12574;


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 = 12509) END FROM WidgetInst WHERE WidgetInstId = 12509) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12587;


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 = 12510) END FROM WidgetInst WHERE WidgetInstId = 12510) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12588;


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 = 12511) END FROM WidgetInst WHERE WidgetInstId = 12511) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12589;


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 = 12512) END FROM WidgetInst WHERE WidgetInstId = 12512) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12590;


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 = 12513) END FROM WidgetInst WHERE WidgetInstId = 12513) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12591;


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 = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12592;


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 = 12509) END FROM WidgetInst WHERE WidgetInstId = 12509) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12593;


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 = 12510) END FROM WidgetInst WHERE WidgetInstId = 12510) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12594;


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 = 12511) END FROM WidgetInst WHERE WidgetInstId = 12511) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12595;


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 = 12512) END FROM WidgetInst WHERE WidgetInstId = 12512) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12596;


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 = 12513) END FROM WidgetInst WHERE WidgetInstId = 12513) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12597;


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 = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12598;


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 = 12605) END FROM WidgetInst WHERE WidgetInstId = 12605) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12611;


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 = 12606) END FROM WidgetInst WHERE WidgetInstId = 12606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12612;


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 = 12607) END FROM WidgetInst WHERE WidgetInstId = 12607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12613;


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 = 12608) END FROM WidgetInst WHERE WidgetInstId = 12608) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12614;


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 = 12609) END FROM WidgetInst WHERE WidgetInstId = 12609) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12615;


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 = 12610) END FROM WidgetInst WHERE WidgetInstId = 12610) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12616;


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 = 12509) END FROM WidgetInst WHERE WidgetInstId = 12509) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12623;


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 = 12510) END FROM WidgetInst WHERE WidgetInstId = 12510) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12624;


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 = 12511) END FROM WidgetInst WHERE WidgetInstId = 12511) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12625;


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 = 12512) END FROM WidgetInst WHERE WidgetInstId = 12512) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12626;


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 = 12513) END FROM WidgetInst WHERE WidgetInstId = 12513) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12627;


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 = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12628;


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 = 12509) END FROM WidgetInst WHERE WidgetInstId = 12509) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12629;


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 = 12510) END FROM WidgetInst WHERE WidgetInstId = 12510) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12630;


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 = 12511) END FROM WidgetInst WHERE WidgetInstId = 12511) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12631;


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 = 12512) END FROM WidgetInst WHERE WidgetInstId = 12512) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12632;


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 = 12513) END FROM WidgetInst WHERE WidgetInstId = 12513) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12633;


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 = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12634;


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 = 12605) END FROM WidgetInst WHERE WidgetInstId = 12605) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12635;


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 = 12606) END FROM WidgetInst WHERE WidgetInstId = 12606) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12636;


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 = 12607) END FROM WidgetInst WHERE WidgetInstId = 12607) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12637;


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 = 12608) END FROM WidgetInst WHERE WidgetInstId = 12608) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12638;


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 = 12609) END FROM WidgetInst WHERE WidgetInstId = 12609) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12639;


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 = 12610) END FROM WidgetInst WHERE WidgetInstId = 12610) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12640;


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 = 12509) END FROM WidgetInst WHERE WidgetInstId = 12509) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12647;


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 = 12510) END FROM WidgetInst WHERE WidgetInstId = 12510) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12648;


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 = 12511) END FROM WidgetInst WHERE WidgetInstId = 12511) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12649;


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 = 12512) END FROM WidgetInst WHERE WidgetInstId = 12512) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12650;


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 = 12513) END FROM WidgetInst WHERE WidgetInstId = 12513) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12651;


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 = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12652;


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 = 12509) END FROM WidgetInst WHERE WidgetInstId = 12509) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12653;


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 = 12510) END FROM WidgetInst WHERE WidgetInstId = 12510) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12654;


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 = 12511) END FROM WidgetInst WHERE WidgetInstId = 12511) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12655;


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 = 12512) END FROM WidgetInst WHERE WidgetInstId = 12512) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12656;


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 = 12513) END FROM WidgetInst WHERE WidgetInstId = 12513) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12657;


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 = 12514) END FROM WidgetInst WHERE WidgetInstId = 12514) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12658;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12659;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12660;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12661;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12662;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12663;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12664;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12677;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12678;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12679;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12680;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12681;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12682;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12875) END FROM WidgetInst WHERE WidgetInstId = 12875) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12881;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12876) END FROM WidgetInst WHERE WidgetInstId = 12876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12882;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12877) END FROM WidgetInst WHERE WidgetInstId = 12877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12883;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12878) END FROM WidgetInst WHERE WidgetInstId = 12878) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12884;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12879) END FROM WidgetInst WHERE WidgetInstId = 12879) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12885;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12880) END FROM WidgetInst WHERE WidgetInstId = 12880) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12886;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12875) END FROM WidgetInst WHERE WidgetInstId = 12875) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12893;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12876) END FROM WidgetInst WHERE WidgetInstId = 12876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12894;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12877) END FROM WidgetInst WHERE WidgetInstId = 12877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12895;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12878) END FROM WidgetInst WHERE WidgetInstId = 12878) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12896;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12879) END FROM WidgetInst WHERE WidgetInstId = 12879) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12897;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12880) END FROM WidgetInst WHERE WidgetInstId = 12880) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12898;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12875) END FROM WidgetInst WHERE WidgetInstId = 12875) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12905;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12876) END FROM WidgetInst WHERE WidgetInstId = 12876) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12906;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12877) END FROM WidgetInst WHERE WidgetInstId = 12877) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12907;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12878) END FROM WidgetInst WHERE WidgetInstId = 12878) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12908;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12879) END FROM WidgetInst WHERE WidgetInstId = 12879) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12909;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12880) END FROM WidgetInst WHERE WidgetInstId = 12880) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12910;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12917;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12918;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12919;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12920;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12921;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12922;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12971) END FROM WidgetInst WHERE WidgetInstId = 12971) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12977;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12972) END FROM WidgetInst WHERE WidgetInstId = 12972) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12978;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12973) END FROM WidgetInst WHERE WidgetInstId = 12973) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12979;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12974) END FROM WidgetInst WHERE WidgetInstId = 12974) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12980;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12975) END FROM WidgetInst WHERE WidgetInstId = 12975) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12981;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12976) END FROM WidgetInst WHERE WidgetInstId = 12976) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12982;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12971) END FROM WidgetInst WHERE WidgetInstId = 12971) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12989;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12972) END FROM WidgetInst WHERE WidgetInstId = 12972) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12990;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12973) END FROM WidgetInst WHERE WidgetInstId = 12973) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12991;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12974) END FROM WidgetInst WHERE WidgetInstId = 12974) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12992;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12975) END FROM WidgetInst WHERE WidgetInstId = 12975) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12993;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12976) END FROM WidgetInst WHERE WidgetInstId = 12976) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12994;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12971) END FROM WidgetInst WHERE WidgetInstId = 12971) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13001;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12972) END FROM WidgetInst WHERE WidgetInstId = 12972) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13002;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12973) END FROM WidgetInst WHERE WidgetInstId = 12973) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13003;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12974) END FROM WidgetInst WHERE WidgetInstId = 12974) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13004;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12975) END FROM WidgetInst WHERE WidgetInstId = 12975) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13005;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12976) END FROM WidgetInst WHERE WidgetInstId = 12976) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13006;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13013;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13014;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13015;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13016;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13017;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13018;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13091) END FROM WidgetInst WHERE WidgetInstId = 13091) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13097;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13092) END FROM WidgetInst WHERE WidgetInstId = 13092) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13098;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13093) END FROM WidgetInst WHERE WidgetInstId = 13093) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13099;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13094) END FROM WidgetInst WHERE WidgetInstId = 13094) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13100;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13095) END FROM WidgetInst WHERE WidgetInstId = 13095) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13101;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13096) END FROM WidgetInst WHERE WidgetInstId = 13096) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13102;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13091) END FROM WidgetInst WHERE WidgetInstId = 13091) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13109;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13092) END FROM WidgetInst WHERE WidgetInstId = 13092) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13110;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13093) END FROM WidgetInst WHERE WidgetInstId = 13093) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13111;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13094) END FROM WidgetInst WHERE WidgetInstId = 13094) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13112;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13095) END FROM WidgetInst WHERE WidgetInstId = 13095) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13113;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13096) END FROM WidgetInst WHERE WidgetInstId = 13096) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13114;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13091) END FROM WidgetInst WHERE WidgetInstId = 13091) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13121;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13092) END FROM WidgetInst WHERE WidgetInstId = 13092) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13122;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13093) END FROM WidgetInst WHERE WidgetInstId = 13093) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13123;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13094) END FROM WidgetInst WHERE WidgetInstId = 13094) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13124;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13095) END FROM WidgetInst WHERE WidgetInstId = 13095) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13125;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 13096) END FROM WidgetInst WHERE WidgetInstId = 13096) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13126;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13133;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13134;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13135;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13136;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13137;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13138;


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 = 13211) END FROM WidgetInst WHERE WidgetInstId = 13211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13217;


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 = 13212) END FROM WidgetInst WHERE WidgetInstId = 13212) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13218;


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 = 13213) END FROM WidgetInst WHERE WidgetInstId = 13213) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13219;


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 = 13214) END FROM WidgetInst WHERE WidgetInstId = 13214) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13220;


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 = 13215) END FROM WidgetInst WHERE WidgetInstId = 13215) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13221;


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 = 13216) END FROM WidgetInst WHERE WidgetInstId = 13216) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13222;


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 = 13211) END FROM WidgetInst WHERE WidgetInstId = 13211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13229;


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 = 13212) END FROM WidgetInst WHERE WidgetInstId = 13212) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13230;


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 = 13213) END FROM WidgetInst WHERE WidgetInstId = 13213) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13231;


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 = 13214) END FROM WidgetInst WHERE WidgetInstId = 13214) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13232;


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 = 13215) END FROM WidgetInst WHERE WidgetInstId = 13215) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13233;


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 = 13216) END FROM WidgetInst WHERE WidgetInstId = 13216) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13234;


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 = 13211) END FROM WidgetInst WHERE WidgetInstId = 13211) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13241;


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 = 13212) END FROM WidgetInst WHERE WidgetInstId = 13212) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13242;


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 = 13213) END FROM WidgetInst WHERE WidgetInstId = 13213) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13243;


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 = 13214) END FROM WidgetInst WHERE WidgetInstId = 13214) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13244;


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 = 13215) END FROM WidgetInst WHERE WidgetInstId = 13215) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13245;


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 = 13216) END FROM WidgetInst WHERE WidgetInstId = 13216) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13246;


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 = 13247) END FROM WidgetInst WHERE WidgetInstId = 13247) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13211) END FROM WidgetInst WHERE WidgetInstId = 13211)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13253;


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 = 13248) END FROM WidgetInst WHERE WidgetInstId = 13248) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13212) END FROM WidgetInst WHERE WidgetInstId = 13212)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13254;


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 = 13249) END FROM WidgetInst WHERE WidgetInstId = 13249) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13213) END FROM WidgetInst WHERE WidgetInstId = 13213)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13255;


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 = 13250) END FROM WidgetInst WHERE WidgetInstId = 13250) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13214) END FROM WidgetInst WHERE WidgetInstId = 13214)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13256;


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 = 13251) END FROM WidgetInst WHERE WidgetInstId = 13251) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13215) END FROM WidgetInst WHERE WidgetInstId = 13215)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13257;


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 = 13252) END FROM WidgetInst WHERE WidgetInstId = 13252) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13216) END FROM WidgetInst WHERE WidgetInstId = 13216)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13258;


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 = 13247) END FROM WidgetInst WHERE WidgetInstId = 13247) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13211) END FROM WidgetInst WHERE WidgetInstId = 13211)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13265;


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 = 13248) END FROM WidgetInst WHERE WidgetInstId = 13248) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13212) END FROM WidgetInst WHERE WidgetInstId = 13212)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13266;


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 = 13249) END FROM WidgetInst WHERE WidgetInstId = 13249) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13213) END FROM WidgetInst WHERE WidgetInstId = 13213)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13267;


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 = 13250) END FROM WidgetInst WHERE WidgetInstId = 13250) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13214) END FROM WidgetInst WHERE WidgetInstId = 13214)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13268;


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 = 13251) END FROM WidgetInst WHERE WidgetInstId = 13251) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13215) END FROM WidgetInst WHERE WidgetInstId = 13215)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13269;


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 = 13252) END FROM WidgetInst WHERE WidgetInstId = 13252) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13216) END FROM WidgetInst WHERE WidgetInstId = 13216)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13270;


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 = 13247) END FROM WidgetInst WHERE WidgetInstId = 13247) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13211) END FROM WidgetInst WHERE WidgetInstId = 13211)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13277;


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 = 13248) END FROM WidgetInst WHERE WidgetInstId = 13248) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13212) END FROM WidgetInst WHERE WidgetInstId = 13212)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13278;


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 = 13249) END FROM WidgetInst WHERE WidgetInstId = 13249) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13213) END FROM WidgetInst WHERE WidgetInstId = 13213)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13279;


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 = 13250) END FROM WidgetInst WHERE WidgetInstId = 13250) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13214) END FROM WidgetInst WHERE WidgetInstId = 13214)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13280;


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 = 13251) END FROM WidgetInst WHERE WidgetInstId = 13251) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13215) END FROM WidgetInst WHERE WidgetInstId = 13215)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13281;


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 = 13252) END FROM WidgetInst WHERE WidgetInstId = 13252) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 13216) END FROM WidgetInst WHERE WidgetInstId = 13216)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13282;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13289;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13290;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13291;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13292;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13293;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13294;


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 = 13301) END FROM WidgetInst WHERE WidgetInstId = 13301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13307;


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 = 13302) END FROM WidgetInst WHERE WidgetInstId = 13302) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13308;


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 = 13303) END FROM WidgetInst WHERE WidgetInstId = 13303) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13309;


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 = 13304) END FROM WidgetInst WHERE WidgetInstId = 13304) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13310;


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 = 13305) END FROM WidgetInst WHERE WidgetInstId = 13305) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13311;


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 = 13306) END FROM WidgetInst WHERE WidgetInstId = 13306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13312;


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 = 13301) END FROM WidgetInst WHERE WidgetInstId = 13301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13325;


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 = 13302) END FROM WidgetInst WHERE WidgetInstId = 13302) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13326;


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 = 13303) END FROM WidgetInst WHERE WidgetInstId = 13303) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13327;


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 = 13304) END FROM WidgetInst WHERE WidgetInstId = 13304) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13328;


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 = 13305) END FROM WidgetInst WHERE WidgetInstId = 13305) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13329;


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 = 13306) END FROM WidgetInst WHERE WidgetInstId = 13306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13330;


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 = 13301) END FROM WidgetInst WHERE WidgetInstId = 13301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13343;


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 = 13302) END FROM WidgetInst WHERE WidgetInstId = 13302) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13344;


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 = 13303) END FROM WidgetInst WHERE WidgetInstId = 13303) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13345;


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 = 13304) END FROM WidgetInst WHERE WidgetInstId = 13304) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13346;


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 = 13305) END FROM WidgetInst WHERE WidgetInstId = 13305) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13347;


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 = 13306) END FROM WidgetInst WHERE WidgetInstId = 13306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13348;


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 = 13301) END FROM WidgetInst WHERE WidgetInstId = 13301) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13409;


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 = 13302) END FROM WidgetInst WHERE WidgetInstId = 13302) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13410;


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 = 13303) END FROM WidgetInst WHERE WidgetInstId = 13303) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13411;


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 = 13304) END FROM WidgetInst WHERE WidgetInstId = 13304) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13412;


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 = 13305) END FROM WidgetInst WHERE WidgetInstId = 13305) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13413;


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 = 13306) END FROM WidgetInst WHERE WidgetInstId = 13306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13414;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13427;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13428;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13429;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13430;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13431;


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 = 12256) END FROM WidgetInst WHERE WidgetInstId = 12256) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13432;


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 = 13445) END FROM WidgetInst WHERE WidgetInstId = 13445) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13451;


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 = 13446) END FROM WidgetInst WHERE WidgetInstId = 13446) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13452;


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 = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13453;


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 = 13448) END FROM WidgetInst WHERE WidgetInstId = 13448) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13454;


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 = 13449) END FROM WidgetInst WHERE WidgetInstId = 13449) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13455;


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 = 13450) END FROM WidgetInst WHERE WidgetInstId = 13450) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13456;


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 = 13445) END FROM WidgetInst WHERE WidgetInstId = 13445) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13469;


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 = 13446) END FROM WidgetInst WHERE WidgetInstId = 13446) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13470;


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 = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13471;


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 = 13448) END FROM WidgetInst WHERE WidgetInstId = 13448) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13472;


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 = 13449) END FROM WidgetInst WHERE WidgetInstId = 13449) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13473;


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 = 13450) END FROM WidgetInst WHERE WidgetInstId = 13450) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13474;


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 = 13445) END FROM WidgetInst WHERE WidgetInstId = 13445) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13487;


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 = 13446) END FROM WidgetInst WHERE WidgetInstId = 13446) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13488;


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 = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13489;


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 = 13448) END FROM WidgetInst WHERE WidgetInstId = 13448) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13490;


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 = 13449) END FROM WidgetInst WHERE WidgetInstId = 13449) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13491;


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 = 13450) END FROM WidgetInst WHERE WidgetInstId = 13450) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13492;


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 = 13445) END FROM WidgetInst WHERE WidgetInstId = 13445) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13553;


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 = 13446) END FROM WidgetInst WHERE WidgetInstId = 13446) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13554;


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 = 13447) END FROM WidgetInst WHERE WidgetInstId = 13447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13555;


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 = 13448) END FROM WidgetInst WHERE WidgetInstId = 13448) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13556;


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 = 13449) END FROM WidgetInst WHERE WidgetInstId = 13449) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13557;


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 = 13450) END FROM WidgetInst WHERE WidgetInstId = 13450) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13558;


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 = 13577) END FROM WidgetInst WHERE WidgetInstId = 13577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13583;


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 = 13578) END FROM WidgetInst WHERE WidgetInstId = 13578) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13584;


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 = 13579) END FROM WidgetInst WHERE WidgetInstId = 13579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13585;


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 = 13580) END FROM WidgetInst WHERE WidgetInstId = 13580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13586;


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 = 13581) END FROM WidgetInst WHERE WidgetInstId = 13581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13587;


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 = 13582) END FROM WidgetInst WHERE WidgetInstId = 13582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13588;


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 = 13577) END FROM WidgetInst WHERE WidgetInstId = 13577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13595;


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 = 13578) END FROM WidgetInst WHERE WidgetInstId = 13578) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13596;


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 = 13579) END FROM WidgetInst WHERE WidgetInstId = 13579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13597;


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 = 13580) END FROM WidgetInst WHERE WidgetInstId = 13580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13598;


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 = 13581) END FROM WidgetInst WHERE WidgetInstId = 13581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13599;


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 = 13582) END FROM WidgetInst WHERE WidgetInstId = 13582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13600;


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 = 13577) END FROM WidgetInst WHERE WidgetInstId = 13577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13607;


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 = 13578) END FROM WidgetInst WHERE WidgetInstId = 13578) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13608;


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 = 13579) END FROM WidgetInst WHERE WidgetInstId = 13579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13609;


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 = 13580) END FROM WidgetInst WHERE WidgetInstId = 13580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13610;


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 = 13581) END FROM WidgetInst WHERE WidgetInstId = 13581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13611;


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 = 13582) END FROM WidgetInst WHERE WidgetInstId = 13582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13612;


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 = 13577) END FROM WidgetInst WHERE WidgetInstId = 13577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13619;


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 = 13578) END FROM WidgetInst WHERE WidgetInstId = 13578) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13620;


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 = 13579) END FROM WidgetInst WHERE WidgetInstId = 13579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13621;


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 = 13580) END FROM WidgetInst WHERE WidgetInstId = 13580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13622;


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 = 13581) END FROM WidgetInst WHERE WidgetInstId = 13581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13623;


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 = 13582) END FROM WidgetInst WHERE WidgetInstId = 13582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13624;


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 = 13577) END FROM WidgetInst WHERE WidgetInstId = 13577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13631;


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 = 13578) END FROM WidgetInst WHERE WidgetInstId = 13578) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13632;


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 = 13579) END FROM WidgetInst WHERE WidgetInstId = 13579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13633;


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 = 13580) END FROM WidgetInst WHERE WidgetInstId = 13580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13634;


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 = 13581) END FROM WidgetInst WHERE WidgetInstId = 13581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13635;


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 = 13582) END FROM WidgetInst WHERE WidgetInstId = 13582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13636;


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 = 13577) END FROM WidgetInst WHERE WidgetInstId = 13577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13643;


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 = 13578) END FROM WidgetInst WHERE WidgetInstId = 13578) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13644;


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 = 13579) END FROM WidgetInst WHERE WidgetInstId = 13579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13645;


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 = 13580) END FROM WidgetInst WHERE WidgetInstId = 13580) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13646;


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 = 13581) END FROM WidgetInst WHERE WidgetInstId = 13581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13647;


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 = 13582) END FROM WidgetInst WHERE WidgetInstId = 13582) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13648;


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 = 12251) END FROM WidgetInst WHERE WidgetInstId = 12251) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11858) END FROM WidgetInst WHERE WidgetInstId = 11858)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13655;


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 = 12252) END FROM WidgetInst WHERE WidgetInstId = 12252) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11858) END FROM WidgetInst WHERE WidgetInstId = 11858)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13656;


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 = 12253) END FROM WidgetInst WHERE WidgetInstId = 12253) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11858) END FROM WidgetInst WHERE WidgetInstId = 11858)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13657;


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 = 12254) END FROM WidgetInst WHERE WidgetInstId = 12254) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11858) END FROM WidgetInst WHERE WidgetInstId = 11858)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13658;


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 = 12255) END FROM WidgetInst WHERE WidgetInstId = 12255) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11858) END FROM WidgetInst WHERE WidgetInstId = 11858)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13659;


