add date extraction columns, allow group by alias, allow case ref other column