How much water goes into one glass of drinking water?

because there is water used along every step of the way such as to make the pipes or build the machinery or make the glass how much is used in total? if you could include how much each step is that would also be helpful. thanks! 🙂