Add restriction to not generate cross join if `right` is join fragment.