TEIID-1170 adding more support for subqueries in temp table criteria