When there are two consecutive subqueries, don't add results twice