message: Test filter operation twice here
diff: @@ -8,6 +8,7 @@ PRAGMA enable_verification
  statement ok
  create temporary table t as select range i, mod(range,10) j,mod(range,10)*10000000 k from range(1000);
  +loop i 0 2
  query II
  SELECT
  @@ -49,7 +50,6 @@ FROM t;
  ----
  499500 100
  -
  query I
  SELECT
  SUM(j) FILTER (WHERE i < 10)
  @@ -112,8 +112,6 @@ group by j ORDER BY j;
  50300 NULL
  50400 NULL
  -
  -
  query III
  SELECT
  COUNT(*) AS unfiltered,
  @@ -133,8 +131,6 @@ group by j ORDER BY j;
  100 1 8
  100 1 9
  -
  -
  query II
  SELECT
  SUM(i) AS unfiltered,
  @@ -153,9 +149,6 @@ group by j ORDER BY j;
  50300 8
  50400 9
  -
  -
  -
  query III
  SELECT
  SUM(i) AS unfiltered,
  @@ -175,7 +168,6 @@ group by j ORDER BY j;
  50300 NULL 8
  50400 NULL 9
  -
  query I
  SELECT
  SUM(j) FILTER (WHERE i < 10)
  @@ -279,8 +271,6 @@ group by k ORDER BY k;
  50300 NULL
  50400 NULL
  -
  -
  query II
  SELECT
  COUNT(*) AS unfiltered,
  @@ -299,8 +289,6 @@ group by k ORDER BY k;
  100 1
  100 1
  -
  -
  query II
  SELECT
  SUM(i) AS unfiltered,
  @@ -319,9 +307,6 @@ group by k ORDER BY k;
  50300 8
  50400 9
  -
  -
  -
  query III
  SELECT
  SUM(i) AS unfiltered,
  @@ -341,7 +326,6 @@ group by k ORDER BY k;
  50300 NULL 80000000
  50400 NULL 90000000
  -
  query I
  SELECT
  SUM(j) FILTER (WHERE i < 10)
  @@ -440,6 +424,11 @@ where i < 5 ORDER BY sq
  3
  4
  +statement ok
  +PRAGMA perfect_ht_threshold=0
  +
  +endloop
  +
  #Query with many different filter clauses (e.g. 5 aggregates, 5 different filters)
  statement ok
  create temporary table t_2 as select range a, length(range) b, mod(range,100) c, 5 d, 10000 e from range(1000);
  