Alter query if the field field_reol_entity_type is present in where. REOL-77