added support for HAVING clauses in the select block builder