Replaces the JOIN-ON construction with NATURAL JOIN.