I have two tables (A, B) that have a many to many relation to each other. Both the tables have also a many to one relation with the same other table (C). In another table (D