be more restrictive with sql select when computing linked waterways