# QueryInst

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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 10028) END FROM WidgetInst WHERE WidgetInstId = 10028) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9980) END FROM WidgetInst WHERE WidgetInstId = 9980)) = 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 = 10029) END FROM WidgetInst WHERE WidgetInstId = 10029) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 9981) END FROM WidgetInst WHERE WidgetInstId = 9981)) = 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 = 8694) END FROM WidgetInst WHERE WidgetInstId = 8694) = 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 = 'Internal sink' AND WidgetInstId = 8695) END FROM WidgetInst WHERE WidgetInstId = 8695) = 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 = 'Internal sink' AND WidgetInstId = 8698) END FROM WidgetInst WHERE WidgetInstId = 8698) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10082;


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


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 = 8700) END FROM WidgetInst WHERE WidgetInstId = 8700) = 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 = 'Internal sink' AND WidgetInstId = 8701) END FROM WidgetInst WHERE WidgetInstId = 8701) = 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 = 'Constant' AND WidgetInstId = 10094) END FROM WidgetInst WHERE WidgetInstId = 10094) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10102;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 10287) END FROM WidgetInst WHERE WidgetInstId = 10287) = 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 = 'Weir' AND WidgetInstId = 10290) END FROM WidgetInst WHERE WidgetInstId = 10290) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10346;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 10583) END FROM WidgetInst WHERE WidgetInstId = 10583) = 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 = 'File' AND WidgetInstId = 10586) END FROM WidgetInst WHERE WidgetInstId = 10586) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10594;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 10612) END FROM WidgetInst WHERE WidgetInstId = 10612) = 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 = 'Weir' AND WidgetInstId = 10613) END FROM WidgetInst WHERE WidgetInstId = 10613) = 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 = 'Weir' AND WidgetInstId = 10614) END FROM WidgetInst WHERE WidgetInstId = 10614) = 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 = 'user' AND WidgetInstId = 10972) END FROM WidgetInst WHERE WidgetInstId = 10972) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10975;


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 10972) END FROM WidgetInst WHERE WidgetInstId = 10972) = 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 = 'user' AND WidgetInstId = 10973) END FROM WidgetInst WHERE WidgetInstId = 10973) = 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 = 'user' AND WidgetInstId = 10974) END FROM WidgetInst WHERE WidgetInstId = 10974) = 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 = 'Gate' AND WidgetInstId = 10612) END FROM WidgetInst WHERE WidgetInstId = 10612) = 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 = 'Gate' AND WidgetInstId = 10613) END FROM WidgetInst WHERE WidgetInstId = 10613) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 10994;


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


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


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


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


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


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


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


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


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


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


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


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


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 = 11092) END FROM WidgetInst WHERE WidgetInstId = 11092) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 11093) END FROM WidgetInst WHERE WidgetInstId = 11093) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 11094) END FROM WidgetInst WHERE WidgetInstId = 11094) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 11092) END FROM WidgetInst WHERE WidgetInstId = 11092) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 11093) END FROM WidgetInst WHERE WidgetInstId = 11093) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 11094) END FROM WidgetInst WHERE WidgetInstId = 11094) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 11092) END FROM WidgetInst WHERE WidgetInstId = 11092) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11107;


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11112) END FROM WidgetInst WHERE WidgetInstId = 11112) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 11094) END FROM WidgetInst WHERE WidgetInstId = 11094)) = 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 = 'Internal sink' AND WidgetInstId = 10612) END FROM WidgetInst WHERE WidgetInstId = 10612) = 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 = 'Internal sink' AND WidgetInstId = 10613) END FROM WidgetInst WHERE WidgetInstId = 10613) = 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 = 'Internal sink' AND WidgetInstId = 10614) END FROM WidgetInst WHERE WidgetInstId = 10614) = 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 = 'Constant' AND WidgetInstId = 11137) END FROM WidgetInst WHERE WidgetInstId = 11137) = 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 = 'Constant' AND WidgetInstId = 11138) END FROM WidgetInst WHERE WidgetInstId = 11138) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11141;


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


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


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


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


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 = 11137) END FROM WidgetInst WHERE WidgetInstId = 11137) = 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 = 'Weir' AND WidgetInstId = 11138) END FROM WidgetInst WHERE WidgetInstId = 11138) = 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 = 'Weir' AND WidgetInstId = 11139) END FROM WidgetInst WHERE WidgetInstId = 11139) = 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 = 'Rating curve' AND WidgetInstId = 11137) END FROM WidgetInst WHERE WidgetInstId = 11137) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11191;


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Link' AND WidgetInstId = 10612) END FROM WidgetInst WHERE WidgetInstId = 10612) = 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 = 'Link' AND WidgetInstId = 10613) END FROM WidgetInst WHERE WidgetInstId = 10613) = 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 = 'Link' AND WidgetInstId = 10614) END FROM WidgetInst WHERE WidgetInstId = 10614) = 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 = 'Constant' AND WidgetInstId = 11209) END FROM WidgetInst WHERE WidgetInstId = 11209) = 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 = 'Constant' AND WidgetInstId = 11210) END FROM WidgetInst WHERE WidgetInstId = 11210) = 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 = 'Constant' AND WidgetInstId = 11211) END FROM WidgetInst WHERE WidgetInstId = 11211) = 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 = 'Time Series' AND WidgetInstId = 11209) END FROM WidgetInst WHERE WidgetInstId = 11209) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11221;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 11413) END FROM WidgetInst WHERE WidgetInstId = 11413) = 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 = 'Rijn' AND WidgetInstId = 11413) END FROM WidgetInst WHERE WidgetInstId = 11413) = 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 = 'Seminara' AND WidgetInstId = 11413) END FROM WidgetInst WHERE WidgetInstId = 11413) = 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 = 'Seminara' AND WidgetInstId = 11413) END FROM WidgetInst WHERE WidgetInstId = 11413) = 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 defined' AND WidgetInstId = 11413) END FROM WidgetInst WHERE WidgetInstId = 11413) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11478;


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


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


