Added dynamic versions of group_by, having and order_by