I am building a query, that filters on a frequency field. Now the frequency is not a model field, but an annotated value, derived from a duration and a count. This is based on t