resolve dataCons inside qualifier expressions