TEIID-3009 adding project minimization to with clauses