It does not look like an obvious issue - stuff like using sub queries wrong or the like.
Unfortunately, if it´s not an obvious issue, it´s probably something related to data structure - which takes much more details to figure out why your filters do not work as you expect.
My suggestion: Try to replicate the filter by using raw SQL. Then you can see if your filter does what you expect and can troubleshoot each sub query individually. If it works in SQL, it should work in r3.