# QueryInst

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 = 9170) END FROM WidgetInst WHERE WidgetInstId = 9170) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 9171) END FROM WidgetInst WHERE WidgetInstId = 9171) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 9172) END FROM WidgetInst WHERE WidgetInstId = 9172) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9179;


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


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 = 9174) END FROM WidgetInst WHERE WidgetInstId = 9174) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 9175) END FROM WidgetInst WHERE WidgetInstId = 9175) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 9169) END FROM WidgetInst WHERE WidgetInstId = 9169) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 9170) END FROM WidgetInst WHERE WidgetInstId = 9170) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9191;


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


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


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


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


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


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


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


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


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


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


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 = 9174) END FROM WidgetInst WHERE WidgetInstId = 9174) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 9175) END FROM WidgetInst WHERE WidgetInstId = 9175) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9210;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9211) END FROM WidgetInst WHERE WidgetInstId = 9211) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9169) END FROM WidgetInst WHERE WidgetInstId = 9169)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9218;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9212) END FROM WidgetInst WHERE WidgetInstId = 9212) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9170) END FROM WidgetInst WHERE WidgetInstId = 9170)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9219;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9213) END FROM WidgetInst WHERE WidgetInstId = 9213) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9171) END FROM WidgetInst WHERE WidgetInstId = 9171)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9220;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9214) END FROM WidgetInst WHERE WidgetInstId = 9214) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9172) END FROM WidgetInst WHERE WidgetInstId = 9172)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9221;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9215) END FROM WidgetInst WHERE WidgetInstId = 9215) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9173) END FROM WidgetInst WHERE WidgetInstId = 9173)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9222;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9216) END FROM WidgetInst WHERE WidgetInstId = 9216) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9174) END FROM WidgetInst WHERE WidgetInstId = 9174)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9223;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9217) END FROM WidgetInst WHERE WidgetInstId = 9217) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9175) END FROM WidgetInst WHERE WidgetInstId = 9175)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9224;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9211) END FROM WidgetInst WHERE WidgetInstId = 9211) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9169) END FROM WidgetInst WHERE WidgetInstId = 9169)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9232;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9212) END FROM WidgetInst WHERE WidgetInstId = 9212) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9170) END FROM WidgetInst WHERE WidgetInstId = 9170)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9233;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9213) END FROM WidgetInst WHERE WidgetInstId = 9213) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9171) END FROM WidgetInst WHERE WidgetInstId = 9171)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9234;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9214) END FROM WidgetInst WHERE WidgetInstId = 9214) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9172) END FROM WidgetInst WHERE WidgetInstId = 9172)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9235;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9215) END FROM WidgetInst WHERE WidgetInstId = 9215) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9173) END FROM WidgetInst WHERE WidgetInstId = 9173)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9236;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9216) END FROM WidgetInst WHERE WidgetInstId = 9216) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9174) END FROM WidgetInst WHERE WidgetInstId = 9174)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9237;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9217) END FROM WidgetInst WHERE WidgetInstId = 9217) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9175) END FROM WidgetInst WHERE WidgetInstId = 9175)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9238;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9211) END FROM WidgetInst WHERE WidgetInstId = 9211) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9169) END FROM WidgetInst WHERE WidgetInstId = 9169)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9246;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9212) END FROM WidgetInst WHERE WidgetInstId = 9212) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9170) END FROM WidgetInst WHERE WidgetInstId = 9170)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9247;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9213) END FROM WidgetInst WHERE WidgetInstId = 9213) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9171) END FROM WidgetInst WHERE WidgetInstId = 9171)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9248;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9214) END FROM WidgetInst WHERE WidgetInstId = 9214) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9172) END FROM WidgetInst WHERE WidgetInstId = 9172)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9249;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9215) END FROM WidgetInst WHERE WidgetInstId = 9215) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9173) END FROM WidgetInst WHERE WidgetInstId = 9173)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9250;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9216) END FROM WidgetInst WHERE WidgetInstId = 9216) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9174) END FROM WidgetInst WHERE WidgetInstId = 9174)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9251;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9217) END FROM WidgetInst WHERE WidgetInstId = 9217) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9175) END FROM WidgetInst WHERE WidgetInstId = 9175)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9252;


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


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 = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) = 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 = 'Internal sink' AND WidgetInstId = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) = 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 TextValues WHERE Value = 'Internal sink' AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9263;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 9276) END FROM WidgetInst WHERE WidgetInstId = 9276) = 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 = 'Weir' AND WidgetInstId = 9277) END FROM WidgetInst WHERE WidgetInstId = 9277) = 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 = 9278) END FROM WidgetInst WHERE WidgetInstId = 9278) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9327;


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


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


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


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 = 9275) END FROM WidgetInst WHERE WidgetInstId = 9275) = 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 = 9276) END FROM WidgetInst WHERE WidgetInstId = 9276) = 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 = 'Rating curve' AND WidgetInstId = 9277) END FROM WidgetInst WHERE WidgetInstId = 9277) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9403;


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


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


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


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


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


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 = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) = 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 = 'Link' AND WidgetInstId = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) = 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 = 'Link' AND WidgetInstId = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9425;


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


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 = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) = 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 = 'Constant' AND WidgetInstId = 9442) END FROM WidgetInst WHERE WidgetInstId = 9442) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9449;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 9442) END FROM WidgetInst WHERE WidgetInstId = 9442) = 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 = 'Rating curve' AND WidgetInstId = 9443) END FROM WidgetInst WHERE WidgetInstId = 9443) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9569;


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 = 9444) END FROM WidgetInst WHERE WidgetInstId = 9444) = 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 = 'Rating curve' AND WidgetInstId = 9445) END FROM WidgetInst WHERE WidgetInstId = 9445) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9571;


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 = 9446) END FROM WidgetInst WHERE WidgetInstId = 9446) = 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 = 'Rating curve' AND WidgetInstId = 9447) END FROM WidgetInst WHERE WidgetInstId = 9447) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9573;


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 = 9448) END FROM WidgetInst WHERE WidgetInstId = 9448) = 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 = 'Specified' AND WidgetInstId = 9596) END FROM WidgetInst WHERE WidgetInstId = 9596) = 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 = 'Specified' AND WidgetInstId = 9597) END FROM WidgetInst WHERE WidgetInstId = 9597) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9604;


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


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


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


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 = 9601) END FROM WidgetInst WHERE WidgetInstId = 9601) = 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 = 'Specified' AND WidgetInstId = 9602) END FROM WidgetInst WHERE WidgetInstId = 9602) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9609;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 9596) END FROM WidgetInst WHERE WidgetInstId = 9596) = 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 = 'Computed' AND WidgetInstId = 9597) END FROM WidgetInst WHERE WidgetInstId = 9597) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9646;


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 9602) END FROM WidgetInst WHERE WidgetInstId = 9602) = 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 = 'Computed' AND WidgetInstId = 9596) END FROM WidgetInst WHERE WidgetInstId = 9596) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9659;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 9597) END FROM WidgetInst WHERE WidgetInstId = 9597) = 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 = 'Computed' AND WidgetInstId = 9598) END FROM WidgetInst WHERE WidgetInstId = 9598) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9661;


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 9600) END FROM WidgetInst WHERE WidgetInstId = 9600) = 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 = 'Computed' AND WidgetInstId = 9601) END FROM WidgetInst WHERE WidgetInstId = 9601) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9664;


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 9598) END FROM WidgetInst WHERE WidgetInstId = 9598) = 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 = 'Computed' AND WidgetInstId = 9599) END FROM WidgetInst WHERE WidgetInstId = 9599) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9676;


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 8049) END FROM WidgetInst WHERE WidgetInstId = 8049) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9687;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 8050) END FROM WidgetInst WHERE WidgetInstId = 8050) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9688;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 8051) END FROM WidgetInst WHERE WidgetInstId = 8051) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9689;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 8052) END FROM WidgetInst WHERE WidgetInstId = 8052) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9690;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 8053) END FROM WidgetInst WHERE WidgetInstId = 8053) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654)) = 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 IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 8054) END FROM WidgetInst WHERE WidgetInstId = 8054) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9692;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 8055) END FROM WidgetInst WHERE WidgetInstId = 8055) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9693;


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


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


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 = 9703) END FROM WidgetInst WHERE WidgetInstId = 9703) = 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 = 'File' AND WidgetInstId = 9704) END FROM WidgetInst WHERE WidgetInstId = 9704) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9711;


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


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


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


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 9726;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 9726;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 9726;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 9726;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 9726;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 9726;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 9727;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 9727;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 9727;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 9727;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 9727;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 9727;


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value != '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 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 != '(none selected)' AND WidgetInstId = 7651) END FROM WidgetInst WHERE WidgetInstId = 7651) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9751;


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


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


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 = 9726) END FROM WidgetInst WHERE WidgetInstId = 9726) = 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 IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 9727) END FROM WidgetInst WHERE WidgetInstId = 9727) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9763;


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


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


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


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


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


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 = 9784) END FROM WidgetInst WHERE WidgetInstId = 9784) = 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 TextValues WHERE Value = 'Constant' AND WidgetInstId = 9785) END FROM WidgetInst WHERE WidgetInstId = 9785) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9787;


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9726) END FROM WidgetInst WHERE WidgetInstId = 9726) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 9808) END FROM WidgetInst WHERE WidgetInstId = 9808)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9814;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9727) END FROM WidgetInst WHERE WidgetInstId = 9727) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 9809) END FROM WidgetInst WHERE WidgetInstId = 9809)) = 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 = 'U.S. Customary' AND WidgetInstId = 9812) END FROM WidgetInst WHERE WidgetInstId = 9812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9820;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 9813) END FROM WidgetInst WHERE WidgetInstId = 9813) = 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 = 'Metric' AND WidgetInstId = 9812) END FROM WidgetInst WHERE WidgetInstId = 9812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9822;


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9726) END FROM WidgetInst WHERE WidgetInstId = 9726) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 9808) END FROM WidgetInst WHERE WidgetInstId = 9808)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9832;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9727) END FROM WidgetInst WHERE WidgetInstId = 9727) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 9809) END FROM WidgetInst WHERE WidgetInstId = 9809)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9833;


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 9813) END FROM WidgetInst WHERE WidgetInstId = 9813) = 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 = 'Metric' AND WidgetInstId = 9812) END FROM WidgetInst WHERE WidgetInstId = 9812) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9840;


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 9813) END FROM WidgetInst WHERE WidgetInstId = 9813) = 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 IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 9726) END FROM WidgetInst WHERE WidgetInstId = 9726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9862;


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


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 = 9727) END FROM WidgetInst WHERE WidgetInstId = 9727) = 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 = 'user' AND WidgetInstId = 9934) END FROM WidgetInst WHERE WidgetInstId = 9934) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 9936;


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 9726) END FROM WidgetInst WHERE WidgetInstId = 9726) = 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 = 'Gate' AND WidgetInstId = 9727) END FROM WidgetInst WHERE WidgetInstId = 9727) = 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 = 'user' AND WidgetInstId = 10006) END FROM WidgetInst WHERE WidgetInstId = 10006) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10008;


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 10006) END FROM WidgetInst WHERE WidgetInstId = 10006) = 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 = 'user' AND WidgetInstId = 10007) END FROM WidgetInst WHERE WidgetInstId = 10007) = 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 = 'Pressure' AND WidgetInstId = 9726) END FROM WidgetInst WHERE WidgetInstId = 9726) = 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 = 'Pressure' AND WidgetInstId = 9727) END FROM WidgetInst WHERE WidgetInstId = 9727) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 10046) END FROM WidgetInst WHERE WidgetInstId = 10046) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10048;


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


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 = 10046) END FROM WidgetInst WHERE WidgetInstId = 10046) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 10047) END FROM WidgetInst WHERE WidgetInstId = 10047) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 10046) END FROM WidgetInst WHERE WidgetInstId = 10046) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 10047) END FROM WidgetInst WHERE WidgetInstId = 10047) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10057;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10058) END FROM WidgetInst WHERE WidgetInstId = 10058) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 10046) END FROM WidgetInst WHERE WidgetInstId = 10046)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10060;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10059) END FROM WidgetInst WHERE WidgetInstId = 10059) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 10047) END FROM WidgetInst WHERE WidgetInstId = 10047)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10061;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10058) END FROM WidgetInst WHERE WidgetInstId = 10058) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 10046) END FROM WidgetInst WHERE WidgetInstId = 10046)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10064;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10059) END FROM WidgetInst WHERE WidgetInstId = 10059) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 10047) END FROM WidgetInst WHERE WidgetInstId = 10047)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10065;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10058) END FROM WidgetInst WHERE WidgetInstId = 10058) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 10046) END FROM WidgetInst WHERE WidgetInstId = 10046)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10068;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10059) END FROM WidgetInst WHERE WidgetInstId = 10059) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 10047) END FROM WidgetInst WHERE WidgetInstId = 10047)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10069;


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 = 9726) END FROM WidgetInst WHERE WidgetInstId = 9726) = 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 = 'Internal sink' AND WidgetInstId = 9727) END FROM WidgetInst WHERE WidgetInstId = 9727) = 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 = 10076) END FROM WidgetInst WHERE WidgetInstId = 10076) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10078;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 10168) END FROM WidgetInst WHERE WidgetInstId = 10168) = 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 = 'Computed' AND WidgetInstId = 10169) END FROM WidgetInst WHERE WidgetInstId = 10169) = 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 = 'Computed' AND WidgetInstId = 10168) END FROM WidgetInst WHERE WidgetInstId = 10168) = 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 = 'Computed' AND WidgetInstId = 10169) END FROM WidgetInst WHERE WidgetInstId = 10169) = 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 = 'Computed' AND WidgetInstId = 10168) END FROM WidgetInst WHERE WidgetInstId = 10168) = 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 = 'Computed' AND WidgetInstId = 10169) END FROM WidgetInst WHERE WidgetInstId = 10169) = 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 = 'Computed' AND WidgetInstId = 10168) END FROM WidgetInst WHERE WidgetInstId = 10168) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10186;


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9726) END FROM WidgetInst WHERE WidgetInstId = 9726) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10194;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 9727) END FROM WidgetInst WHERE WidgetInstId = 9727) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 7654) END FROM WidgetInst WHERE WidgetInstId = 7654)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10195;


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 = 10198) END FROM WidgetInst WHERE WidgetInstId = 10198) = 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 = 'File' AND WidgetInstId = 10199) END FROM WidgetInst WHERE WidgetInstId = 10199) = 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 = 'Constant' AND WidgetInstId = 10253) END FROM WidgetInst WHERE WidgetInstId = 10253) = 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 = 'Depth Varied' AND WidgetInstId = 10253) END FROM WidgetInst WHERE WidgetInstId = 10253) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10256;


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 = 10264) END FROM WidgetInst WHERE WidgetInstId = 10264) = 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 = 'Constant' AND WidgetInstId = 10265) END FROM WidgetInst WHERE WidgetInstId = 10265) = 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 = 'Constant' AND WidgetInstId = 10266) END FROM WidgetInst WHERE WidgetInstId = 10266) = 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 = 'Constant' AND WidgetInstId = 10267) END FROM WidgetInst WHERE WidgetInstId = 10267) = 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 = 'Constant' AND WidgetInstId = 10268) END FROM WidgetInst WHERE WidgetInstId = 10268) = 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 = 'Constant' AND WidgetInstId = 10269) END FROM WidgetInst WHERE WidgetInstId = 10269) = 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 = 'Depth Varied' AND WidgetInstId = 10264) END FROM WidgetInst WHERE WidgetInstId = 10264) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10282;


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Depth Varied' AND WidgetInstId = 10268) END FROM WidgetInst WHERE WidgetInstId = 10268) = 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 = 'Depth Varied' AND WidgetInstId = 10269) END FROM WidgetInst WHERE WidgetInstId = 10269) = 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 = 'Constant' AND WidgetInstId = 10295) END FROM WidgetInst WHERE WidgetInstId = 10295) = 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 = 'Depth Varied' AND WidgetInstId = 10295) END FROM WidgetInst WHERE WidgetInstId = 10295) = 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 = 'Constant' AND WidgetInstId = 10306) END FROM WidgetInst WHERE WidgetInstId = 10306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10312;


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


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


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


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 = 10310) END FROM WidgetInst WHERE WidgetInstId = 10310) = 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 = 'Constant' AND WidgetInstId = 10311) END FROM WidgetInst WHERE WidgetInstId = 10311) = 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 = 'Depth Varied' AND WidgetInstId = 10306) END FROM WidgetInst WHERE WidgetInstId = 10306) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10324;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10482;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10482;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10482;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10482;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10482;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10482;


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10482) END FROM WidgetInst WHERE WidgetInstId = 10482) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 10523) END FROM WidgetInst WHERE WidgetInstId = 10523)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10526;


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 10525) END FROM WidgetInst WHERE WidgetInstId = 10525) = 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 = 'Metric' AND WidgetInstId = 10525) END FROM WidgetInst WHERE WidgetInstId = 10525) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10534;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10482) END FROM WidgetInst WHERE WidgetInstId = 10482) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 10523) END FROM WidgetInst WHERE WidgetInstId = 10523)) = 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 = 'U.S. Customary' AND WidgetInstId = 10525) END FROM WidgetInst WHERE WidgetInstId = 10525) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10538;


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 10525) END FROM WidgetInst WHERE WidgetInstId = 10525) = 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 = 'Metric' AND WidgetInstId = 10525) END FROM WidgetInst WHERE WidgetInstId = 10525) = 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 = 'Rating Curve' AND WidgetInstId = 10541) END FROM WidgetInst WHERE WidgetInstId = 10541) = 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 = 'U.S. Customary' AND WidgetInstId = 10525) END FROM WidgetInst WHERE WidgetInstId = 10525) = 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 = 'Metric' AND WidgetInstId = 10525) END FROM WidgetInst WHERE WidgetInstId = 10525) = 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 IN ('Inlet-Q (subcritical inflow)','Inlet-SC (supercritical inflow)') AND WidgetInstId = 10482) END FROM WidgetInst WHERE WidgetInstId = 10482) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10550;


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


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


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


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


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


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


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


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


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


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


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


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


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 = 10482) END FROM WidgetInst WHERE WidgetInstId = 10482) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 10642) END FROM WidgetInst WHERE WidgetInstId = 10642) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 10642) END FROM WidgetInst WHERE WidgetInstId = 10642) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 10642) END FROM WidgetInst WHERE WidgetInstId = 10642) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10647;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10648) END FROM WidgetInst WHERE WidgetInstId = 10648) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 10642) END FROM WidgetInst WHERE WidgetInstId = 10642)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10649;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10648) END FROM WidgetInst WHERE WidgetInstId = 10648) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 10642) END FROM WidgetInst WHERE WidgetInstId = 10642)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10651;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10648) END FROM WidgetInst WHERE WidgetInstId = 10648) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 10642) END FROM WidgetInst WHERE WidgetInstId = 10642)) = 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 = 'Internal sink' AND WidgetInstId = 10482) END FROM WidgetInst WHERE WidgetInstId = 10482) = 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 = 'Constant' AND WidgetInstId = 10657) END FROM WidgetInst WHERE WidgetInstId = 10657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10658;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10735;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10735;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10735;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10735;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10735;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10735;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10736;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10736;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10736;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10736;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10736;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10736;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10737;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10737;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10737;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10737;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10737;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10737;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10738;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10738;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10738;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10738;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10738;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10738;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10739;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10739;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10739;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10739;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10739;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10739;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10740;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10740;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10740;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10740;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10740;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10740;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10741;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10741;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10741;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10741;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 10741;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 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 = 'Wall (No-slip boundary)' AND WidgetInstId = 10735) END FROM WidgetInst WHERE WidgetInstId = 10735) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10742;


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


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


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


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


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


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 = 10741) END FROM WidgetInst WHERE WidgetInstId = 10741) = 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 = 'On' AND WidgetInstId = 10756) END FROM WidgetInst WHERE WidgetInstId = 10756) = 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 = 'On' AND WidgetInstId = 10757) END FROM WidgetInst WHERE WidgetInstId = 10757) = 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 = 'On' AND WidgetInstId = 10758) END FROM WidgetInst WHERE WidgetInstId = 10758) = 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 = 'On' AND WidgetInstId = 10759) END FROM WidgetInst WHERE WidgetInstId = 10759) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10766;


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


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


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


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 = 10735) END FROM WidgetInst WHERE WidgetInstId = 10735) = 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 TextValues WHERE Value = 'Culvert HY-8' AND WidgetInstId = 10736) END FROM WidgetInst WHERE WidgetInstId = 10736) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10778;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 10735) END FROM WidgetInst WHERE WidgetInstId = 10735) = 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 TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 10736) END FROM WidgetInst WHERE WidgetInstId = 10736) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10862;


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


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


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


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


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


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 = 10875) END FROM WidgetInst WHERE WidgetInstId = 10875) = 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 TextValues WHERE Value = 'Constant' AND WidgetInstId = 10876) END FROM WidgetInst WHERE WidgetInstId = 10876) = 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 TextValues WHERE Value = 'Constant' AND WidgetInstId = 10877) END FROM WidgetInst WHERE WidgetInstId = 10877) = 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 TextValues WHERE Value = 'Constant' AND WidgetInstId = 10878) END FROM WidgetInst WHERE WidgetInstId = 10878) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10885;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 10739) END FROM WidgetInst WHERE WidgetInstId = 10739) = 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 = 'Exit-H (subcritical outflow)' AND WidgetInstId = 10740) END FROM WidgetInst WHERE WidgetInstId = 10740) = 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 = 'Exit-H (subcritical outflow)' AND WidgetInstId = 10741) END FROM WidgetInst WHERE WidgetInstId = 10741) = 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 = 'Constant' AND WidgetInstId = 10938) END FROM WidgetInst WHERE WidgetInstId = 10938) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10945;


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 = 10939) END FROM WidgetInst WHERE WidgetInstId = 10939) = 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 = 10940) END FROM WidgetInst WHERE WidgetInstId = 10940) = 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 = 10941) END FROM WidgetInst WHERE WidgetInstId = 10941) = 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 = 10942) END FROM WidgetInst WHERE WidgetInstId = 10942) = 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 = 10943) END FROM WidgetInst WHERE WidgetInstId = 10943) = 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 = 10944) END FROM WidgetInst WHERE WidgetInstId = 10944) = 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 = 10938) END FROM WidgetInst WHERE WidgetInstId = 10938) = 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 = 10939) END FROM WidgetInst WHERE WidgetInstId = 10939) = 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 = 10940) END FROM WidgetInst WHERE WidgetInstId = 10940) = 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 = 10941) END FROM WidgetInst WHERE WidgetInstId = 10941) = 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 = 'Time Series' AND WidgetInstId = 10942) END FROM WidgetInst WHERE WidgetInstId = 10942) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10970;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10735) END FROM WidgetInst WHERE WidgetInstId = 10735) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11022) END FROM WidgetInst WHERE WidgetInstId = 11022)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11043;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10736) END FROM WidgetInst WHERE WidgetInstId = 10736) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11023) END FROM WidgetInst WHERE WidgetInstId = 11023)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11044;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10737) END FROM WidgetInst WHERE WidgetInstId = 10737) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11024) END FROM WidgetInst WHERE WidgetInstId = 11024)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11045;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10738) END FROM WidgetInst WHERE WidgetInstId = 10738) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11025) END FROM WidgetInst WHERE WidgetInstId = 11025)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11046;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10739) END FROM WidgetInst WHERE WidgetInstId = 10739) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11026) END FROM WidgetInst WHERE WidgetInstId = 11026)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11047;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10740) END FROM WidgetInst WHERE WidgetInstId = 10740) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11027) END FROM WidgetInst WHERE WidgetInstId = 11027)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11048;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10741) END FROM WidgetInst WHERE WidgetInstId = 10741) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 11028) END FROM WidgetInst WHERE WidgetInstId = 11028)) = 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 = 'U.S. Customary' AND WidgetInstId = 11036) END FROM WidgetInst WHERE WidgetInstId = 11036) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11064;


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 11038) END FROM WidgetInst WHERE WidgetInstId = 11038) = 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 = 'U.S. Customary' AND WidgetInstId = 11039) END FROM WidgetInst WHERE WidgetInstId = 11039) = 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 = 'U.S. Customary' AND WidgetInstId = 11040) END FROM WidgetInst WHERE WidgetInstId = 11040) = 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 = 'U.S. Customary' AND WidgetInstId = 11041) END FROM WidgetInst WHERE WidgetInstId = 11041) = 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 = 'U.S. Customary' AND WidgetInstId = 11042) END FROM WidgetInst WHERE WidgetInstId = 11042) = 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 = 'Metric' AND WidgetInstId = 11036) END FROM WidgetInst WHERE WidgetInstId = 11036) = 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 = 'Metric' AND WidgetInstId = 11037) END FROM WidgetInst WHERE WidgetInstId = 11037) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11072;


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 11036) END FROM WidgetInst WHERE WidgetInstId = 11036) = 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 = 'U.S. Customary' AND WidgetInstId = 11037) END FROM WidgetInst WHERE WidgetInstId = 11037) = 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 = 'U.S. Customary' AND WidgetInstId = 11038) END FROM WidgetInst WHERE WidgetInstId = 11038) = 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 = 'U.S. Customary' AND WidgetInstId = 11039) END FROM WidgetInst WHERE WidgetInstId = 11039) = 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 = 'U.S. Customary' AND WidgetInstId = 11040) END FROM WidgetInst WHERE WidgetInstId = 11040) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11096;


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10735) END FROM WidgetInst WHERE WidgetInstId = 10735) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11022) END FROM WidgetInst WHERE WidgetInstId = 11022)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11106;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10736) END FROM WidgetInst WHERE WidgetInstId = 10736) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11023) END FROM WidgetInst WHERE WidgetInstId = 11023)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11107;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10737) END FROM WidgetInst WHERE WidgetInstId = 10737) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11024) END FROM WidgetInst WHERE WidgetInstId = 11024)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11108;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10738) END FROM WidgetInst WHERE WidgetInstId = 10738) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11025) END FROM WidgetInst WHERE WidgetInstId = 11025)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11109;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10739) END FROM WidgetInst WHERE WidgetInstId = 10739) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11026) END FROM WidgetInst WHERE WidgetInstId = 11026)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11110;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10740) END FROM WidgetInst WHERE WidgetInstId = 10740) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11027) END FROM WidgetInst WHERE WidgetInstId = 11027)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11111;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10741) END FROM WidgetInst WHERE WidgetInstId = 10741) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11028) END FROM WidgetInst WHERE WidgetInstId = 11028)) = 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 = 'U.S. Customary' AND WidgetInstId = 11036) END FROM WidgetInst WHERE WidgetInstId = 11036) = 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 = 'U.S. Customary' AND WidgetInstId = 11037) END FROM WidgetInst WHERE WidgetInstId = 11037) = 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 = 'U.S. Customary' AND WidgetInstId = 11038) END FROM WidgetInst WHERE WidgetInstId = 11038) = 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 = 'U.S. Customary' AND WidgetInstId = 11039) END FROM WidgetInst WHERE WidgetInstId = 11039) = 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 = 'U.S. Customary' AND WidgetInstId = 11040) END FROM WidgetInst WHERE WidgetInstId = 11040) = 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 = 'U.S. Customary' AND WidgetInstId = 11041) END FROM WidgetInst WHERE WidgetInstId = 11041) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11132;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 11036) END FROM WidgetInst WHERE WidgetInstId = 11036) = 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 = 'U.S. Customary' AND WidgetInstId = 11037) END FROM WidgetInst WHERE WidgetInstId = 11037) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11198;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 10737) END FROM WidgetInst WHERE WidgetInstId = 10737) = 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 = 'Culvert' AND WidgetInstId = 10738) END FROM WidgetInst WHERE WidgetInstId = 10738) = 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 = 'Culvert' AND WidgetInstId = 10739) END FROM WidgetInst WHERE WidgetInstId = 10739) = 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 = 'Culvert' AND WidgetInstId = 10740) END FROM WidgetInst WHERE WidgetInstId = 10740) = 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 = 'Culvert' AND WidgetInstId = 10741) END FROM WidgetInst WHERE WidgetInstId = 10741) = 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 = 'user' AND WidgetInstId = 11463) END FROM WidgetInst WHERE WidgetInstId = 11463) = 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 = 'user' AND WidgetInstId = 11464) END FROM WidgetInst WHERE WidgetInstId = 11464) = 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 = 11465) END FROM WidgetInst WHERE WidgetInstId = 11465) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11472;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11575) END FROM WidgetInst WHERE WidgetInstId = 11575) = 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 = 'user' AND WidgetInstId = 11576) END FROM WidgetInst WHERE WidgetInstId = 11576) = 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 = 11577) END FROM WidgetInst WHERE WidgetInstId = 11577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11584;


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11575) END FROM WidgetInst WHERE WidgetInstId = 11575) = 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 = 11576) END FROM WidgetInst WHERE WidgetInstId = 11576) = 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 = 11577) END FROM WidgetInst WHERE WidgetInstId = 11577) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11612;


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11579) END FROM WidgetInst WHERE WidgetInstId = 11579) = 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 = 11580) END FROM WidgetInst WHERE WidgetInstId = 11580) = 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 = 11581) END FROM WidgetInst WHERE WidgetInstId = 11581) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11616;


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11721) END FROM WidgetInst WHERE WidgetInstId = 11721) = 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 = 'user' AND WidgetInstId = 11715) END FROM WidgetInst WHERE WidgetInstId = 11715) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11736;


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 11719) END FROM WidgetInst WHERE WidgetInstId = 11719) = 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 = 'user' AND WidgetInstId = 11720) END FROM WidgetInst WHERE WidgetInstId = 11720) = 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 = 'user' AND WidgetInstId = 11721) END FROM WidgetInst WHERE WidgetInstId = 11721) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11742;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 11860) END FROM WidgetInst WHERE WidgetInstId = 11860) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 11861) END FROM WidgetInst WHERE WidgetInstId = 11861) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11868;


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


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 = 11856) END FROM WidgetInst WHERE WidgetInstId = 11856) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 11857) END FROM WidgetInst WHERE WidgetInstId = 11857) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11878;


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


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 = 11860) END FROM WidgetInst WHERE WidgetInstId = 11860) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 11861) END FROM WidgetInst WHERE WidgetInstId = 11861) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11882;


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


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 = 11856) END FROM WidgetInst WHERE WidgetInstId = 11856) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 11857) END FROM WidgetInst WHERE WidgetInstId = 11857) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11892;


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


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 = 11860) END FROM WidgetInst WHERE WidgetInstId = 11860) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 11861) END FROM WidgetInst WHERE WidgetInstId = 11861) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11896;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11897) END FROM WidgetInst WHERE WidgetInstId = 11897) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11904;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11898) END FROM WidgetInst WHERE WidgetInstId = 11898) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11856) END FROM WidgetInst WHERE WidgetInstId = 11856)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11905;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11899) END FROM WidgetInst WHERE WidgetInstId = 11899) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11857) END FROM WidgetInst WHERE WidgetInstId = 11857)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11906;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11900) END FROM WidgetInst WHERE WidgetInstId = 11900) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11858) END FROM WidgetInst WHERE WidgetInstId = 11858)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11907;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11901) END FROM WidgetInst WHERE WidgetInstId = 11901) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11859) END FROM WidgetInst WHERE WidgetInstId = 11859)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11908;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11902) END FROM WidgetInst WHERE WidgetInstId = 11902) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11860) END FROM WidgetInst WHERE WidgetInstId = 11860)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11909;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11903) END FROM WidgetInst WHERE WidgetInstId = 11903) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11861) END FROM WidgetInst WHERE WidgetInstId = 11861)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11910;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11897) END FROM WidgetInst WHERE WidgetInstId = 11897) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11918;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11898) END FROM WidgetInst WHERE WidgetInstId = 11898) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11856) END FROM WidgetInst WHERE WidgetInstId = 11856)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11919;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11899) END FROM WidgetInst WHERE WidgetInstId = 11899) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11857) END FROM WidgetInst WHERE WidgetInstId = 11857)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11920;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11900) END FROM WidgetInst WHERE WidgetInstId = 11900) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11858) END FROM WidgetInst WHERE WidgetInstId = 11858)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11921;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11901) END FROM WidgetInst WHERE WidgetInstId = 11901) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11859) END FROM WidgetInst WHERE WidgetInstId = 11859)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11922;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11902) END FROM WidgetInst WHERE WidgetInstId = 11902) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11860) END FROM WidgetInst WHERE WidgetInstId = 11860)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11923;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11903) END FROM WidgetInst WHERE WidgetInstId = 11903) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11861) END FROM WidgetInst WHERE WidgetInstId = 11861)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11924;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11897) END FROM WidgetInst WHERE WidgetInstId = 11897) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11855) END FROM WidgetInst WHERE WidgetInstId = 11855)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11932;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11898) END FROM WidgetInst WHERE WidgetInstId = 11898) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11856) END FROM WidgetInst WHERE WidgetInstId = 11856)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11933;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11899) END FROM WidgetInst WHERE WidgetInstId = 11899) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11857) END FROM WidgetInst WHERE WidgetInstId = 11857)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11934;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11900) END FROM WidgetInst WHERE WidgetInstId = 11900) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11858) END FROM WidgetInst WHERE WidgetInstId = 11858)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11935;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11901) END FROM WidgetInst WHERE WidgetInstId = 11901) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11859) END FROM WidgetInst WHERE WidgetInstId = 11859)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11936;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11902) END FROM WidgetInst WHERE WidgetInstId = 11902) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11860) END FROM WidgetInst WHERE WidgetInstId = 11860)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11937;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11903) END FROM WidgetInst WHERE WidgetInstId = 11903) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11861) END FROM WidgetInst WHERE WidgetInstId = 11861)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11938;


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


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


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


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


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


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 = 10740) END FROM WidgetInst WHERE WidgetInstId = 10740) = 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 = 'Internal sink' AND WidgetInstId = 10741) END FROM WidgetInst WHERE WidgetInstId = 10741) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11952;


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


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


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 = 11962) END FROM WidgetInst WHERE WidgetInstId = 11962) = 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 = 'Constant' AND WidgetInstId = 11963) END FROM WidgetInst WHERE WidgetInstId = 11963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11970;


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 = 11964) END FROM WidgetInst WHERE WidgetInstId = 11964) = 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 = 'Constant' AND WidgetInstId = 11965) END FROM WidgetInst WHERE WidgetInstId = 11965) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11972;


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


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


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


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


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


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


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


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


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


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


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


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 = 11963) END FROM WidgetInst WHERE WidgetInstId = 11963) = 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 = 'Weir' AND WidgetInstId = 11964) END FROM WidgetInst WHERE WidgetInstId = 11964) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12013;


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


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 = 11966) END FROM WidgetInst WHERE WidgetInstId = 11966) = 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 = 'Rating curve' AND WidgetInstId = 11960) END FROM WidgetInst WHERE WidgetInstId = 11960) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12086;


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


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


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


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


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


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


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 = 10735) END FROM WidgetInst WHERE WidgetInstId = 10735) = 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 = 'Link' AND WidgetInstId = 10736) END FROM WidgetInst WHERE WidgetInstId = 10736) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12108;


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 = 10737) END FROM WidgetInst WHERE WidgetInstId = 10737) = 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 = 'Link' AND WidgetInstId = 10738) END FROM WidgetInst WHERE WidgetInstId = 10738) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12110;


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 = 10739) END FROM WidgetInst WHERE WidgetInstId = 10739) = 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 = 'Link' AND WidgetInstId = 10740) END FROM WidgetInst WHERE WidgetInstId = 10740) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12112;


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


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


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


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


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


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


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


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


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


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


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


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


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 = 12133) END FROM WidgetInst WHERE WidgetInstId = 12133) = 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 TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12134) END FROM WidgetInst WHERE WidgetInstId = 12134) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12162;


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


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


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


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


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 = 12133) END FROM WidgetInst WHERE WidgetInstId = 12133) = 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 = 'Weir' AND WidgetInstId = 12134) END FROM WidgetInst WHERE WidgetInstId = 12134) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12183;


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


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


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 = 12130) END FROM WidgetInst WHERE WidgetInstId = 12130) = 1 THEN 1 ELSE 0 END WHERE 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 = 'Rating curve' AND WidgetInstId = 12131) END FROM WidgetInst WHERE WidgetInstId = 12131) = 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 = 'Rating curve' AND WidgetInstId = 12132) END FROM WidgetInst WHERE WidgetInstId = 12132) = 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 = 'Rating curve' AND WidgetInstId = 12133) END FROM WidgetInst WHERE WidgetInstId = 12133) = 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 = 'Rating curve' AND WidgetInstId = 12134) END FROM WidgetInst WHERE WidgetInstId = 12134) = 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 = 'Specified' AND WidgetInstId = 12282) END FROM WidgetInst WHERE WidgetInstId = 12282) = 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 = 'Specified' AND WidgetInstId = 12283) END FROM WidgetInst WHERE WidgetInstId = 12283) = 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 = 'Specified' AND WidgetInstId = 12284) END FROM WidgetInst WHERE WidgetInstId = 12284) = 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 = 'Specified' AND WidgetInstId = 12285) END FROM WidgetInst WHERE WidgetInstId = 12285) = 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 = 'Specified' AND WidgetInstId = 12286) END FROM WidgetInst WHERE WidgetInstId = 12286) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12293;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12288) END FROM WidgetInst WHERE WidgetInstId = 12288) = 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 = 'Computed' AND WidgetInstId = 12282) END FROM WidgetInst WHERE WidgetInstId = 12282) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12331;


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12282) END FROM WidgetInst WHERE WidgetInstId = 12282) = 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 = 'Computed' AND WidgetInstId = 12283) END FROM WidgetInst WHERE WidgetInstId = 12283) = 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 = 'Computed' AND WidgetInstId = 12284) END FROM WidgetInst WHERE WidgetInstId = 12284) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12347;


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 12282) END FROM WidgetInst WHERE WidgetInstId = 12282) = 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 = 'Computed' AND WidgetInstId = 12283) END FROM WidgetInst WHERE WidgetInstId = 12283) = 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 = 'Computed' AND WidgetInstId = 12284) END FROM WidgetInst WHERE WidgetInstId = 12284) = 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 = 'Computed' AND WidgetInstId = 12285) END FROM WidgetInst WHERE WidgetInstId = 12285) = 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 = 'Computed' AND WidgetInstId = 12286) END FROM WidgetInst WHERE WidgetInstId = 12286) = 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 = 'Computed' AND WidgetInstId = 12287) END FROM WidgetInst WHERE WidgetInstId = 12287) = 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 = 'Computed' AND WidgetInstId = 12288) END FROM WidgetInst WHERE WidgetInstId = 12288) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12365;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10735) END FROM WidgetInst WHERE WidgetInstId = 10735) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10340) END FROM WidgetInst WHERE WidgetInstId = 10340)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12373;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10736) END FROM WidgetInst WHERE WidgetInstId = 10736) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10340) END FROM WidgetInst WHERE WidgetInstId = 10340)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12374;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10737) END FROM WidgetInst WHERE WidgetInstId = 10737) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10340) END FROM WidgetInst WHERE WidgetInstId = 10340)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12375;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10738) END FROM WidgetInst WHERE WidgetInstId = 10738) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10340) END FROM WidgetInst WHERE WidgetInstId = 10340)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12376;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10739) END FROM WidgetInst WHERE WidgetInstId = 10739) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10340) END FROM WidgetInst WHERE WidgetInstId = 10340)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12377;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10740) END FROM WidgetInst WHERE WidgetInstId = 10740) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10340) END FROM WidgetInst WHERE WidgetInstId = 10340)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12378;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10741) END FROM WidgetInst WHERE WidgetInstId = 10741) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10340) END FROM WidgetInst WHERE WidgetInstId = 10340)) = 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 = 'File' AND WidgetInstId = 12387) END FROM WidgetInst WHERE WidgetInstId = 12387) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12394;


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 = 12388) END FROM WidgetInst WHERE WidgetInstId = 12388) = 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 = 'File' AND WidgetInstId = 12389) END FROM WidgetInst WHERE WidgetInstId = 12389) = 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 = 'File' AND WidgetInstId = 12390) END FROM WidgetInst WHERE WidgetInstId = 12390) = 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 = 'File' AND WidgetInstId = 12391) END FROM WidgetInst WHERE WidgetInstId = 12391) = 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 = 'File' AND WidgetInstId = 12392) END FROM WidgetInst WHERE WidgetInstId = 12392) = 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 = 'File' AND WidgetInstId = 12393) END FROM WidgetInst WHERE WidgetInstId = 12393) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12400;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 12412;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 12412;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 12412;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 12412;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 12412;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 12412;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 12413;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 12413;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 12413;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 12413;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 12413;


