Show the types of ships that have both ships with tonnage larger than 6000 and ships with tonnage smaller than 4000.
select type from ship where tonnage > 6000 intersect select type from ship where tonnage < 4000