Discovering incoming relations
Relations incoming to DM 5248 :
select * from uw_meaning_relations where meaning2_mid = 5248 ;
Deleting incoming relations
update uw_meaning_relations set remove_transaction_id=371940 where meaning2_mid = 5248 and remove_transaction_id IS NULL ;
you have to replace 371940 by a number that makes sense. So, delete one relation manually, take the number of this deleting transaction and apply it to the other relations with the update.