Generate reverse joins.