All this relativity is getting me relatively confused. But my reasoning goes like this: We are asking this sailboat to move, relative to the land, in the direction opposite that of the water, which is also moving relative to the land, by using the still air, which is not moving relative to the land. Therefore, the only energy there is to extract is that of the water which is moving relative to the land. Using this reasoning, I have come to realize that it is theoretically possible for a sailboat to do this. But it must have extremely low drag and a very efficient lateral foil, as well as a very efficient wing sail. If the vertical lift foils have drag similar to that of the rolling resistance of the wheels of the windmill cart, the boat can tack back and forth across the river at a very high speed. In doing this, its upstream gains may be greater than its down stream losses. This would certainly not look very glamorous, as it would appear that the boat is merely going back and forth across the river. Only after several tacks (maybe many) would it become apparent that the boat is further upstream than when it started.