text: --SELECT "TrainsUK2_2"."Calculation_6080608165132814" AS "Calculation_6080608165132814",   "TrainsUK2_2"."Operator" AS "Operator",   SUM(1) AS "TEMP(Calculation_1160604162544985)(2276395898)(0)",   SUM(CAST("TrainsUK2_2"."v_PPM Pass Flag" AS BIGINT)) AS "TEMP(Calculation_9940604162604158)(493029383)(0)",   SUM(CAST("TrainsUK2_2"."Calculation_2510610113130467" AS BIGINT)) AS "TEMP(c_PPM% (copy))(4237724593)(0)",   "TrainsUK2_2"."c_Origin Time (GBTT) (copy)" AS "c_Origin Time (GBTT) (copy)",   MIN("TrainsUK2_2"."Calculation_5580608170646388") AS "min:Calculation_5580608170646388:nk" FROM "TrainsUK2_2" WHERE (("TrainsUK2_2"."Operator" = 'HY') AND (TABLEAU.NORMALIZE_DATETIME("TrainsUK2_2"."Date") >= cast('2014-04-01' as DATE)) AND (TABLEAU.NORMALIZE_DATETIME("TrainsUK2_2"."Date") <= cast('2015-05-30' as DATE)) AND (NOT (((1 + CAST(TRUNC(DATE_PART('DOW', TABLEAU.NORMALIZE_DATETIME("TrainsUK2_2"."Date"))) AS BIGINT)) IN (1, 7)) OR ((1 + CAST(TRUNC(DATE_PART('DOW', TABLEAU.NORMALIZE_DATETIME("TrainsUK2_2"."Date"))) AS BIGINT)) IS NULL))) AND ("TrainsUK2_2"."Calculation_4220604162631191" IN ('1W - London Waterloo to Weymouth', '1W - Weymouth to London Waterloo')) AND (TABLEAU.NORMALIZE_DATETIME("TrainsUK2_2"."Date (group)") = cast('2015-05-29' as DATE))) GROUP BY 1,   2,   6;
  