Relation n to n input