Simplify EXISTS subqueries containing LIMIT