With some hints from eeevil, tweaked 002.functions.aggregate.sql to work after some...