In 2018, Canada was the world's largest producer of rapeseed (20.3 million tonnes), dry pea (3.5 million tonnes) and lentil (2 million tons), the 2nd largest producer of oats in the world (3.4 million tons), the 6th largest world producer of wheat (31.7 million tons) and barley (8.3 million tons), the 7th largest world producer of soy (7.2 million tons), the 10th largest world producer of maize (13.8 million tons) and the 12th largest world producer of potato (5.7 million tonnes). In the same year, the country also produced 688 thousand tons of flax, 505 thousand tons of sugar beet (which is used to produce sugar), 497 thousand tons of tomato, 424 thousand tons of apple, 354 thousand tons of carrots, 341 thousand tons of beans, 311 thousand tons of chickpeas, 236 thousand tons of rye, 240 thousand tons of onion, 219 thousand tons of cabbage, 195 thousand tons of cranberry, 164 thousand tons of blueberry, 173 thousand tons of mustard seed, 138 thousand tons of mushroom and truffle, 120 thousand tons of grape, in addition to smaller productions of other agricultural products.