Step 1, Shunting rule
Step 2, Shunting rule
Step 3, Foreign key rule
Step 4, Foreign key rule