Query:
UPDATE ComboOptionInst SET Enabled = CASE 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 = 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 = 'Wall (No-slip boundary)' AND WidgetInstId = 12412) END FROM WidgetInst WHERE WidgetInstId = 12412) = 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 = 'Wall (No-slip boundary)' AND WidgetInstId = 12413) END FROM WidgetInst WHERE WidgetInstId = 12413) = 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 = 'On' AND WidgetInstId = 12418) END FROM WidgetInst WHERE WidgetInstId = 12418) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12420;


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


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


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


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 = 10337) END FROM WidgetInst WHERE WidgetInstId = 10337) = 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 != '(none selected)' AND WidgetInstId = 10337) END FROM WidgetInst WHERE WidgetInstId = 10337) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12437;


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


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


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


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 = 12413) END FROM WidgetInst WHERE WidgetInstId = 12413) = 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 = 'Constant' AND WidgetInstId = 12452) END FROM WidgetInst WHERE WidgetInstId = 12452) = 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 = 'Constant' AND WidgetInstId = 12453) END FROM WidgetInst WHERE WidgetInstId = 12453) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12455;


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


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


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


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 = 12413) END FROM WidgetInst WHERE WidgetInstId = 12413) = 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 = 'Constant' AND WidgetInstId = 12470) END FROM WidgetInst WHERE WidgetInstId = 12470) = 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 = 'Constant' AND WidgetInstId = 12471) END FROM WidgetInst WHERE WidgetInstId = 12471) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12473;


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 12412) END FROM WidgetInst WHERE WidgetInstId = 12412) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12494) END FROM WidgetInst WHERE WidgetInstId = 12494)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12500;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 12413) END FROM WidgetInst WHERE WidgetInstId = 12413) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12495) END FROM WidgetInst WHERE WidgetInstId = 12495)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12501;


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' 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 CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' 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 = 12412) END FROM WidgetInst WHERE WidgetInstId = 12412) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12494) END FROM WidgetInst WHERE WidgetInstId = 12494)) = 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 = 12413) END FROM WidgetInst WHERE WidgetInstId = 12413) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 12495) END FROM WidgetInst WHERE WidgetInstId = 12495)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12519;


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


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


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


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


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


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 = 12531) END FROM WidgetInst WHERE WidgetInstId = 12531) = 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 = 12498) END FROM WidgetInst WHERE WidgetInstId = 12498) = 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 = 12499) END FROM WidgetInst WHERE WidgetInstId = 12499) = 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 = 'Metric' AND WidgetInstId = 12498) END FROM WidgetInst WHERE WidgetInstId = 12498) = 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 = 12499) END FROM WidgetInst WHERE WidgetInstId = 12499) = 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 = 'Rating Curve' AND WidgetInstId = 12530) END FROM WidgetInst WHERE WidgetInstId = 12530) = 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 = 'Rating Curve' AND WidgetInstId = 12531) END FROM WidgetInst WHERE WidgetInstId = 12531) = 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 = 'U.S. Customary' AND WidgetInstId = 12498) END FROM WidgetInst WHERE WidgetInstId = 12498) = 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 = 12499) END FROM WidgetInst WHERE WidgetInstId = 12499) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12545;


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 12621) END FROM WidgetInst WHERE WidgetInstId = 12621) = 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 = 'user' AND WidgetInstId = 12620) END FROM WidgetInst WHERE WidgetInstId = 12620) = 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 = 'user' AND WidgetInstId = 12621) END FROM WidgetInst WHERE WidgetInstId = 12621) = 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 = 'user' AND WidgetInstId = 12620) END FROM WidgetInst WHERE WidgetInstId = 12620) = 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 = 'user' AND WidgetInstId = 12621) END FROM WidgetInst WHERE WidgetInstId = 12621) = 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 = 'Weir' AND WidgetInstId = 12412) END FROM WidgetInst WHERE WidgetInstId = 12412) = 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 = 'Weir' AND WidgetInstId = 12413) END FROM WidgetInst WHERE WidgetInstId = 12413) = 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 = 'user' AND WidgetInstId = 12652) END FROM WidgetInst WHERE WidgetInstId = 12652) = 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 = 'user' AND WidgetInstId = 12653) END FROM WidgetInst WHERE WidgetInstId = 12653) = 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 = 'user' AND WidgetInstId = 12652) END FROM WidgetInst WHERE WidgetInstId = 12652) = 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 = 'user' AND WidgetInstId = 12653) END FROM WidgetInst WHERE WidgetInstId = 12653) = 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 = 'user' AND WidgetInstId = 12652) END FROM WidgetInst WHERE WidgetInstId = 12652) = 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 = 'user' AND WidgetInstId = 12653) END FROM WidgetInst WHERE WidgetInstId = 12653) = 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 = 'Gate' AND WidgetInstId = 12412) END FROM WidgetInst WHERE WidgetInstId = 12412) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12666;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 12744) END FROM WidgetInst WHERE WidgetInstId = 12744) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12732) END FROM WidgetInst WHERE WidgetInstId = 12732)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12746;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 12745) END FROM WidgetInst WHERE WidgetInstId = 12745) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12733) END FROM WidgetInst WHERE WidgetInstId = 12733)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12747;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 12744) END FROM WidgetInst WHERE WidgetInstId = 12744) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12732) END FROM WidgetInst WHERE WidgetInstId = 12732)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12750;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 12745) END FROM WidgetInst WHERE WidgetInstId = 12745) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12733) END FROM WidgetInst WHERE WidgetInstId = 12733)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12751;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 12744) END FROM WidgetInst WHERE WidgetInstId = 12744) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12732) END FROM WidgetInst WHERE WidgetInstId = 12732)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12754;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 12745) END FROM WidgetInst WHERE WidgetInstId = 12745) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 12733) END FROM WidgetInst WHERE WidgetInstId = 12733)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12755;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 12412) END FROM WidgetInst WHERE WidgetInstId = 12412) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10340) END FROM WidgetInst WHERE WidgetInstId = 10340)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12880;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 12413) END FROM WidgetInst WHERE WidgetInstId = 12413) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 10340) END FROM WidgetInst WHERE WidgetInstId = 10340)) = 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 = 'File' AND WidgetInstId = 12884) END FROM WidgetInst WHERE WidgetInstId = 12884) = 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 = 'File' AND WidgetInstId = 12885) END FROM WidgetInst WHERE WidgetInstId = 12885) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12887;


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 12952) END FROM WidgetInst WHERE WidgetInstId = 12952) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12955;


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


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 Frequency' AND WidgetInstId = 12969) END FROM WidgetInst WHERE WidgetInstId = 12969) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12970;


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 Times' AND WidgetInstId = 12969) END FROM WidgetInst WHERE WidgetInstId = 12969) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12972;


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 12997) END FROM WidgetInst WHERE WidgetInstId = 12997) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13000;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 13005) END FROM WidgetInst WHERE WidgetInstId = 13005) = 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 = 'Specified Frequency' AND WidgetInstId = 13014) END FROM WidgetInst WHERE WidgetInstId = 13014) = 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 = 'Specified Times' AND WidgetInstId = 13014) END FROM WidgetInst WHERE WidgetInstId = 13014) = 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 = 'Restart File' AND WidgetInstId = 13045) END FROM WidgetInst WHERE WidgetInstId = 13045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13046;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 13045) END FROM WidgetInst WHERE WidgetInstId = 13045) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13048;


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


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 Frequency' AND WidgetInstId = 13062) END FROM WidgetInst WHERE WidgetInstId = 13062) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13063;


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 Times' AND WidgetInstId = 13062) END FROM WidgetInst WHERE WidgetInstId = 13062) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13065;


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Initial Water Surface Elevation' AND WidgetInstId = 13090) END FROM WidgetInst WHERE WidgetInstId = 13090) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13093;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Parabolic' AND WidgetInstId = 13098) END FROM WidgetInst WHERE WidgetInstId = 13098) = 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 = 'Specified Frequency' AND WidgetInstId = 13107) END FROM WidgetInst WHERE WidgetInstId = 13107) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13108;


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 Times' AND WidgetInstId = 13107) END FROM WidgetInst WHERE WidgetInstId = 13107) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13110;


