Not sure to well understand this part. In fact, the join is done on a specific attribute and a specific option ?

If possible, please to use named parameters with attribute and option codes for example.