I have a table on the following format
Id | Sequence | Attribute A | Attribute B | ID1 [A,B,C,D] A1 B1 ID2