Incorrect Results for Nested Filter for All Records

The report is not showing the correct results when using a saved filter with the 'for all records' option. The generated SQL does not appear to be correct.