you could map the area as natural=water, and water=something.
oops!
Yes and no. When a waterway split in 2, the total upstream length is shared equally. So this 20,000 km can include a lot of the Danube’s upstream, Sometimes smaller rivers like this can be responsible for big upstreams.
I live beside the Rhine, which was also straightened out in the 19th century. I’m no stranger to paths being flooded, or oxbow lakes. While cycling this weekend, I also saw some under construction pumping stations to regulate water flow. (We’ve currently got some high water around here recently)
Hmmm
I’d like to try running the algorithm including waterway=canal. I wonder how much has been mapped presuming the direction doesn’t matter. 
Yeah, if it’s in a pipe like that, it sounds like a river.