Add complex join type to SQL generator for composite key joins

Merge request reports