You're saying every population everything on earth could solve their freshwater problem with desalination if only they had cheap energy? No other issues here besides lack of energy?
So the equation is basically energy input from the sun creates freshwater from salt water and transports it over land. Humans can, and have, replicated this process artificially, the limiting factor just being the cost of energy.