Add a test case with the " AND T1.A = 3 " moved into the subquery as " WHERE R1.A = 3 ".