Use a more complicated HQL command rather than postprocessing