Let $f_0,\dots,f_{n-1}$ are relations, where $f_i$ is a relation of arity $m_i$ for every $i=0,\dots,n-1$.
How to construct an $(m_0+\dots+m_{n-1})$-ary relation from them?
For my previous erroneous attempt to do this see here: Name for product of relations