Query:
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 = 11413) END FROM WidgetInst WHERE WidgetInstId = 11413) = 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 = 'Constant Length' AND WidgetInstId = 11497) END FROM WidgetInst WHERE WidgetInstId = 11497) = 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 = 'On' AND WidgetInstId = 11507) END FROM WidgetInst WHERE WidgetInstId = 11507) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11508;


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


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 = 11515) END FROM WidgetInst WHERE WidgetInstId = 11515) = 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 = 'Input Parameters' AND WidgetInstId = 11515) END FROM WidgetInst WHERE WidgetInstId = 11515) = 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 = 'On' AND WidgetInstId = 11507) END FROM WidgetInst WHERE WidgetInstId = 11507) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11533;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' 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 = 'Inlet-SC (supercritical inflow)' AND WidgetInstId = 11547) END FROM WidgetInst WHERE WidgetInstId = 11547) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11586;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 11722) END FROM WidgetInst WHERE WidgetInstId = 11722) = 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 = 'Link' AND WidgetInstId = 11547) END FROM WidgetInst WHERE WidgetInstId = 11547) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11743;


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 11746) END FROM WidgetInst WHERE WidgetInstId = 11746) = 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 = 'Weir' AND WidgetInstId = 11746) END FROM WidgetInst WHERE WidgetInstId = 11746) = 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 = 'Rating curve' AND WidgetInstId = 11746) END FROM WidgetInst WHERE WidgetInstId = 11746) = 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 = 'Specified' AND WidgetInstId = 11768) END FROM WidgetInst WHERE WidgetInstId = 11768) = 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 = 'Computed' AND WidgetInstId = 11768) END FROM WidgetInst WHERE WidgetInstId = 11768) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11771;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 11802) END FROM WidgetInst WHERE WidgetInstId = 11802) = 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 IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 11803) END FROM WidgetInst WHERE WidgetInstId = 11803) = 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 IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 11806) END FROM WidgetInst WHERE WidgetInstId = 11806) = 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 IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 11807) END FROM WidgetInst WHERE WidgetInstId = 11807) = 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 IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 11808) END FROM WidgetInst WHERE WidgetInstId = 11808) = 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 IN ('Inlet-Q (subcritical inflow)','Exit-Q (known-Q outflow)') AND WidgetInstId = 11809) END FROM WidgetInst WHERE WidgetInstId = 11809) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11953;


Query:
UPDATE WidgetInst 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 = 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 = 11963) END FROM WidgetInst WHERE WidgetInstId = 11963) = 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 = 11966) END FROM WidgetInst WHERE WidgetInstId = 11966) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11974;


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


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


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


