If I had not woken up the baby, my mother would not have rushed out of the kitchen.
If my mother had not rushed out of the kitchen, the monkey would not have got in.
If the monkey had not got in, he would not have eaten up all the food.
If he had not eaten up all the food, my father would not have bought rotis and chicken curry at the tea-shop.
If my father had not bought rotis and chicken curry at the tea-shop, the dog would not have followed him home.