Opening the query is not enough, otherwise the expressions will not be calculated.
The functions were not called by calling rs.movelast. (Rs.movelast is good for testing the where condition, grouping, etc.)
Of course, it also takes time to run through the data records. However, this is not...