Query:
UPDATE WidgetInst SET 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 = 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 = 'Time Series' AND WidgetInstId = 11963) END FROM WidgetInst WHERE WidgetInstId = 11963) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 11995;


Query:
UPDATE WidgetInst SET 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 = 11998;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 12034) END FROM WidgetInst WHERE WidgetInstId = 12034) = 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 = 12035) END FROM WidgetInst WHERE WidgetInstId = 12035) = 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 = 12038) END FROM WidgetInst WHERE WidgetInstId = 12038) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12094;


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11802) END FROM WidgetInst WHERE WidgetInstId = 11802) AND B = (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 = 12154;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11803) END FROM WidgetInst WHERE WidgetInstId = 11803) AND B = (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 = 12155;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11806) END FROM WidgetInst WHERE WidgetInstId = 11806) AND B = (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 = 12158;


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11809) END FROM WidgetInst WHERE WidgetInstId = 11809) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 12137) END FROM WidgetInst WHERE WidgetInstId = 12137)) = 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 = 'U.S. Customary' AND WidgetInstId = 12146) END FROM WidgetInst WHERE WidgetInstId = 12146) = 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 = 'U.S. Customary' AND WidgetInstId = 12147) END FROM WidgetInst WHERE WidgetInstId = 12147) = 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 = 'U.S. Customary' AND WidgetInstId = 12150) END FROM WidgetInst WHERE WidgetInstId = 12150) = 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 = 'U.S. Customary' AND WidgetInstId = 12151) END FROM WidgetInst WHERE WidgetInstId = 12151) = 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 = 'U.S. Customary' AND WidgetInstId = 12152) END FROM WidgetInst WHERE WidgetInstId = 12152) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12184;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11802) END FROM WidgetInst WHERE WidgetInstId = 11802) AND B = (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 = 12226;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11803) END FROM WidgetInst WHERE WidgetInstId = 11803) AND B = (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 = 12227;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 11806) END FROM WidgetInst WHERE WidgetInstId = 11806) AND B = (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 = 12230;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 12278) END FROM WidgetInst WHERE WidgetInstId = 12278) = 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 = 'Rating Curve' AND WidgetInstId = 12279) END FROM WidgetInst WHERE WidgetInstId = 12279) = 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 = 'Rating Curve' AND WidgetInstId = 12280) END FROM WidgetInst WHERE WidgetInstId = 12280) = 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 = 'Rating Curve' AND WidgetInstId = 12281) END FROM WidgetInst WHERE WidgetInstId = 12281) = 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 = 'U.S. Customary' AND WidgetInstId = 12146) END FROM WidgetInst WHERE WidgetInstId = 12146) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12330;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 11806) END FROM WidgetInst WHERE WidgetInstId = 11806) = 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 = 'Weir' AND WidgetInstId = 11807) END FROM WidgetInst WHERE WidgetInstId = 11807) = 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 = 'Weir' AND WidgetInstId = 11808) END FROM WidgetInst WHERE WidgetInstId = 11808) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12696;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 11802) END FROM WidgetInst WHERE WidgetInstId = 11802) = 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 = 'Gate' AND WidgetInstId = 11803) END FROM WidgetInst WHERE WidgetInstId = 11803) = 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 = 'Gate' AND WidgetInstId = 11806) END FROM WidgetInst WHERE WidgetInstId = 11806) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12822;


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


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 = 11808) END FROM WidgetInst WHERE WidgetInstId = 11808) = 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 = 'Gate' AND WidgetInstId = 11809) END FROM WidgetInst WHERE WidgetInstId = 11809) = 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 = 'user' AND WidgetInstId = 12922) END FROM WidgetInst WHERE WidgetInstId = 12922) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 12930;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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 = 13083) END FROM WidgetInst WHERE WidgetInstId = 13083) = 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 IntValues WHERE Value = 1 AND WidgetInstId = 13086) END FROM WidgetInst WHERE WidgetInstId = 13086) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13094;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13849) END FROM WidgetInst WHERE WidgetInstId = 13849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13909;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13850) END FROM WidgetInst WHERE WidgetInstId = 13850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13910;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13851) END FROM WidgetInst WHERE WidgetInstId = 13851) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13911;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13897) END FROM WidgetInst WHERE WidgetInstId = 13897) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13912;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13898) END FROM WidgetInst WHERE WidgetInstId = 13898) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13913;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating Curve' AND WidgetInstId = 13899) END FROM WidgetInst WHERE WidgetInstId = 13899) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13914;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13849) END FROM WidgetInst WHERE WidgetInstId = 13849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13918;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13850) END FROM WidgetInst WHERE WidgetInstId = 13850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13919;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'U.S. Customary' AND WidgetInstId = 13851) END FROM WidgetInst WHERE WidgetInstId = 13851) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13920;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13849) END FROM WidgetInst WHERE WidgetInstId = 13849) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13921;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13850) END FROM WidgetInst WHERE WidgetInstId = 13850) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13922;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Metric' AND WidgetInstId = 13851) END FROM WidgetInst WHERE WidgetInstId = 13851) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13923;


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 = 13720) END FROM WidgetInst WHERE WidgetInstId = 13720) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13924;


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 = 13721) END FROM WidgetInst WHERE WidgetInstId = 13721) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13925;


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 = 13722) END FROM WidgetInst WHERE WidgetInstId = 13722) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13926;


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 = 13720) END FROM WidgetInst WHERE WidgetInstId = 13720) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13933;


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 = 13721) END FROM WidgetInst WHERE WidgetInstId = 13721) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13934;


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 = 13722) END FROM WidgetInst WHERE WidgetInstId = 13722) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 13935;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14032) END FROM WidgetInst WHERE WidgetInstId = 14032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14035;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14033) END FROM WidgetInst WHERE WidgetInstId = 14033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14036;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14034) END FROM WidgetInst WHERE WidgetInstId = 14034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14037;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14032) END FROM WidgetInst WHERE WidgetInstId = 14032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14041;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14033) END FROM WidgetInst WHERE WidgetInstId = 14033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14042;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14034) END FROM WidgetInst WHERE WidgetInstId = 14034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14043;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14032) END FROM WidgetInst WHERE WidgetInstId = 14032) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14047;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14033) END FROM WidgetInst WHERE WidgetInstId = 14033) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14048;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14034) END FROM WidgetInst WHERE WidgetInstId = 14034) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14049;


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 = 13720) END FROM WidgetInst WHERE WidgetInstId = 13720) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14053;


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 = 13721) END FROM WidgetInst WHERE WidgetInstId = 13721) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14054;


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 = 13722) END FROM WidgetInst WHERE WidgetInstId = 13722) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14055;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14080) END FROM WidgetInst WHERE WidgetInstId = 14080) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14083;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14081) END FROM WidgetInst WHERE WidgetInstId = 14081) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14084;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14082) END FROM WidgetInst WHERE WidgetInstId = 14082) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14085;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14080) END FROM WidgetInst WHERE WidgetInstId = 14080) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14089;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14081) END FROM WidgetInst WHERE WidgetInstId = 14081) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14090;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14082) END FROM WidgetInst WHERE WidgetInstId = 14082) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14091;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14080) END FROM WidgetInst WHERE WidgetInstId = 14080) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14095;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14081) END FROM WidgetInst WHERE WidgetInstId = 14081) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14096;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14082) END FROM WidgetInst WHERE WidgetInstId = 14082) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14097;


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 = 13720) END FROM WidgetInst WHERE WidgetInstId = 13720) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14101;


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 = 13721) END FROM WidgetInst WHERE WidgetInstId = 13721) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14102;


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 = 13722) END FROM WidgetInst WHERE WidgetInstId = 13722) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14103;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14140) END FROM WidgetInst WHERE WidgetInstId = 14140) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14143;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14141) END FROM WidgetInst WHERE WidgetInstId = 14141) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14144;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14142) END FROM WidgetInst WHERE WidgetInstId = 14142) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14145;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14140) END FROM WidgetInst WHERE WidgetInstId = 14140) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14149;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14141) END FROM WidgetInst WHERE WidgetInstId = 14141) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14150;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14142) END FROM WidgetInst WHERE WidgetInstId = 14142) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14151;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14140) END FROM WidgetInst WHERE WidgetInstId = 14140) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14155;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14141) END FROM WidgetInst WHERE WidgetInstId = 14141) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14156;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'user' AND WidgetInstId = 14142) END FROM WidgetInst WHERE WidgetInstId = 14142) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14157;


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 = 13720) END FROM WidgetInst WHERE WidgetInstId = 13720) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14161;


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 = 13721) END FROM WidgetInst WHERE WidgetInstId = 13721) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14162;


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 = 13722) END FROM WidgetInst WHERE WidgetInstId = 13722) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14163;


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 = 14200) END FROM WidgetInst WHERE WidgetInstId = 14200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14203;


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 = 14201) END FROM WidgetInst WHERE WidgetInstId = 14201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14204;


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 = 14202) END FROM WidgetInst WHERE WidgetInstId = 14202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14205;


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 = 14200) END FROM WidgetInst WHERE WidgetInstId = 14200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14209;


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 = 14201) END FROM WidgetInst WHERE WidgetInstId = 14201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14210;


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 = 14202) END FROM WidgetInst WHERE WidgetInstId = 14202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14211;


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 = 14200) END FROM WidgetInst WHERE WidgetInstId = 14200) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14215;


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 = 14201) END FROM WidgetInst WHERE WidgetInstId = 14201) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14216;


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 = 14202) END FROM WidgetInst WHERE WidgetInstId = 14202) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14217;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 14218) END FROM WidgetInst WHERE WidgetInstId = 14218) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14200) END FROM WidgetInst WHERE WidgetInstId = 14200)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14221;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 14219) END FROM WidgetInst WHERE WidgetInstId = 14219) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14201) END FROM WidgetInst WHERE WidgetInstId = 14201)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14222;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 14220) END FROM WidgetInst WHERE WidgetInstId = 14220) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14202) END FROM WidgetInst WHERE WidgetInstId = 14202)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14223;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 14218) END FROM WidgetInst WHERE WidgetInstId = 14218) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14200) END FROM WidgetInst WHERE WidgetInstId = 14200)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14227;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 14219) END FROM WidgetInst WHERE WidgetInstId = 14219) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14201) END FROM WidgetInst WHERE WidgetInstId = 14201)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14228;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 14220) END FROM WidgetInst WHERE WidgetInstId = 14220) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14202) END FROM WidgetInst WHERE WidgetInstId = 14202)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14229;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 14218) END FROM WidgetInst WHERE WidgetInstId = 14218) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14200) END FROM WidgetInst WHERE WidgetInstId = 14200)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14233;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 14219) END FROM WidgetInst WHERE WidgetInstId = 14219) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14201) END FROM WidgetInst WHERE WidgetInstId = 14201)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14234;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 14220) END FROM WidgetInst WHERE WidgetInstId = 14220) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM IntValues WHERE Value = 1 AND WidgetInstId = 14202) END FROM WidgetInst WHERE WidgetInstId = 14202)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14235;


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 = 13720) END FROM WidgetInst WHERE WidgetInstId = 13720) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14239;


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 = 13721) END FROM WidgetInst WHERE WidgetInstId = 13721) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14240;


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 = 13722) END FROM WidgetInst WHERE WidgetInstId = 13722) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14241;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14245) END FROM WidgetInst WHERE WidgetInstId = 14245) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14248;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14246) END FROM WidgetInst WHERE WidgetInstId = 14246) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14249;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14247) END FROM WidgetInst WHERE WidgetInstId = 14247) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14250;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14245) END FROM WidgetInst WHERE WidgetInstId = 14245) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14257;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14246) END FROM WidgetInst WHERE WidgetInstId = 14246) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14258;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14247) END FROM WidgetInst WHERE WidgetInstId = 14247) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14259;


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 = 14245) END FROM WidgetInst WHERE WidgetInstId = 14245) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14266;


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 = 14246) END FROM WidgetInst WHERE WidgetInstId = 14246) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14267;


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 = 14247) END FROM WidgetInst WHERE WidgetInstId = 14247) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14268;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14245) END FROM WidgetInst WHERE WidgetInstId = 14245) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14299;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14246) END FROM WidgetInst WHERE WidgetInstId = 14246) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14300;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14247) END FROM WidgetInst WHERE WidgetInstId = 14247) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14301;


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 = 13720) END FROM WidgetInst WHERE WidgetInstId = 13720) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14308;


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 = 13721) END FROM WidgetInst WHERE WidgetInstId = 13721) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14309;


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 = 13722) END FROM WidgetInst WHERE WidgetInstId = 13722) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14310;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14317) END FROM WidgetInst WHERE WidgetInstId = 14317) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14320;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14318) END FROM WidgetInst WHERE WidgetInstId = 14318) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14321;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Constant' AND WidgetInstId = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14322;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14317) END FROM WidgetInst WHERE WidgetInstId = 14317) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14329;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14318) END FROM WidgetInst WHERE WidgetInstId = 14318) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14330;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Time Series' AND WidgetInstId = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14331;


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 = 14317) END FROM WidgetInst WHERE WidgetInstId = 14317) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14338;


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 = 14318) END FROM WidgetInst WHERE WidgetInstId = 14318) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14339;


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 = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14340;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14317) END FROM WidgetInst WHERE WidgetInstId = 14317) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14371;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14318) END FROM WidgetInst WHERE WidgetInstId = 14318) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14372;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Rating curve' AND WidgetInstId = 14319) END FROM WidgetInst WHERE WidgetInstId = 14319) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14373;


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 = 14383) END FROM WidgetInst WHERE WidgetInstId = 14383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14386;


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 = 14384) END FROM WidgetInst WHERE WidgetInstId = 14384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14387;


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 = 14385) END FROM WidgetInst WHERE WidgetInstId = 14385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14388;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14383) END FROM WidgetInst WHERE WidgetInstId = 14383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14392;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14384) END FROM WidgetInst WHERE WidgetInstId = 14384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14393;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14385) END FROM WidgetInst WHERE WidgetInstId = 14385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14394;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14383) END FROM WidgetInst WHERE WidgetInstId = 14383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14398;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14384) END FROM WidgetInst WHERE WidgetInstId = 14384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14399;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14385) END FROM WidgetInst WHERE WidgetInstId = 14385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14400;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14383) END FROM WidgetInst WHERE WidgetInstId = 14383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14404;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14384) END FROM WidgetInst WHERE WidgetInstId = 14384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14405;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14385) END FROM WidgetInst WHERE WidgetInstId = 14385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14406;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14383) END FROM WidgetInst WHERE WidgetInstId = 14383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14410;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14384) END FROM WidgetInst WHERE WidgetInstId = 14384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14411;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14385) END FROM WidgetInst WHERE WidgetInstId = 14385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14412;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14383) END FROM WidgetInst WHERE WidgetInstId = 14383) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14416;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14384) END FROM WidgetInst WHERE WidgetInstId = 14384) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14417;


