Allow use of constant expressions in select clause for queries with No GBY, No PTF and No windowing