• having sum(unpaid) > 100: A condition, but not on the where clause.

  • The predicate can only refer to query output, so name, address and most importantly, the aggregate: sum(unpaid). where sum_unpaid > 100