tests for <aggregate_fun> FILTER (WHERE ...)
implementation for <aggregate_fun> FILTER (WHERE ...)