Modified ruleOne to allow it to apply to subquery also if the query has one.