A type filter within a subquery wrongly propagates to the actual table group in the outer query, leading to wrong results.