SELECT COUNT(CASE WHEN ("CALCS"."BOOL0" <> 0) THEN 1 WHEN NOT ("CALCS"."BOOL0" <> 0) THEN 0 ELSE CAST(NULL AS INTEGER) END) AS "TEMP_Test__1133866179__0_"FROM "TDVT"."CALCS" "CALCS" GROUP BY 1.1000000000000001