Query:
UPDATE WidgetInst SET Enabled = CASE WHEN (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Computed' AND WidgetInstId = 14385) END FROM WidgetInst WHERE WidgetInstId = 14385) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14418;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 13720) END FROM WidgetInst WHERE WidgetInstId = 13720) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11405) END FROM WidgetInst WHERE WidgetInstId = 11405)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14422;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 13721) END FROM WidgetInst WHERE WidgetInstId = 13721) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11405) END FROM WidgetInst WHERE WidgetInstId = 11405)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14423;


Query:
UPDATE WidgetInst SET Enabled = CASE 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 = 13722) END FROM WidgetInst WHERE WidgetInstId = 13722) AND B = (SELECT CASE WHEN Enabled = 0 OR Enabled = 2 THEN -1 ELSE (SELECT COUNT(*) FROM TextValues WHERE Value = 'Mobile' AND WidgetInstId = 11405) END FROM WidgetInst WHERE WidgetInstId = 11405)) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14424;


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 = 14428) END FROM WidgetInst WHERE WidgetInstId = 14428) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14431;


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 = 14429) END FROM WidgetInst WHERE WidgetInstId = 14429) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14432;


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 = 14430) END FROM WidgetInst WHERE WidgetInstId = 14430) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14433;


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 = 14523) END FROM WidgetInst WHERE WidgetInstId = 14523) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14524;


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 = 14523) END FROM WidgetInst WHERE WidgetInstId = 14523) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14526;


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 = 14531) END FROM WidgetInst WHERE WidgetInstId = 14531) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14532;


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 = 14540) END FROM WidgetInst WHERE WidgetInstId = 14540) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14541;


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 = 14540) END FROM WidgetInst WHERE WidgetInstId = 14540) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14543;


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 = 14562) END FROM WidgetInst WHERE WidgetInstId = 14562) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14563;


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 = 14562) END FROM WidgetInst WHERE WidgetInstId = 14562) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14565;


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 = 14570) END FROM WidgetInst WHERE WidgetInstId = 14570) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14571;


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 = 14579) END FROM WidgetInst WHERE WidgetInstId = 14579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14580;


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 = 14579) END FROM WidgetInst WHERE WidgetInstId = 14579) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14582;


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 = 14601) END FROM WidgetInst WHERE WidgetInstId = 14601) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14602;


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 = 14601) END FROM WidgetInst WHERE WidgetInstId = 14601) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14604;


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 = 14609) END FROM WidgetInst WHERE WidgetInstId = 14609) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14610;


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 = 14618) END FROM WidgetInst WHERE WidgetInstId = 14618) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14619;


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 = 14618) END FROM WidgetInst WHERE WidgetInstId = 14618) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14621;


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 = 14640) END FROM WidgetInst WHERE WidgetInstId = 14640) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14641;


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 = 14640) END FROM WidgetInst WHERE WidgetInstId = 14640) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14643;


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 = 14648) END FROM WidgetInst WHERE WidgetInstId = 14648) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14649;


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 = 14657) END FROM WidgetInst WHERE WidgetInstId = 14657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14658;


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 = 14657) END FROM WidgetInst WHERE WidgetInstId = 14657) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14660;


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 = 14679) END FROM WidgetInst WHERE WidgetInstId = 14679) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14680;


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 = 14679) END FROM WidgetInst WHERE WidgetInstId = 14679) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14682;


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 = 14687) END FROM WidgetInst WHERE WidgetInstId = 14687) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14688;


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 = 14696) END FROM WidgetInst WHERE WidgetInstId = 14696) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14697;


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 = 14696) END FROM WidgetInst WHERE WidgetInstId = 14696) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14699;


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 = 14718) END FROM WidgetInst WHERE WidgetInstId = 14718) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14719;


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 = 14718) END FROM WidgetInst WHERE WidgetInstId = 14718) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14721;


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 = 14726) END FROM WidgetInst WHERE WidgetInstId = 14726) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14727;


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 = 14735) END FROM WidgetInst WHERE WidgetInstId = 14735) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14736;


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 = 14735) END FROM WidgetInst WHERE WidgetInstId = 14735) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14738;


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 = 14757) END FROM WidgetInst WHERE WidgetInstId = 14757) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14758;


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 = 14757) END FROM WidgetInst WHERE WidgetInstId = 14757) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14760;


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 = 14765) END FROM WidgetInst WHERE WidgetInstId = 14765) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14766;


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 = 14774) END FROM WidgetInst WHERE WidgetInstId = 14774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14775;


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 = 14774) END FROM WidgetInst WHERE WidgetInstId = 14774) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14777;


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 = 14796) END FROM WidgetInst WHERE WidgetInstId = 14796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14797;


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 = 14796) END FROM WidgetInst WHERE WidgetInstId = 14796) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14799;


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 = 14804) END FROM WidgetInst WHERE WidgetInstId = 14804) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14805;


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 = 14813) END FROM WidgetInst WHERE WidgetInstId = 14813) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14814;


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 = 14813) END FROM WidgetInst WHERE WidgetInstId = 14813) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14816;


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 = 14835) END FROM WidgetInst WHERE WidgetInstId = 14835) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14836;


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 = 14835) END FROM WidgetInst WHERE WidgetInstId = 14835) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14838;


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 = 14843) END FROM WidgetInst WHERE WidgetInstId = 14843) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14844;


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 = 14852) END FROM WidgetInst WHERE WidgetInstId = 14852) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14853;


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 = 14852) END FROM WidgetInst WHERE WidgetInstId = 14852) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14855;


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 = 14874) END FROM WidgetInst WHERE WidgetInstId = 14874) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14875;


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 = 14874) END FROM WidgetInst WHERE WidgetInstId = 14874) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14877;


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 = 14882) END FROM WidgetInst WHERE WidgetInstId = 14882) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14883;


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 = 14891) END FROM WidgetInst WHERE WidgetInstId = 14891) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14892;


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 = 14891) END FROM WidgetInst WHERE WidgetInstId = 14891) = 1 THEN 1 ELSE 0 END WHERE WidgetInstId = 14894;


