Update cube queries not to have literal in timerage function