select 1 from cm_attribute_widgets where attribute_id = :attribute_id and widget = :widget