The document discusses analyzing water quality in the Andean region by examining the proportion of water arriving at dams and cities that originates from protected areas upstream. It notes that data on industry, mining, and urban water impacts is lacking for the Andes. Protected areas are likely to have higher water quality since they encourage infiltration, reducing erosion and pollution from activities like agriculture, pesticides, and mining. The document calculates the percentage of upstream flow originating from protected areas using rainfall and land cover datasets to identify potential areas of higher or lower water quality arriving at different points.