Prepare for join conditions in sub-patterns