Automatic submersible pumps for wells